QuestionQ56

VerifiedAdvanced MLflow Usage

A Data Scientist is training a complex gradient-boosted model for fraud detection. The model applies dynamic threshold tuning during training and produces custom feature-drift visualizations. To support reproducibility and collaboration, they must programmatically track:

  • Custom metrics (for example, adjusted_f1 for threshold variations)
  • Hyperparameters from nested configuration files
  • Drift-visualization plots as PDFs

Which approach implements this tracking in MLflow?

Explanation

MLflow records explicitly calculated custom values with mlflow.log_metric, hyperparameters with mlflow.log_params, and generated files such as PDF plots with mlflow.log_artifact in an active run. Autologging can additionally capture metadata supported by the model framework, but explicit logging is required for custom metrics and artifacts.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!