Course Content
Cluster Analysis
Cluster Analysis
1. What is Clustering?
3. How to choose the best model?
Perform Agglomerative Clustering
Task
Swipe to show code editor
Your task is to use different linkage types and to look at the performance of agglomerative clustering on moons and circles datasets. You have to:
- Import
AgglomerativeClustering
class from sklearn.cluster module. - Add a parameter with the name
linkage
as an input of the function. - Add
.fit()
method of theagglomerative
object to train the model. - Use
'single'
,'complete'
, and'average'
as parameters of the function(parameters in the code have to be used in the same order).
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 4
Perform Agglomerative Clustering
Task
Swipe to show code editor
Your task is to use different linkage types and to look at the performance of agglomerative clustering on moons and circles datasets. You have to:
- Import
AgglomerativeClustering
class from sklearn.cluster module. - Add a parameter with the name
linkage
as an input of the function. - Add
.fit()
method of theagglomerative
object to train the model. - Use
'single'
,'complete'
, and'average'
as parameters of the function(parameters in the code have to be used in the same order).
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below