-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing error message when trying to override run_id
#549
Comments
This is definitely a feature, not a bug 😉 even if I acknowledge the error message could be better (but I did not imagine someone would ever do that!) Essentially what happens is that :
# mlflow.yml
tracking:
run:
id: ${runtime_params:mlflow_run_id} This is very unlikely that you want to modify an existing run, but say you want to complete it
However, I assume you want to load the regressor you've just trained. This is perfectly possible: # catalog.yml
regressor:
type: kedro_mlflow.io.models.MlflowModelTrackingDataset
flavor: mlflow.sklearn
run_id: ${runtime_params:mlflow_run_id}
# note that you don't specify anything in mlflow yml regarding the run id, you will either create a new mlflow run (or don't create a run if you added it to the blacklist) and now you can run:
(On a side note, it is likely a bad idea to deal specify the run id manually on each run, just specify a Does it make sense? |
My understanding from the beginning was that this is a feature 😄 The point was more around the error message. In any case, thanks a bunch for the explanation 🙏🏼 it makes a ton of sense. I leave it to you whether you can to keep this issue open for improving the error message, or just close it as won't fix.
|
…n id is already active (#549)
…n id is already active (#549)
…n id is already active (#549)
Description
I read in the docs that
...but I'm stubborn so I still wanted to try.
For that, I specified my
run_id
both in the configuration and in the dataset:And when launching
kedro run --params mlflow_run_id=xxx
I get the following error:Expected Result
If the
active_run
and the specifiedrun_id
are the same, proceed.Actual Result
(The error above)
Your Environment
kedro
andkedro-mlflow
version used (pip show kedro
andpip show kedro-mlflow
): 0.19.5 and 0.12.2 respectivelypython -V
): 3.11.5Does the bug also happen with the last version on master?
Yes, it still does.
The text was updated successfully, but these errors were encountered: