I am trying to use mllfow
library to log the variables. The code is very simple and basic. After running my script, I am receiving an error like cannot import name 'BaseSSLError' from 'urllib3.connection'
. Please refer below code.
import mlflow
def calculate_nthpower(x, n):
return x**n
if __name__ == '__main__':
# context manager
with mlflow.start_run():
x, n = 2, 5
y = calculate_nthpower(x, n)
mlflow.log_param('x', x)
mlflow.log_param('n', n)
mlflow.log_metric("y", y)