Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Machine Learning Engineer

Experiments and evaluation

Professional Machine Learning Engineer · Lesson 7 of 19 · 47:34

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Professional Machine Learning Engineer exam, on the official exam guide. In this lesson: Agent Platform Experiments, TensorBoard, ML Metadata lineage, classification metrics (precision, recall, confusion matrix, precision-recall curve), regression metrics (MAE, RMSE), and evaluating generative AI with the Gen AI evaluation service (adaptive rubrics, judge models, ROUGE and BLEU). Includes three original practice questions, with Cymbal Insurance, a fictional car and home insurer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Forty versions, no memory

Last month, Cymbal Insurance's fraud team trained forty versions of its model. Nobody can say which data and which settings produced the one in production. And for the new claim summary assistant, the only test so far is someone saying that it looks good.

Where to experiment

Match the environment to the stage of the work. Notebooks in Workbench or Colab Enterprise suit early exploration. Agent Platform Experiments logs each run's parameters and metrics, whether the run comes from a notebook or a training job. Once the steps must run the same way every time, move them into Agent Platform Pipelines, written with the Kubeflow Pipelines SDK or with TensorFlow Extended, and a team that already runs Kubeflow on its own GKE clusters can keep it there.

Tracking runs and lineage

In Agent Platform Experiments, an experiment groups experiment runs and pipeline runs. Each run logs its parameters, summary metrics, and time series metrics, such as the loss at each training step, which a managed TensorBoard can chart. The console then compares runs side by side, to pick the best model with evidence. Underneath, Agent Platform ML Metadata stores a graph: artifacts like datasets and models, executions like training steps, and events that link them as inputs and outputs. That graph is the lineage: which data and parameters produced a model, where that model is used, and how to rerun the same work.

Evaluating predictive models

For predictive models, accuracy alone misleads when one class is rare. Precision asks: of the claims flagged as fraud, how many really were fraud? Recall asks: of the real fraud cases, how many did the model flag? A confusion matrix shows all four outcomes, and the area under the precision recall curve summarizes a model on rare classes, while the decision threshold trades precision for recall. For regression, like predicting a claim amount, use mean absolute error or root mean squared error, and let Agent Platform model evaluation compare batch inference results with ground truth labels.

Evaluating generative AI

Generative answers rarely have one right wording, so the Gen AI evaluation service offers several methods. Adaptive rubrics, the recommended method, write a set of pass or fail tests for each prompt. Static rubrics apply one fixed set of criteria to every response. In both, a judge model scores the answers, which is the LLM as a judge approach. Computation based metrics like ROUGE or BLEU need reference answers, and custom Python functions cover special rules. Evaluate on the same dataset before and after every prompt or model change, and have people review a sample.

Recap

Let's recap. Explore in notebooks, track runs in Experiments, and move repeatable steps into Pipelines, with Kubeflow Pipelines or TensorFlow Extended. Each run logs parameters, summary metrics, and time series metrics, compared in the console and charted in TensorBoard. ML Metadata keeps the lineage graph of artifacts and executions. Precision, recall, the confusion matrix, and the precision recall curve judge classifiers, and error metrics judge regression. For generative AI, adaptive rubrics and a judge model test each answer, and ROUGE or BLEU need references.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. An auditor asks which training dataset and which parameters produced the fraud model deployed last March. The training ran in a pipeline. Where does the team find the answer?

    • The lineage in Agent Platform ML Metadata
    • The online store of Feature Store
    • The Git history of the training code
    • The endpoint's prediction logs
    Show the answer

    The lineage in Agent Platform ML Metadata

    ML Metadata keeps the pipeline's artifacts and executions, so the lineage leads from the model back to its dataset and parameters. “The online store of Feature Store” only holds the latest values of features, not training history. “The Git history of the training code” only holds the code, not which data a given run used. And “The endpoint's prediction logs” shows predictions, not how the model was built.

  2. For Cymbal Insurance, a missed fraud case costs far more than one extra review by an investigator. Which metric should the fraud model put first?

    • Accuracy
    • Precision
    • Root mean squared error
    • Recall
    Show the answer

    Recall

    Recall measures how many real fraud cases the model catches, so it counts the costly misses. “Accuracy” can stay high while every fraud case is missed. “Precision” would favor fewer extra reviews, which matter less here. And “Root mean squared error” is a regression metric, not one for a fraud classifier.

  3. The claim summary assistant must follow detailed instructions in each prompt, and no reference summaries exist. The team wants automated pass or fail checks for every response. What should they use?

    • ROUGE scores against reference summaries
    • Adaptive rubrics with a judge model
    • A word count of each summary
    • Precision and recall of a classifier
    Show the answer

    Adaptive rubrics with a judge model

    Adaptive rubrics write pass or fail tests for each prompt, and a judge model applies them, with no reference answers needed. “ROUGE scores against reference summaries” would need reference summaries, which do not exist. “A word count of each summary” would only count words, not check the instructions. And “Precision and recall of a classifier” only measures a classifier, not free text.