Skip to learning content

DATA SCIENCE PYTHON PLAYGROUND

Machine Learning · Learn / Refresh

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

Model-choice retrieval

Retrieval 1

Exercises within this concept

  1. Retrieval 1Retrieve and applyCurrent exercise
  2. Retrieval 2Retrieve and apply
  3. Retrieval 3Retrieve and apply
Retrieval 1 · LINE24

A team wants a centre-based grouping and a second view showing nested merges.

Which pairing describes the two clustering methods?

Retrieve earlier concepts before combining them.

This practice: Retrieve earlier concepts before combining them. Next: Retrieval 2 · Model-choice retrieval.

Supporting concepts: Explain a result responsibly →

Remember the idea

Use the inputs and evidence to recover the method. Hints and explained solutions remain collapsed; exact phrasing is not graded.

Retrieve earlier concepts before combining them.Candidate ACandidate BFitValidateCostCompare matching evidence; smaller error can cost more.
Schematic · Retrieve earlier concepts before combining them.Scroll the diagram horizontally if needed.
Hint 1 — Think

Recall which exploratory representation each method directly constructs.

Hint 2 — Tools

K-Means centroids and Ward merge hierarchy.

Hint 3 — Approach

Match the requested centre-based and nested views with their respective methods.

Explained solution

Both are exploratory. K-Means uses centroids; hierarchical clustering exposes a hierarchy that can be cut at several resolutions.

Both are exploratory. K-Means uses centroids; hierarchical clustering exposes a hierarchy that can be cut at several resolutions.

Helpful prior knowledge: Explain a result responsibly These links are guidance, not locks.

Sources and API context

Examples run with this Playground’s scikit-learn 1.4.2 / Pyodide 0.26.4 runtime.

A team wants a centre-based grouping and a second view showing nested merges. Which pairing describes the two clustering methods?