sasctl.pzmm.mlflow_model#
- class sasctl.pzmm.mlflow_model.MLFlowModel[source]#
Bases:
object
- 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_path (str or pathlib.Path, optional) – Directory path of the MLFlow model files. Default is the current working directory.
- Returns:
var_dict (dict) – Model properties and metadata
inputs_dict (list of dict) – Model input variables
outputs_dict (list of dict) – Model output variables