What should i do if i get Traceback (most recent call last) error?

32 Views Asked by At

I have an error while run the code

2nd Plot showing the actual clusters formed

colors = cm.nipy_spectral(cluster_labels.astype(float) / n_clusters)
**ax2.scatter (X[:, 0], X[:, 1], marker=".", s=30, lw=0, alpha=0.7, c=colors, edgecolor="k")**

the error is TypeError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_6112/2610634242.py in 87 colors = cm.nipy_spectral(cluster_labels.astype(float) / n_clusters) 88 ax2.scatter( ---> 89 X[:, 0], X[:, 1], marker=".", s=30, lw=0, alpha=0.7, c=colors, edgecolor="k" 90 ) 91

0

There are 0 best solutions below