sasctl.pzmm.mlflow_model#
- class sasctl.pzmm.mlflow_model.MLFlowModel[source]#
Bases:
object
Methods
read_mlflow_model_file
([m_path])Read and return model metadata and input/output variables as dictionaries from an MLFlow model directory.
- classmethod read_mlflow_model_file(m_path=PosixPath('/home/runner/work/python-sasctl/python-sasctl'))[source]#
Read and return model metadata and input/output variables as dictionaries from an MLFlow model directory.
Current implementation only handles simple pickled models. Future feature work is required to include more types of MLFlow models.
- Parameters:
- m_pathstr or Path object, optional
- Directory path of the MLFlow model files. Default is the current working
- directory.
- Returns:
- var_dictdict
Model properties and metadata
- inputs_dictlist of dicts
Model input variables
- outputs_dictlist of dicts
Model output variables