fit_pca_model#

fit_pca_model(features: ndarray, components: int, ordering: ndarray) PCA[source]#

Fit PCA model to given data.

Parameters:
  • features – Feature data (shape = num_samples x num_feature).

  • components – Number of components to keep.

  • ordering – Data used to reorient components.

Returns:

Fit PCA object.