Why Can't I Import The Agglomerativeclustering Class?
I would like to use AgglomerativeClustering from sklearn but I am not able to import it. >>> from sklearn.cluster import AgglomerativeClustering Traceback (most recent ca
Solution 1:
Looking at the changelog for version 0.15 it looks like the AgglomerativeClustering
class was introduced in this version:
Changelog
New Features
[...]
- Added
cluster.AgglomerativeClustering
for hierarchical agglomerative clustering with average linkage, complete linkage and ward strategies. [...]
So the only fix is to install a newer version of sklearn
.
Post a Comment for "Why Can't I Import The Agglomerativeclustering Class?"