Experiments, runs, parameters, metrics, artifacts and autologging.
From Ultra Transcenders AI-300 by Tony Rough
Comparing training runs is only possible if every run records its parameters, metrics and model in a consistent way. In Azure Machine Learning that tracking layer is MLflow.
mlflow.set_tracking_uri.mlflow.set_experiment("<name>") sets the active experiment. Inside mlflow.start_run(), mlflow.log_param, mlflow.log_metric or mlflow.autolog record parameters and metrics on each run, so runs can be compared in experiment history.log_params and log_metrics take dictionaries; log_text writes a string to a text file and log_dict writes a dictionary as JSON or YAML; log_artifact logs one existing file and log_artifacts every file in a folder; log_figure logs a matplotlib figure and log_image a NumPy array or PIL image. mlflow.autolog(log_models=False) logs everything except the model.mlflow.sklearn.log_model(model, "model") stores the model under the artifact path "model". The artifact path is exactly the string you pass. Figure 3.1 shows how workspace, experiment, runs and the registered model fit together.
Common trap: Assuming the experiment name defines the model’s artifact path - the path is the literal string passed to
log_model.
mlflow.search_runs(experiment_names=[...], filter_string=..., order_by=[...], max_results=...) returns runs as a pandas DataFrame. Its metrics hold only the last logged value of each metric; use MlflowClient().get_metric_history() for every value.This note is one section of Ultra Transcenders AI-300: Operationalizing Machine Learning and Generative AI Solutions, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.
Free to read with Kindle Unlimited. Opens Amazon in a new tab.
About the book · AI-300 terms in the glossary · All AI-300 study notes
When to use a workspace, a registry, models, environments, components and data assets.
Search spaces, sampling methods and early termination policies.
Blue-green deployments, traffic splitting, mirroring and instant rollback.
Where prompts are processed for each deployment type, and which one meets data residency needs.
Groundedness, relevance, coherence, fluency and risk and safety evaluators, and what each needs.