# Install the necessary dependencies

import os
import sys
!{sys.executable} -m pip install --quiet pandas scikit-learn numpy matplotlib jupyterlab_myst ipython

14. Clustering models for Machine Learning#

Clustering is a machine learning task where it looks to find objects that resemble one another and group these into groups called clusters. What differs clustering from other approaches in machine learning, is that things happen automatically, in fact, it’s fair to say it’s the opposite of supervised learning.

Nigeria’s diverse audience has diverse musical tastes, let’s look at some music popular in Nigeria. This dataset includes data about various songs’ ‘danceability’ score, ‘acousticness’, loudness, ‘speechiness’, popularity and energy. It will be interesting to discover patterns in this data!

https://static-1300131294.cos.ap-shanghai.myqcloud.com/images/clustering/turntable.png

Fig. 14.1 A turntable photographed by Marcela Laskoski on Unsplash#