c89dea168eaa8ea05a8b91c4e6f22922d23a7f17,mlflow/sklearn.py,,save_model,#Any#Any#Any#Any#Any#,48
Before Change
serialization_format=serialization_format)
conda_env_subpath = "conda.yaml"
if conda_env is not None:
shutil.copyfile(conda_env, os.path.join(path, conda_env_subpath))
else:
with open(os.path.join(path, conda_env_subpath), "w") as f:
yaml.safe_dump(DEFAULT_CONDA_ENV, stream=f, default_flow_style=False)
pyfunc.add_to_model(mlflow_model, loader_module="mlflow.sklearn", data=model_data_subpath,
env=conda_env_subpath)
mlflow_model.add_flavor(FLAVOR_NAME,
pickled_model=model_data_subpath,
After Change
serialization_format=serialization_format)
conda_env_subpath = "conda.yaml"
if conda_env is None:
conda_env = DEFAULT_CONDA_ENV
elif not isinstance(conda_env, dict):
with open(conda_env, "r") as f:
conda_env = yaml.safe_load(f)
with open(os.path.join(path, conda_env_subpath), "w") as f:
yaml.safe_dump(conda_env, stream=f, default_flow_style=False)
pyfunc.add_to_model(mlflow_model, loader_module="mlflow.sklearn", data=model_data_subpath,
env=conda_env_subpath)
mlflow_model.add_flavor(FLAVOR_NAME,
pickled_model=model_data_subpath,
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 21
Instances
Project Name: mlflow/mlflow
Commit Name: c89dea168eaa8ea05a8b91c4e6f22922d23a7f17
Time: 2018-12-08
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/sklearn.py
Class Name:
Method Name: save_model
Project Name: mlflow/mlflow
Commit Name: c89dea168eaa8ea05a8b91c4e6f22922d23a7f17
Time: 2018-12-08
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/pytorch.py
Class Name:
Method Name: save_model
Project Name: mlflow/mlflow
Commit Name: c89dea168eaa8ea05a8b91c4e6f22922d23a7f17
Time: 2018-12-08
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/spark.py
Class Name:
Method Name: save_model
Project Name: mlflow/mlflow
Commit Name: c89dea168eaa8ea05a8b91c4e6f22922d23a7f17
Time: 2018-12-08
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/keras.py
Class Name:
Method Name: save_model
Project Name: mlflow/mlflow
Commit Name: c89dea168eaa8ea05a8b91c4e6f22922d23a7f17
Time: 2018-12-08
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/tensorflow.py
Class Name:
Method Name: save_model