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
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to