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

Module svm

source code

Wrap the libsvm package into a very simple class interface.
Classes [hide private]
  SVM
Support Vector Machine Classifier(s) based on Shogun
Functions [hide private]
 
_get_implementation(svm_impl, nl) source code
 
_setdebug(obj, partname)
Helper to set level of debugging output for SG :Parameters: obj In SG debug output seems to be set per every object partname : basestring For what kind of object we are talking about...
source code
 
_tosg(data)
Draft helper function to convert data we have into SG suitable format
source code
Variables [hide private]
  known_svm_impl = {"libsvm":(shogun.Classifier.LibSVM, ''), "gm...

Imports: N, shogun, Parameter, warning, _SVM, StateVariable, idhash, Classifier, MulticlassClassifier, Sensitivity, externals, debug


Function Details [hide private]

_setdebug(obj, partname)

source code 
Helper to set level of debugging output for SG
:Parameters:
  obj
    In SG debug output seems to be set per every object
  partname : basestring
    For what kind of object we are talking about... could be automated
    later on (TODO)

_tosg(data)

source code 

Draft helper function to convert data we have into SG suitable format

TODO: Support different datatypes


Variables Details [hide private]

known_svm_impl

Value:
{"libsvm":(shogun.Classifier.LibSVM, ''), "gmnp":(shogun.Classifier.GM\
NPSVM, ''), "mpd":(shogun.Classifier.MPDSVM, ''), "gpbt":(shogun.Class\
ifier.GPBTSVM, ''), "gnpp":(shogun.Classifier.GNPPSVM, ''), "libsvr":(\
shogun.Regression.LibSVR, ''), "krr":(shogun.Regression.KRR, ''),}