Professional Machine Learning Engineer Practice Questions

Google Cloud Professional Machine Learning Engineer exam preparation

Professional Machine Learning Engineer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Machine Learning Engineer free question 10 / 10 · Domain 6: Monitoring AI solutions

You ran a PairwiseMetric with the Python evaluation module of Gen AI evaluation. Over 100 examples with no failures or missing values, pairwise_choice was CANDIDATE for 40, BASELINE for 30 and TIE for 30. What is candidate_model_win_rate in the aggregate results?

  1. The candidate model's win rate is 0.40
  2. The candidate model's win rate is 0.70
  3. The candidate model's win rate is about 0.57
  4. The candidate model's win rate is 0.55
Show the answer and explanation

Answer: A

Why this is correct
The reference describes candidate_model_win_rate as the proportion of times the judge model decided the candidate model had the better response to total responses, ranging from 0 to 1. Ties count in the total, so it is 40 / 100 = 0.40.

Why the other options are wrong
"The candidate model's win rate is 0.55" … 0.55 is the value you get by counting half of the ties as candidate wins. The service's candidate_model_win_rate does not turn a tie into half a win.
"The candidate model's win rate is about 0.57" … 40 / 70 divides by the number of examples with a decisive result. The denominator of this aggregate field is the total number of responses.
"The candidate model's win rate is 0.70" … 0.70 adds the 30 ties to the 40 wins of the candidate. The share of cases where the candidate did not lose is different from the share where it clearly won.

Key point
Do not supply your own tie handling from the name of an aggregate metric. Check the numerator and denominator the API defines. With ties, the candidate and baseline win rates add up to less than 1.

Go to the Professional Machine Learning Engineer practice app (10 free questions; purchase unlocks all questions)

See the full practice set