1Using the np.array function create an np array from the data given above.
2Generate a scatter plot for the data.
3Plot dendrogram to visualize the clustering linkage
Data:[[5,3], [10,15], [15,12], [24,10], [30,30], [85,70], [71,80], [60,78], [70,55], [80,91],]
import numpy as np
dt = np.array(
[[5,3],
[10,15],
[15,12],
[24,10],
[30,30],
[85,70],
[71,80],
[60,78],
[70,55],
[80,91]])
plt.plow(dt)
plt.show()
Comments
Leave a comment