6
6
import pickle
7
7
import shutil
8
8
from pathlib import Path
9
- from typing import Optional , Union
9
+ from typing import Optional , Union , Any
10
10
import h2o
11
11
12
12
from ..utils .misc import check_if_jupyter
@@ -21,8 +21,8 @@ class PickleModel:
21
21
@classmethod
22
22
def pickle_trained_model (
23
23
cls ,
24
- trained_model ,
25
- model_prefix ,
24
+ model_prefix : str ,
25
+ trained_model : Optional [ Any ] = None ,
26
26
pickle_path : Union [str , Path , None ] = None ,
27
27
is_h2o_model : bool = False ,
28
28
is_binary_model : bool = False ,
@@ -41,11 +41,11 @@ def pickle_trained_model(
41
41
42
42
Parameters
43
43
---------------
44
- trained_model : model object, str, or Path
45
- The trained model to be exported
46
44
model_prefix : str or Path
47
45
Variable name for the model to be displayed in SAS Open Model Manager
48
46
(i.e. hmeqClassTree + [Score.py || .pickle]).
47
+ trained_model : model object
48
+ The trained model to be exported.
49
49
pickle_path : str, optional
50
50
File location for the output pickle file. The default value is None.
51
51
is_h2o_model : bool, optional
@@ -60,7 +60,7 @@ def pickle_trained_model(
60
60
file. The default value is False.
61
61
mlflow_details : dict, optional
62
62
Model details from an MLFlow model. This dictionary is created by the
63
- readMLModelFile function. The default value is None
63
+ readMLModelFile function. The default value is None.
64
64
65
65
Returns
66
66
-------
0 commit comments