Kolik shluků?

Cluster Analysis in Python

Shaumik Daityari

Business Analyst

Úvod do dendrogramů

  • Dosavadní strategie – počet shluků určen vizuální inspekcí
  • Dendrogramy zobrazují průběh slučování shluků
  • Dendrogram je větvený diagram ukazující, jak jsou shluky složeny z poduzlů

Cluster Analysis in Python

Vytvoření dendrogramu v SciPy

from scipy.cluster.hierarchy import dendrogram
Z = linkage(df[['x_whiten', 'y_whiten']], 
            method='ward',
            metric='euclidean')

dn = dendrogram(Z) plt.show()
Cluster Analysis in Python

Cluster Analysis in Python

Cluster Analysis in Python

Cluster Analysis in Python

Cluster Analysis in Python

Cluster Analysis in Python

Nyní si to procvičte

Cluster Analysis in Python

Preparing Video For Download...