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 important that all models are saved with a .pkl extension
651
-
# Serialize with pickle to a .pkl file
650
+
# Serialize with pickle to a .pkl file or any other format
652
651
output_path ="diabetes_ridge.pkl"
653
652
withopen(output_path, "wb") as f:
654
653
pickle.dump(reg, f)
654
+
# joblib.dump(bundle, model_path) (Using joblib)
655
+
# or you can load the model in the custom function (see inference section)
655
656
656
657
```
657
658
## 2. Register ML model with
@@ -719,17 +720,20 @@ The above step should return a model_id that will be used in the next steps. Her
719
720
- Model file (pickled file saved in step one above)
720
721
- Training data. This will be used for explainability and drift detection. (Note, it has to be the exact same data used to train the model, otherwise you will get wrong results)
721
722
- Requirements file that defines the environment the model was trained in.
723
+
- If you will use a different predict function (See inference section).
722
724
723
725
Upload these one by one using the example bellow;
724
726
Note: file_kind can be `model`, `data`, `code`, and `env`
-`data` is list of dictionaries in the format of `feature:value`
800
+
-`is_fun` If set to `True` the inference application will use a custom predict function. This has to specified by the application owner. See example below.
0 commit comments