Package pyvision :: Package ml :: Module pca
[hide private]
[frames] | no frames]

Module pca

source code

Created on Jan 17, 2011


Author: bolme

Functions [hide private]
 
prcomp(data, center=True, scale=False)
Conduct a basic principal components analysis on the data.
source code
 
pca(data, center=True, scale=False)
Conduct a basic principal components analysis on the data.
source code
Variables [hide private]
  __package__ = 'pyvision.ml'
Function Details [hide private]

prcomp(data, center=True, scale=False)

source code 

Conduct a basic principal components analysis on the data.

This function has been compared to R to verify that it produces similar results.

Parameters:
  • data - a data matrix with vectors in rows
  • center - subtract the mean vector from the data
  • scale - scale the values to have unit variance
Returns:
stdevs,rotation,[center],[scale]

pca(data, center=True, scale=False)

source code 

Conduct a basic principal components analysis on the data.

This function has been compared to R to verify that it produces similar results.

Parameters:
  • data - a data matrix with vectors in rows
  • center - subtract the mean vector from the data
  • scale - scale the values to have unit variance
Returns:
stdevs,rotation,[center],[scale]