NRCan / geo-deep-learning

Deep learning applied to georeferenced datasets
https://geo-deep-learning.readthedocs.io/en/latest/
MIT License
150 stars 49 forks source link

mlflow uri not support error #487

Open Ling-Jun opened 1 year ago

Ling-Jun commented 1 year ago

If we set custom local dir as mlflow.yaml's uri, it will raise an exception. 1 The culprit is mlflow.set_tracking_uri() function. 2 We can fix it by identifying uri being a local path or web URL, if it is a local dir path, we need to add file:/ prefix, as specified here: https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.set_tracking_uri

3

Ling-Jun commented 1 year ago

so, there should be an if statement here identifying what type of uri it is, then giving the corresponding treatment. @CharlesAuthier

CharlesAuthier commented 1 year ago

You are wright I will took a proper look at it tomorrow