I obtained features from 10 images from 2 categories (cats and dogs) using CNN. So I have a (10, 2500) numpy array. I applied the OPTICS clustering algorithm on the array to find which image belongs to which cluster
clustering = OPTICS(min_samples=2).fit(train_data_array)
Now I'm trying to plot the clusters using seaborn
sns.scatterplot(data=train_data_array).plot
But there's no plot.
There's two issues.
Below is an example using iris dataset:
Peform the clustering like you did:
Perform PCA on this data with 4 variables, return top 2 components:
Add PC scores and clustering results to training data, or you can make a separate data.frame:
Plot: