Open mattv-neXenio opened 9 months ago
Thank you for opening your first issue here! 🛠
🤖
Thank you for providing detailed information about the bug you're encountering. It seems like there might be a compatibility issue between the versions of mlflow
and scikit-learn
you're using.
To help me investigate this further, could you please provide the following additional information:
mlflow_autolog
decorator? Does the train_model
task run successfully without it?mlflow
and scikit-learn
? If so, could you please share the results?This information will help me understand the issue better and find a solution. Thank you for your cooperation.
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Describe the bug
Adding the
mlflow_autolog()
decorator to thetrain_model
task toexample.py
from flytesnacks, leads to the followingAtrributeError
forscikit-learn
when runningpyflyte run -p test-project example.py training_workflow --hyperparameters '{"C": 0.1}'
The decorated task
same error with
@mlflow_autolog(framework=mlflow.sklearn)
.Minimum reproducible environment with python3.11
pip install flytekit flytekitplugins-envd flytekitplugins-mlflow scikit-learn
with the following package versions being installedThe entire
pip freeze
output:Expected behavior
The
AtrributeError
shouldn't be raised andmlflow_autolog
should work directly. At least compatible version of scikit-learn and mlflow should be requested.Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?