Classical Machine Learning

Find the nearest bridge between groups

One nearby pair connects otherwise spread-out groups

Two groups of sensor response times can be close through only one pair. Botie needs the single-linkage distance used to consider their merger.

BOTIE

For groups [0, 8] and [9, 20], which pair determines single linkage?
The inputs we are comparing

First group's response times

Separated groups

  1. 00
  2. 11

Touching through one pair

  1. 00
  2. 18

Second group's response times

Separated groups

  1. 04
  2. 16

Touching through one pair

  1. 09
  2. 120
Result for separated groups
3
Choose an explanation to test
The closest responses sit inside the sorted groups

This check uses the pieces from “Find the closest cross-group pair”.

BOTIE

The two groups now contain unequal numbers of response times. Predict their single-linkage distance by considering cross-group pairs.
First group's response times
  1. 01
  2. 14
  3. 29
Second group's response times
  1. 05
  2. 112

Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

How could replacing minimum with maximum change a sequence of merges, even if every pairwise distance stayed the same?

A linkage definition determines what 'close groups' means before an agglomerative method chooses its merges.

This workshop calculates one linkage comparison in one dimension. A complete agglomerative algorithm repeatedly chooses and records merges.

Work through the Python challenges →
Continue the courseDensity-Based Clustering →
← k-Means Clustering