after running mlflow run I get an unexpected keyword argument "name". What should I do
- User
after running mlflow run I get an unexpected keyword argument "name". What should I do
- Assistant
If you're getting an error message like "TypeError: mlflow.run() got an unexpected keyword argument 'name'", it's likely that the
nameparameter is not a valid parameter for the version ofmlflow.run()that you're using.The
nameparameter was introduced inmlflow.run()in version 1.17.0. If you're using an older version of MLflow, thenameparameter will not be recognized. You can check your version of MLflow by runningmlflow --versionin your command prompt or terminal.If you're using an older version of MLflow and want to specify a run name, you can use the
run_nameparameter instead. For example:cssmlflow run my_project -P my_param=value --run-name my_run_nameIf you want to use the
nameparameter and are using an older version of MLflow, you can upgrade to a version that supports thenameparameter. You can do this by running:csspip install --upgrade mlflowThis will upgrade your version of MLflow to the latest version available on PyPI. Alternatively, you can specify a specific version of MLflow to install by running:
codepip install mlflow==1.17.0This will install version 1.17.0 of MLflow, which supports the
nameparameter. - User
Thanks! Downgrading mlflow worked. You are amazing.
- Assistant
You're welcome! I'm glad to hear that downgrading MLflow worked for you. If you have any more questions or issues, feel free to ask!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.