You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to store a PartitionedDataSet as an mlflow artifact with the MlflowArtifactDataSet.
Context
I had a use case where I need to save a dict with many small result tables to mlflow, and I tried to use PartitionedDataSet for this.
Steps to Reproduce
# catalog.ymlmy_dataset:
type: kedro_mlflow.io.artifacts.MlflowArtifactDataSetdata_set:
type: PartitionedDataSet # or any valid kedro DataSetpath: /path/to/a/local/folder # the attribute is "path", and not "filepath"!dataset: "pandas.CSVDataSet"
Description
It is not possible to store a
PartitionedDataSet
as an mlflow artifact with theMlflowArtifactDataSet
.Context
I had a use case where I need to save a dict with many small result tables to mlflow, and I tried to use
PartitionedDataSet
for this.Steps to Reproduce
then save a dict using this dataset:
Expected Result
The 2 Dataframes should be logged as artifacts in the current mlflow run.
Actual Result
An error
dataset has not attribute "_filepath"
is raised.Does the bug also happen with the last version on master?
Yes
Potential solution
The error comes from this line:
kedro-mlflow/kedro_mlflow/io/artifacts/mlflow_artifact_dataset.py
Line 53 in 904207a
maybe we can add a better condition here to default to "path" if there is no "filepath" attribute.
The text was updated successfully, but these errors were encountered: