Package mvpa :: Package clfs :: Module svm
[hide private]
[frames] | no frames]

Module svm

source code

Importer for the available SVM and SVR machines.

Multiple external libraries implementing Support Vector Machines (Classification) and Regressions are available: LIBSVM, and shogun. This module is just a helper to provide default implementation for SVM depending on the availability of external libraries. By default LIBSVM implementation is choosen by default, but in any case both libraries are available through importing from this module:

> from mvpa.clfs.svm import sg, libsvm > help(sg.SVM) > help(libsvm.SVM)

Please refer to particular interface for more documentation about parametrization and available kernels and implementations.

Classes [hide private]
  LinearCSVMC
  RbfCSVMC
  LinearNuSVMC
  RbfNuSVMC
Variables [hide private]
  _VALID_BACKENDS = 'libsvm', 'shogun', 'sg'
  default_backend = 'sg'
  _NuSVM = libsvm.SVM
  SVM = libsvm.SVM
  _defaultC = _SVM._SVM_PARAMS ['C'].default
  _defaultNu = _SVM._SVM_PARAMS ['nu'].default

Imports: warning, cfg, externals, _SVM, debug, sg, libsvm