Unsupervised learning

Understanding Machine Learning

Hadrien Lacroix

Content Developer at DataCamp

Unsupervised learning

unsupervised learning is highlighted

Understanding Machine Learning

Unsupervised learning

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

Applications

clustering, association and unsupervised learning are subgroups of supervised learning

Understanding Machine Learning

Clustering

clustering is highlighted

Understanding Machine Learning

Clustering example

dogs and cats

Understanding Machine Learning

Species cluster

dogs and cats by species

Understanding Machine Learning

Color cluster

dogs and cats by color

Understanding Machine Learning

Origin cluster

dogs and cats by origin

Understanding 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
Understanding Machine Learning

Iris table

iris table

Understanding Machine Learning

K-Means with 4 clusters

iris_clustering_four_clusters

Understanding Machine Learning

K-Means with 3 clusters

iris clustering three clusters

Understanding Machine Learning

Ground truth

iris clustering with legend

Understanding Machine Learning

Anomaly detection

anomaly detection is highlighted

Understanding Machine Learning

Detecting outliers

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

Outliers

outliers

Understanding Machine Learning

Removing outliers

removing outliers

Understanding 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
  • ...
Understanding Machine Learning

Association

association is highlighted

Understanding Machine Learning

Association

amazon recommendation

Understanding Machine Learning

Let's practice!

Understanding Machine Learning

Preparing Video For Download...