mvpa2.mappers.mdp_adaptor.PCAMapper

Inheritance diagram of PCAMapper

class mvpa2.mappers.mdp_adaptor.PCAMapper(alg='PCA', nodeargs=None, **kwargs)

Convenience wrapper to perform PCA using MDP’s Mapper

Notes

Available conditional attributes:

  • calling_time+: None
  • raw_results: None
  • trained_dataset: None
  • trained_nsamples+: None
  • trained_targets+: None
  • training_time+: None

(Conditional attributes enabled by default suffixed with +)

Methods

Parameters:

alg : {‘PCA’, ‘NIPALS’}

Which MDP implementation of a PCA to use.

nodeargs : None or dict

Arguments passed to the MDP node in various stages of its lifetime. See the MDPNodeMapper for more details.

enable_ca : None or list of str

Names of the conditional attributes which should be enabled in addition to the default ones

disable_ca : None or list of str

Names of the conditional attributes which should be disabled

node : mdp.Node instance

This node instance is taken as the pristine source of which a copy is made for actual processing upon each training attempt.

Methods

centroid

Mean of the training data

proj

Projection matrix (as an array)

recon

Backprojection matrix (as an array)

var

Variances per component