Package mvpa :: Package clfs :: Module base :: Class SplitClassifier
[hide private]
[frames] | no frames]

Class SplitClassifier

source code


BoostedClassifier to work on splits of the data

TODO: SplitClassifier and MulticlassClassifier have too much in
common -- need to refactor: just need a splitter which would split dataset in pairs of class labels. MulticlassClassifier does just a tiny bit more which might be not necessary at all: map sets of labels into 2 categories...
Nested Classes [hide private]

Inherited from misc.state.Stateful: __metaclass__

Instance Methods [hide private]
 
__init__(self, clf, splitter=NFoldSplitter(cvtype=1), **kwargs)
Initialize the instance
source code
 
_train(self, dataset)
Train SplitClassifier
source code
 
getSensitivityAnalyzer(self, **kwargs)
Return an appropriate SensitivityAnalyzer
source code

Inherited from CombinedClassifier: __repr__, untrain

Inherited from CombinedClassifier (private): _predict

Inherited from Classifier: __str__, isTrained, predict, regression, train, train2predict, trained

Inherited from misc.state.Harvestable (private): _harvest, _setAttribs

Inherited from misc.state.Stateful: __getattribute__, __setattr__, reset

Inherited from object: __delattr__, __hash__, __new__, __reduce__, __reduce_ex__

Class Variables [hide private]
  training_confusions = StateVariable(enabled= False, doc= "Resu...

Inherited from CombinedClassifier: combiner

Inherited from BoostedClassifier: clfs, raw_predictions, raw_values

Inherited from Classifier: feature_ids, predicting_time, predictions, retrainable, trained_dataset, trained_labels, training_confusion, training_time, values

Inherited from Classifier (private): _clf_internals

Inherited from misc.state.Harvestable: harvested

Inherited from misc.state.Stateful (private): _initargs

Instance Variables [hide private]
  __clf
Store sample instance of basic classifier

Inherited from Classifier (private): _regression, _train2predict

Properties [hide private]

Inherited from misc.state.Harvestable: harvest_attribs

Inherited from misc.state.Stateful: descr

Inherited from object: __class__

Method Details [hide private]

__init__(self, clf, splitter=NFoldSplitter(cvtype=1), **kwargs)
(Constructor)

source code 
Initialize the instance
Parameters:
  • clf (Classifier) - classifier based on which multiple classifiers are created for multiclass
  • splitter (Splitter) - Splitter to use to split the dataset prior training
Overrides: object.__init__

_train(self, dataset)

source code 
Train SplitClassifier
Overrides: Classifier._train

getSensitivityAnalyzer(self, **kwargs)

source code 
Return an appropriate SensitivityAnalyzer
Overrides: Classifier.getSensitivityAnalyzer

Class Variable Details [hide private]

training_confusions

Value:
StateVariable(enabled= False, doc= "Resultant confusion matrices whene\
ver classifier trained "+ "on 1 part and tested on 2nd part of each sp\
lit")