![]() |
Multivariate Pattern Analysis in Python |
Wrap the libsvm package into a very simple class interface.
The comprehensive API documentation for this module, including all technical details, is available in the Epydoc-generated API reference for mvpa.clfs.libsvmc.svm (for developers).
Bases: mvpa.measures.base.Sensitivity
SensitivityAnalyzer for the LIBSVM implementation of a linear SVM.
Note
Available state variables:
- base_sensitivities: Stores basic sensitivities if the sensitivity relies on combining multiple ones
- biases+: Offsets of separating hyperplanes
- null_prob+: State variable
- null_t: State variable
- raw_result: Computed results before applying any transformation algorithm
(States enabled by default are listed with +)
Initialize the analyzer with the classifier it shall use.
| Parameters: |
|
|---|
See also
Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the LinearSVMWeights documentation.
Full API documentation of LinearSVMWeights in module mvpa.clfs.libsvmc.svm.
Bases: mvpa.clfs._svmbase._SVM
Support Vector Machine Classifier.
This is a simple interface to the libSVM package.
Note
Available state variables:
- feature_ids: Feature IDS which were used for the actual training.
- predicting_time+: Time (in seconds) which took classifier to predict
- predictions+: Most recent set of predictions
- probabilities: Estimates of samples probabilities as provided by LibSVM
- trained_dataset: The dataset it has been trained on
- trained_labels+: Set of unique labels it has been trained on
- training_confusion: Confusion matrix of learning performance
- training_time+: Time (in seconds) which took classifier to train
- values+: Internal classifier values the most recent predictions are based on
(States enabled by default are listed with +)
See also
Please refer to the documentation of the base class for more information:
_SVM
Interface class to LIBSVM classifiers and regressions.
Default implementation (C/nu/epsilon SVM) is chosen depending on the given parameters (C/nu/tube_epsilon).
SVM/SVR definition is dependent on specifying kernel, implementation type, and parameters for each of them which vary depending on the choices made.
Desired implementation is specified in svm_impl argument. Here is the list if implementations known to this class, along with specific to them parameters (described below among the rest of parameters), and what tasks it is capable to deal with (e.g. regression, binary and/or multiclass classification).
| Implementations: | |
|---|---|
|
|
Kernel choice is specified as a string argument kernel_type and it can be specialized with additional arguments to this constructor function. Some kernels might allow computation of per feature sensitivity.
| Kernels: |
|
|---|---|
| Parameters: |
|
See also
Derived classes might provide additional methods via their base classes. Please refer to the list of base classes (if it exists) at the begining of the SVM documentation.
Full API documentation of SVM in module mvpa.clfs.libsvmc.svm.