Skip to learning content

DATA SCIENCE PYTHON PLAYGROUND

Machine Learning · Learn / Refresh

← Clustering and Discovery lessonsQUESTIONS · MODELS · EVIDENCE
K-Means · ML-U-R1 · 15–20 MIN

K-Means 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

You group anonymous delivery measurements without a target label.

Why is supervised accuracy unavailable as the fitting objective?

Retrieve earlier concepts before combining them.

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

Supporting concepts: Describe clusters in meaningful units →

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 what a supervised accuracy calculation would need as its reference.

Hint 2 — Tools

Unlabelled discovery and target-defined correctness.

Hint 3 — Approach

State what is absent and distinguish exploratory descriptions from later external interpretation.

Explained solution

No target class defines a correct answer during fitting. A later comparison with an external reference may aid interpretation, but does not turn the fitting process into supervised prediction.

No target class defines a correct answer during fitting. A later comparison with an external reference may aid interpretation, but does not turn the fitting process into supervised prediction.

Helpful prior knowledge: Describe clusters in meaningful units 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.

Use the evidence and state a limitation. This is self-review, not a keyword test.