[scikit-learn] Issue in BIRCH clustering algo
Farzana Anowar
fad469 at uregina.ca
Thu Feb 11 11:29:16 EST 2021
Hello everyone,
I was trying to run the BIRCH clustering algorithm. However, after
fitting the model I am facing the following error:
AttributeError: '_CFSubcluster' object has no attribute 'sq_norm_'
This error occurs only after fitting the model and I couldn't find any
proper explanation of this. Could anyone give me any suggestions on
that? It would be really helpful.
Here is my code:
from sklearn.cluster import Birch
# Creating the BIRCH clustering model
model = Birch(n_clusters = None)
# Fit the data (Training)
model.fit(df)
# Predict the same data
pred = model.predict(df)
--
Best Regards,
Farzana Anowar,
PhD Candidate
Department of Computer Science
University of Regina
More information about the scikit-learn
mailing list