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
+2
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@
19
19
20
20
- Documentation reference to the plugin is now dynamic when necessary (#6).
21
21
- The test coverage now excludes `tests` and `setup.py` (#99).
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 predicted value (#93).
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 `input_name` can be a `MemoryDataSet` and it belongs to inference pipeline `inputs`
31
+
- Apart form `input_name`, all other `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 `inputs` must belong to training `outputs` (vectorizer, binarizer, machine learning model...)
33
+
- the `inference` pipeline must have one and only one `output`
28
34
29
35
*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