PCA

From Bitnami MediaWiki
Revision as of 04:11, 9 March 2021 by User (talk | contribs)
Jump to navigation Jump to search

Sklearn's parameters for various types of PCA

PCA
  • n_components=None [int, float, 'mle']
  • copy=True [data are overwritten if False and run .fit]
  • whiten=False ['components_' vectors are multiplied by sqrt(n_samples), divided by SVs]
  • svd_solver='auto' ['full', 'arpack', 'randomized']
  • tol=0.0 [tolerance for SVD only for arpack]
  • iterated_power='auto' [int; iterations for power method computed by SVD]


Incremental PCA
  • n_components, whiten, copy,
  • batch_size=None [default=5*n_features; only used when calling 'fit']


Sparse PCA
  • n_components
  • alpha=1 [sparsity parameter; higher is sparser]
  • ridge_alpha=0.01 [amount of ridge shrinkage to apply when calling transform method]
  • max_iter=1000
  • tol=1e-8 [tolerance for stopping condition]
  • method='lars' [LARs using least angle reg to solve lasso problem, 'cd' uses coordinate descent