Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
In the lesson's data, customer 5 is written as [10, 4]. What do the two numbers mean, and which cluster does k-means put this customer in?
Each customer is written as [spending, visits].
Why is clustering these customers called unsupervised learning?
Compare this data with the pass-or-fail data, which had a result column.
In this example, what does k = 2 mean?
The k in k-means is about clusters.
After every customer has been assigned, where does k-means move each centre?
Think about what "means" refers to in the name.
A shop has nine customers: [1, 1], [2, 1], [1, 2], [5, 8], [6, 8], [5, 9], [9, 2], [10, 1] and [9, 1]. Run k-means with k = 3, starting from customers 1, 4 and 7, and give each cluster a sensible name.
Remember that each customer is [spending, visits] when you name the clusters.
A seventh customer, [30, 1], spends far more than anyone else. Add them to the six customers and run k-means with k = 2 (starting from the first and last customer), then with k = 3 (starting from customers 1, 4 and 7). What goes wrong with k = 2, and what does the result tell you about this customer?
Count how many customers end up in each cluster.
6 more questions in this section. Enroll free to practise them all.
Enroll free