mlflow.models
-
class
mlflow.models.
Model
(artifact_path=None, run_id=None, utc_time_created=datetime.datetime(2018, 8, 3, 23, 17, 36, 168425), flavors=None) Bases:
object
A MLflow model that can support multiple model flavors.
-
classmethod
log
(artifact_path, flavor, **kwargs) Log model using supplied flavor module.
Parameters: - artifact_path – Run relative path identifying this model.
- flavor – Flavor module / object to save the model with. The module / object must have
the
save_model
function that will persist the model as a valid MLflow model. :param kwargs: Extra args passed to the model flavor.
-
classmethod