Package mvpa :: Package clfs :: Module ridge :: Class RidgeReg
[hide private]
[frames] | no frames]

Class RidgeReg

source code


Ridge regression Classifier.

This ridge regression adds an intercept term so your labels do not have to be zero-centered.

Nested Classes [hide private]

Inherited from misc.state.ClassWithCollections: __metaclass__

Instance Methods [hide private]
 
__init__(self, lm=None, **kwargs)
Initialize a ridge regression analysis.
source code
 
__repr__(self)
String summary of the object
source code
 
_train(self, data)
Train the classifier using data (Dataset).
source code
 
_predict(self, data)
Predict the output for the provided data.
source code

Inherited from base.Classifier: __str__, clone, getSensitivityAnalyzer, isTrained, predict, repredict, retrain, summary, train, trained, untrain

Inherited from base.Classifier (private): _getFeatureIds, _postpredict, _posttrain, _prepredict, _pretrain, _regressionIsBogus, _setRetrainable

Inherited from misc.state.ClassWithCollections: __getattribute__, __new__, __setattr__, reset

Inherited from object: __delattr__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _clf_internals = ['ridge', 'regression', 'linear']
Describes some specifics about the classifier -- is that it is doing regression for instance....

Inherited from base.Classifier: _DEV__doc__, feature_ids, predicting_time, predictions, regression, retrainable, trained_dataset, trained_labels, trained_nsamples, training_confusion, training_time, values

Inherited from misc.state.ClassWithCollections: descr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lm=None, **kwargs)
(Constructor)

source code 
Initialize a ridge regression analysis.
Parameters:
  • lm (float) - the penalty term lambda. (Defaults to .05*nFeatures)
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
String summary of the object
Parameters:
  • fullname - Either to include full name of the module
  • prefixes - What other prefixes to prepend to list of arguments
Overrides: object.__repr__

_train(self, data)

source code 
Train the classifier using data (Dataset).
Overrides: base.Classifier._train

_predict(self, data)

source code 
Predict the output for the provided data.
Overrides: base.Classifier._predict