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
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
20
20
-`MlflowNodeHook` now has a `before_pipeline_run` hook which stores the `ProjectContext` and enable to retrieve configuration (#66).
21
21
- Documentation reference to the plugin is now dynamic when necessary (#6).
22
+
- The `KedroPipelineModel` now unpacks the result of the inference pipeline and no longer returns a dictionary with the name in the `DataCatalog` but only the associated value to the predictions.
Now each time you will run ``kedro run --pipeline=training`` (provided you registered ``MlflowPipelineHook`` in you ``run.py``), the full inference pipeline will be registered as a mlflow model (with all the outputs produced by training as artifacts : the machine learning, but also the *scaler*, *vectorizer*, *imputer*, or whatever object fitted on data you create in ``training`` and that is used in ``inference``).
27
+
Now each time you will run ``kedro run --pipeline=training`` (provided you registered ``MlflowPipelineHook`` in you ``run.py``), the full inference pipeline will be registered as a mlflow model (with all the outputs produced by training as artifacts : the machine learning model, but also the *scaler*, *vectorizer*, *imputer*, or whatever object fitted on data you create in ``training`` and that is used in ``inference``).
28
+
29
+
Note that:
30
+
- the `inference` pipeline `inputs` must belong either to training `outputs` (vectorizer, binarizer, machine learning model...)
31
+
- the `inference` pipeline `inputs` must be persisted locally on disk (i.e. it must not be `MemoryDataSet` and must have a local `filepath`)
32
+
- the `inference` pipeline must have one and only one `output`
28
33
29
34
*Note: If you want to log a ``PipelineML`` object in ``mlflow`` programatically, you can use the following code snippet:*
Copy file name to clipboardexpand all lines: kedro_mlflow/pipeline/pipeline_ml.py
+65-33
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,12 @@
5
5
fromkedro.pipelineimportPipeline
6
6
fromkedro.pipeline.nodeimportNode
7
7
8
-
MSG_NOT_IMPLEMENTED="This method is not implemented because it does not make sens for 'PipelineML'. Manipulate directly the training pipeline and recreate the 'PipelineML' with 'pipeline_ml_factory' factory"
8
+
MSG_NOT_IMPLEMENTED= (
9
+
"This method is not implemented because it does"
10
+
"not make sense for 'PipelineML'."
11
+
"Manipulate directly the training pipeline and"
12
+
"recreate the 'PipelineML' with 'pipeline_ml_factory' factory."
0 commit comments