aimz.mlflow.autolog#
- aimz.mlflow.autolog(*, log_input_examples=False, log_model_signatures=True, log_models=True, disable=False, silent=False, registered_model_name=None, extra_tags=None)[source]#
Enable and configure autologging for aimz with MLflow.
- Autologging is performed when you call:
- Logs the following:
Selected arguments to the methods, together with
param_input,param_output,inference_method, andoptimizeras parameters.The final evidence lower bound (ELBO) loss as a metric.
The source code of the kernel function used in the model as a text artifact.
An MLflow Model containing the fitted estimator as an artifact.
- Parameters:
log_input_examples (bool) – If
True, input examples from training datasets are collected and logged along with model artifacts during training. IfFalse, input examples are not logged. Note: Input examples are MLflow model attributes and are only collected iflog_modelsis alsoTrue.log_model_signatures (bool) – If
True,ModelSignaturesdescribing model inputs and outputs are collected and logged along with model artifacts during training. IfFalse, signatures are not logged. Note: Model signatures are MLflow model attributes and are only collected iflog_modelsis alsoTrue.log_models (bool) – If
True, trained models are logged as MLflow model artifacts. IfFalse, trained models are not logged. Input examples and model signatures, which are attributes of MLflow models, are also omitted whenlog_modelsisFalse.disable (bool) – If
True, disables all supported autologging integrations. IfFalse, enables all supported autologging integrations.silent (bool) – If
True, suppress all event logs and warnings from MLflow during autologging setup and training execution. IfFalse, show all events and warnings during autologging setup and training execution.registered_model_name (str | None) – If given, each time a model is trained, it is registered as a new model version of the registered model with this name. The registered model is created if it does not already exist.
extra_tags (dict[str, str] | None) – A dictionary of extra tags to set on each managed run created by autologging.
- Return type:
None