Module svm
source code
Wrap the libsvm package into a very simple class interface.
|
SVM
Support Vector Machine Classifier(s) based on Shogun
|
|
_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
|
|
|
_DEV__doc__ = ...
|
|
_M_DEBUG = shogun.Kernel.MSG_DEBUG
|
|
_M_ERROR = shogun.Kernel.MSG_ERROR
|
Imports:
_random_seed,
operator,
Parameter,
warning,
FailedToTrainError,
MulticlassClassifier,
_SVM,
LinearSVMWeights,
StateVariable,
shogun,
externals,
N,
Sensitivity,
debug
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)
|
Draft helper function to convert data we have into SG suitable format
TODO: Support different datatypes
|
_DEV__doc__
- Value:
"""
TODOs:
* dual-license under GPL for use of SG?
* for recent versions add ability to specify/parametrize normalizatio
n
scheme for the kernel, and reuse 'scale' now for the normalizer
* Add support for simplified linear classifiers (which do not require
...
|
|