Python Agglomerative Clustering

1.3k views Asked by At

I am new on clustering ( using sklearn in Python). I am trying to import Agglomerative Clustering using:

from sklearn.cluster import AgglomerativeClustering

but I get the following error:

from sklearn.cluster import AgglomerativeClustering

ImportError: cannot import name AgglomerativeClustering

I did install the latest version of sklearn on my UBUNTU machine from http://scikit-learn.org/, but still no luck!! Can anyone help me on this?

1

There are 1 answers

0
Falconic On

I'm a bit late in posting this but for everyone else who comes across this error, you would want to see this thread Why can't I import the AgglomerativeClustering class?

You probably need to upgrade your scikit-learn version to make use of agglomerative clustering feature.