I got (150, 4)
and (4,)
How to calculate the euclidean distance
from sklearn.metrics.pairwise import euclidean_distances
center_distances = np.array(euclidean_distances(X, middle_point))
and I getting this error
ValueError: Expected 2D array, got 1D array instead:
array=[5.84333333 3.05733333 3.758 1.19933333].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or
array.reshape(1, -1) if it contains a single sample.