Hi Guys I have fitted a DBSCAN model on a set of points (4953 points). Now I need to find the points which belong to different clusters i.e which all input values belong to which all clusters.I have total of 10 clusters.How can I find this out?
db = DBSCAN(eps=0.0003,min_samples=20,n_jobs=-1).fit(X_scaled)
y_pred = db.fit_predict(X_scaled)
pred_labels = db.labels_
print(len(pred_labels))
n_clusters_ = len(set(pred_labels))- (1 if -1 in pred_labels else 0)
print(n_clusters_)
plt.scatter(list(range(len(df_median2))),X_scaled[:,0],c=y_pred, cmap='Paired')
plt.ylim(0.1,0.4)
The above is the code.