Unsupervised learning

Capire il Machine Learning

Hadrien Lacroix

Content Developer at DataCamp

Unsupervised learning

unsupervised learning is highlighted

Capire il Machine Learning

Unsupervised learning

  • Unsupervised learning = no target column
    • No guidance
    • Looks at the whole dataset
    • Tries to detect patterns
Capire il Machine Learning

Applications

clustering, association and unsupervised learning are subgroups of supervised learning

Capire il Machine Learning

Clustering

clustering is highlighted

Capire il Machine Learning

Clustering example

dogs and cats

Capire il Machine Learning

Species cluster

dogs and cats by species

Capire il Machine Learning

Color cluster

dogs and cats by color

Capire il Machine Learning

Origin cluster

dogs and cats by origin

Capire il Machine Learning

Clustering models

  • K Means:
    • Specify the number of clusters
  • DBSCAN (density-based spatial clustering of applications with noise):
    • Specify what constitutes a cluster
Capire il Machine Learning

Iris table

iris table

Capire il Machine Learning

K-Means with 4 clusters

iris_clustering_four_clusters

Capire il Machine Learning

K-Means with 3 clusters

iris clustering three clusters

Capire il Machine Learning

Ground truth

iris clustering with legend

Capire il Machine Learning

Anomaly detection

anomaly detection is highlighted

Capire il Machine Learning

Detecting outliers

  • Anomaly detection = detecting outliers
  • Outliers = observations that differ from the rest
Capire il Machine Learning

Outliers

outliers

Capire il Machine Learning

Removing outliers

removing outliers

Capire il Machine Learning

Some anomaly detection use cases

  • Discover devices that fail faster or last longer
  • Discover fraudsters that manage trick the system
  • Discover patients that resist a fatal disease
  • ...
Capire il Machine Learning

Association

association is highlighted

Capire il Machine Learning

Association

amazon recommendation

Capire il Machine Learning

Let's practice!

Capire il Machine Learning

Preparing Video For Download...