I am trying to cluster my data. I load my data form excel file as you see below in my code:
dfAB1 = pd.read_excel('kucukverideneme_dfAB1.xlsx')
Then I tried to implement Complete Linkage clustering algorithm.
from scipy.cluster.hierarchy import linkage
from scipy.cluster.hierarchy import dendrogram
hc_complete = linkage(dfAB1, "complete")
model = AgglomerativeClustering(n_clusters=3, affinity='euclidean', linkage='complete')
model.fit(dfAB1)
labels_ = model.labels_
I got this error:
"MemoryError:Unable to allocate292.GİB for an array with shape (279953,279953) and data type float 64"
Afterwards, I researched the problem on Stack Overflow and I applied those below: Unable to allocate array with shape and data type.
The, after I run the algorithm again, I didn't received this error but my computer was frozen. It was not finished.
Does anyone have an idea about what should I do?