DEC-Keras icon indicating copy to clipboard operation
DEC-Keras copied to clipboard

visualize

Open mzamini92 opened this issue 6 years ago • 2 comments

how can we visualize the clusters?

mzamini92 avatar Jun 05 '18 06:06 mzamini92

To visualize the components in 2d, perform predictions using only the encoder to get the embedded vectors for each sample. Then perform a PCA with two components on this array and plot the array using matplot lib. If you make predictions with the whole model, you will get a reconstruction of the image, which does not give us useful clusters, get the embedded vectors using model.get_layer(index=0).predict(X).

digivi13 avatar May 29 '19 19:05 digivi13

or possibly use model.encoder.predict(X)

digivi13 avatar May 29 '19 19:05 digivi13