TutteInstitute / evoc

Embedding Vector Oriented Clustering
BSD 2-Clause "Simplified" License
97 stars 3 forks source link

Running README example throws error #4

Closed gclendenning closed 4 months ago

gclendenning commented 4 months ago

Running the example in the README

import evoc
from sklearn.datasets import make_blobs

data, _ = make_blobs(n_samples=100_000, n_features=1024, centers=100)

clusterer = evoc.EVoC()
cluster_labels = clusterer.fit_predict(data)
cluster_layers = clusterer.cluster_layers_
hierarchy = clusterer.hierarchy_
potential_duplicates = clusterer.duplicates_

throws the following error

AttributeError: EVoC object has no attribute 'hierarchy_'