Package mvpa :: Package clfs :: Module meta :: Class MulticlassClassifier
[hide private]
[frames] | no frames]

Class MulticlassClassifier

source code


CombinedClassifier to perform multiclass using a list of BinaryClassifier.

such as 1-vs-1 (ie in pairs like libsvm doesn) or 1-vs-all (which is yet to think about)

Nested Classes [hide private]

Inherited from misc.state.ClassWithCollections: __metaclass__

Instance Methods [hide private]
 
__init__(self, clf, bclf_type="1-vs-1", **kwargs)
Initialize the instance
source code
 
__repr__(self, prefixes=[])
Literal representation of CombinedClassifier.
source code
 
_train(self, dataset)
Train classifier
source code

Inherited from CombinedClassifier: summary, untrain

Inherited from CombinedClassifier (private): _predict

Inherited from BoostedClassifier: getSensitivityAnalyzer

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

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

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

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

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

Class Variables [hide private]

Inherited from CombinedClassifier: combiner

Inherited from BoostedClassifier: clfs, raw_predictions, raw_values

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 base.Classifier (private): _clf_internals

Inherited from misc.state.Harvestable: harvest_attribs, harvested

Inherited from misc.state.Harvestable (private): _KNOWN_COPY_METHODS

Inherited from misc.state.ClassWithCollections: descr

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

Inherited from object: __class__

Method Details [hide private]

__init__(self, clf, bclf_type="1-vs-1", **kwargs)
(Constructor)

source code 
Initialize the instance
Parameters:
  • clf (Classifier) - classifier based on which multiple classifiers are created for multiclass
  • bclf_type - "1-vs-1" or "1-vs-all", determines the way to generate binary classifiers
Overrides: object.__init__

__repr__(self, prefixes=[])
(Representation operator)

source code 
Literal representation of CombinedClassifier.
Parameters:
  • fullname - Either to include full name of the module
  • prefixes - What other prefixes to prepend to list of arguments
Overrides: object.__repr__
(inherited documentation)

_train(self, dataset)

source code 
Train classifier
Overrides: base.Classifier._train