← Machine Learning for EveryoneToolsInVisionLearning Center
Unsupervised Patterns · Lesson 57

Choose a Clustering Question

A dispatcher wonders whether routes form natural groups without delay labels.

Read the full lesson and open its transcript below. A narrated video will be added after production.

Lesson overview

What you will learn

A dispatcher wonders whether routes form natural groups without delay labels.

  1. A practical question
  2. The useful idea
  3. Work through the example
  4. Limits and next step
01

A practical question

The dispatcher wants to group routes without using a late-or-on-time label. Clustering can reveal structure in the features we supply, but we need to define the question. Are we grouping by geography, travel pattern, schedule, or something else?

02

The useful idea

The choice of representation and distance determines what appears close. Two routes can start near each other yet face very different traffic at different hours. A clustering program does not discover one objective, natural meaning of 'route type' independent of its inputs.

03

Work through the example

Plot a sample of trips and inspect the groups with staff who know the roads. Do the groups help planning, or do they simply reflect a dominant mileage feature? Keep labels out of fitting if the exercise is genuinely unsupervised, but use outcomes later for careful interpretation. Clustering can group deliveries without known delay labels, but a cluster is useful only if someone can interpret and act on it. Choose whether geography, schedule, or route conditions define the question, then inspect representative trips in each group. A cluster that simply separates depots may be obvious but still operationally helpful. Do not name a group risky until you independently check outcomes. The algorithm organizes input similarities; meaning comes from the decision context and evidence. Now check the idea on a concrete example: Group deliveries by geography and schedule, then inspect whether groups are meaningful. A possible trap is worth naming: Clusters are not automatically true categories or causes of delays. The answer follows from that evidence: Clustering seeks structure under a chosen representation and similarity measure. Read several trips from one proposed cluster. If they share a depot but not a useful scheduling pattern, describe the cluster honestly. Give groups operational names only after checking the input records and outcomes against a question the dispatcher cares about.

04

Limits and next step

Next, we'll form groups with k-means and inspect its assumptions.

Worked example

Group deliveries by geography and schedule, then inspect whether groups are meaningful.

Knowledge check

Quick check: test your understanding

Try it yourself: Consider this case: Group deliveries by geography and schedule, then inspect whether groups are meaningful. Explain how you would check the result. In your answer, address this limitation: Clusters are not automatically true categories or causes of delays.

Check the reasoning

Clustering seeks structure under a chosen representation and similarity measure. Clusters are not automatically true categories or causes of delays.

What is the main idea behind choose a clustering question?

Clustering seeks structure under a chosen representation and similarity measure.

How is it used in the example?

Group deliveries by geography and schedule, then inspect whether groups are meaningful.

What limitation should be checked?

Clusters are not automatically true categories or causes of delays.

Further reading

Machine Learning — Tom M. Mitchell.

Original ToolsInVision teaching examples. Editorial approach · Suggest a correction

Accessible referenceLesson 57 transcript306 words · Narration ready for the upcoming videoOpen transcript

The dispatcher wants to group routes without using a late-or-on-time label. Clustering can reveal structure in the features we supply, but we need to define the question. Are we grouping by geography, travel pattern, schedule, or something else?

The choice of representation and distance determines what appears close. Two routes can start near each other yet face very different traffic at different hours. A clustering program does not discover one objective, natural meaning of 'route type' independent of its inputs.

Plot a sample of trips and inspect the groups with staff who know the roads. Do the groups help planning, or do they simply reflect a dominant mileage feature? Keep labels out of fitting if the exercise is genuinely unsupervised, but use outcomes later for careful interpretation. Clustering can group deliveries without known delay labels, but a cluster is useful only if someone can interpret and act on it. Choose whether geography, schedule, or route conditions define the question, then inspect representative trips in each group. A cluster that simply separates depots may be obvious but still operationally helpful. Do not name a group risky until you independently check outcomes. The algorithm organizes input similarities; meaning comes from the decision context and evidence. Now check the idea on a concrete example: Group deliveries by geography and schedule, then inspect whether groups are meaningful. A possible trap is worth naming: Clusters are not automatically true categories or causes of delays. The answer follows from that evidence: Clustering seeks structure under a chosen representation and similarity measure. Read several trips from one proposed cluster. If they share a depot but not a useful scheduling pattern, describe the cluster honestly. Give groups operational names only after checking the input records and outcomes against a question the dispatcher cares about.

Next, we'll form groups with k-means and inspect its assumptions.