Difference between revisions of "PCA"

From Bitnami MediaWiki
Jump to navigation Jump to search
(Created page with "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_' v...")
 
Line 1: Line 1:
 
Sklearn's parameters for various types of PCA
 
Sklearn's parameters for various types of PCA
  
−
PCA:
+
;PCA
−
n_components=None [int, float, 'mle']
+
*n_components=None [int, float, 'mle']
−
copy=True [data are overwritten if False and run .fit]
+
*copy=True [data are overwritten if False and run .fit]
−
whiten=False  ['components_' vectors are multiplied by sqrt(n_samples), divided by SVs]
+
*whiten=False  ['components_' vectors are multiplied by sqrt(n_samples), divided by SVs]
−
svd_solver='auto' ['full', 'arpack', 'randomized']
+
*svd_solver='auto' ['full', 'arpack', 'randomized']
−
tol=0.0 [tolerance for SVD only for arpack]
+
*tol=0.0 [tolerance for SVD only for arpack]
−
iterated_power='auto' [int; iterations for power method computed by SVD]
+
*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

Revision as of 04:11, 9 March 2021

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