Skip to learning content

DATA SCIENCE PYTHON PLAYGROUND

Machine Learning · Learn / Refresh

← Choose and Explain Models lessons
Communicate evidence · ML-M-R1 · 15–20 MIN

Model-choice retrieval

  1. Retrieval 1Compute and inspect the evidenceCurrent exercise
  2. Retrieval 2Compute and inspect the evidence
  3. Retrieval 3Compute and inspect the evidence

Outputs you create

answer
  1. The requested result, with the values, labels and row order described by this task.
Exercise evidence · ML-M-R1-1 · all 3 rows
briefartifacthas_prediction_target
repair timehours predictiontrue
nested accountsmerge hierarchyfalse
sensor storagecomponent scoresfalse
Your task
  1. Select the briefs requiring historical prediction outcomes into answer.
  2. Keep the requested artifact column to distinguish numeric forecasts from grouping and compression.
answer
Hints

Think: Repair forecasting returns numeric predictions and errors in hours and needs historical durations. Nested discovery returns a linkage/hierarchy with qualified group profiles; compression returns PCA coordinates with retention evidence. The latter two do not need a prediction target. Their geometrical and retention summaries are not supervised accuracy scores and cannot be ranked on a common accuracy leaderboard.

Tools: Model-choice retrieval: use the supplied brief, artifact, has_prediction_target columns and the pandas or model operations introduced in this lesson.

Approach: Compute answer from the supplied evidence. Preserve the requested labels and row order, then inspect the values before checking.

Explained solution
answer = df.loc[df['has_prediction_target']].copy()
print(answer)

Repair forecasting returns numeric predictions and errors in hours and needs historical durations. Nested discovery returns a linkage/hierarchy with qualified group profiles; compression returns PCA coordinates with retention evidence. The latter two do not need a prediction target. Their geometrical and retention summaries are not supervised accuracy scores and cannot be ranked on a common accuracy leaderboard.

Ctrl/⌘+Enter: Run · Tab: indent · Esc then Tab: leave editor

Python loads when you run. Code and results stay in this activity only.

Run your code to inspect its output. Check uses that same run.