imagecluster.calc.pca

imagecluster.calc.pca(fingerprints, n_components=0.9, **kwds)[source]

PCA of fingerprints for dimensionality reduction.

Parameters:

fingerprints : see fingerprints()

n_components, kwds : passed to sklearn.decomposition.PCA

Returns:

dict

same format as in fingerprints(), compressed fingerprints, so hopefully lower dim 1d arrays