prevision_quantum_nn.preprocessing.dimension_reduction.pca

Principal Component Analysis module

Module Contents

Classes

PrincipalComponentAnalysis Class PrincipalComponentAnalysis.
class prevision_quantum_nn.preprocessing.dimension_reduction.pca.PrincipalComponentAnalysis

Class PrincipalComponentAnalysis.

pca

sklearn dimension reduction fitter

Type:sklearn.preprocessing.PCA
fit_transform(self, features, num_components)

Fits and transforms data with PCA.

Parameters:
  • features (numpy array) – input features
  • num_components (int) – number of components to which the data should be decreased
fit(self, features, num_components)

Fits data to num_components.

Parameters:
  • features (numpy array) – input features
  • num_components (int) – number of components to which the data should be decreased
transform(self, features)

Transforms input features with PCA.

Parameters:features (numpy array) – input features
Returns:transformed features
Return type:numpy array