Skip to main content

130 posts tagged with "MLOps"

MLOps, Practices and Tools for Tracking, Versioning, Deploying and Monitoring Machine Learning Models

View All Tags

How to Make an MLflow Dataset Digest Cover Every Row

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

An MLflow dataset's digest is meant to tell you when data changes, but for a pandas DataFrame it only looks at part of it: the first 10,000 rows, and only the columns that hold text or numbers. Change a value further down, or a date anywhere, and the digest stays the same. This guide shows both gaps happening, finds the reason in MLflow's code, and passes a digest of every row and column instead, with real output from MLflow 3.18.0.

How to Check Whether Two MLflow Runs Used the Same Data

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

When two runs give different results, the first question is whether they learned from the same data. If both logged their data with mlflow.log_input(), MLflow already knows: each dataset has a digest, a short fingerprint of its contents, and equal digests mean equal data. This guide compares three runs in the UI and in Python, with real screens and output from MLflow 3.18.0.

How to See Which Datasets an MLflow Run Used

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

When a run logs its data with mlflow.log_input(), MLflow keeps each dataset's name, digest, source, schema and row count with the run. You can find them in the MLflow UI, from the command line and from Python. This guide looks at one run that used a training set and a test set, in all four places, with real screens and output from MLflow 3.18.0.

How to Log a Dataset in MLflow

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

A model is only as good as the data it learned from, so a run should record which data that was. MLflow does it in two calls: mlflow.data.from_pandas() describes a pandas DataFrame as a dataset, and mlflow.log_input() attaches that description to the run. This guide logs a small CSV file of houses, with real output from MLflow 3.18.0.

MLflow Tutorial for Machine Learning in Python — Part 2: Log Metrics Over Time and System Metrics

· 38 min read
Jagdish Kumawat
Founder @ Dewiride

Part 1 logged each score once, after training was over. That hides the question every model raises: was more training still helping? In this part the forest grows in stages, MLflow records its score after every stage, and the curves show where extra trees stop paying off. MLflow also records how hard the computer worked while it trained.

How to Change the X-Axis of a Metric Chart in the MLflow UI

· 11 min read
Jagdish Kumawat
Founder @ Dewiride

When a run logs a metric at several steps, the MLflow UI draws it as a line against Step. That's one of four choices: the same chart can run along the clock, along the seconds since the run's first value, or along another metric. This guide tries all four on one chart, then changes every chart at once, with screenshots from MLflow 3.18.0.

How to Change the System Metrics Sampling Interval in MLflow

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

By default, MLflow samples the computer's CPU, memory, disk and network every 10 seconds. That suits a training job that runs for an hour, but a run that lasts a minute gets about five points, and a run shorter than 10 seconds gets none. Two functions change how often MLflow samples and how many samples it averages into each point. This guide tries three settings on the same run, with real output from MLflow 3.18.0.

How to Turn On System Metrics Logging in MLflow

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

MLflow can record what the computer is doing while a run works: CPU use, memory, disk and network. On a long training job, that shows whether the model is starved for memory or using every core. It's off by default and needs one extra package. This guide turns it on three ways and reads the results, with real output from MLflow 3.18.0.

How to Get the History of a Metric in MLflow

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

When a run logs a metric many times, such as a loss after every round of training, MLflow keeps every value. The run's summary shows only the latest one, though. MlflowClient.get_metric_history returns them all, each with its step and the moment it was logged. This guide reads a short curve back and finds its best step, with real output from MLflow 3.18.0.

Fixed: "No charts in this section" on the MLflow System Metrics Tab

· 12 min read
Jagdish Kumawat
Founder @ Dewiride

The System metrics tab of a short MLflow run said System metrics (0) and "No charts in this section", although system metrics were turned on and longer runs had their charts. MLflow logs a sample only after waiting one sampling interval and finding the run still going, so a run that ends sooner records nothing. Sample more often than your shortest run lasts.