I've tried running the code on this page through pycharm on my local machine and connecting an an azureml compute cluster. azureml mlflow projects (Preview)
I have my MLProject file:
name: mlflow_test
conda_env: conda.yaml
entry_points:
testing:
command: "python mlflow_test.py"
Set up connection to the workspace, set the tracking uri to be the workspace tracking uri and then run:
mlflow.projects.run('.',
entry_point='testing',
experiment_name='mlflow_test',
backend='azureml',
backend_config={"COMPUTE": "general-compute", "USE_CONDA": True}
)
general compute is the name of a compute cluster I have created.
This always raises the error: AttributeError: 'Project' object has no attribute 'conda_env_path'
looking at the azureml-mlflow code it seems to be looking for mlproject.conda_env_path where mlproject is a mlflow Project class that doesn't have any attribute conda_env_path, infact conda_env_path is passed into the constructor and becomes Project().env_config_path.
Have I done something completely wrong here, if so, many thanks in advance
I have tried not using a conda envrionment, azureml seems to require the environment specified to be a conda environment for remote compute.
I've tried USE_CONDA True and False but according to documentation, if COMPUTE is specified this has no effect.
I tried changing the azureml-mlflow code to reference env_config_path and this raised another error all together.