SimpleSVM

class pyopenms.SimpleSVM

Bases: object

Cython implementation of _SimpleSVM

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1SimpleSVM.html

– Inherits from [‘DefaultParamHandler’]

__init__()
  • Cython signature: void SimpleSVM()

  • Cython signature: void SimpleSVM(SimpleSVM &)

Methods

__init__

  • Cython signature: void SimpleSVM()

getDefaults

Cython signature: Param getDefaults() Returns the default parameters

getFeatureWeights

Cython signature: void getFeatureWeights(libcpp_map[String,double] & feature_weights)

getName

Cython signature: String getName() Returns the name

getParameters

Cython signature: Param getParameters() Returns the parameters

getSubsections

Cython signature: libcpp_vector[String] getSubsections()

predict

Cython signature: void predict(libcpp_vector[SVMPrediction] & predictions, libcpp_vector[size_t] indexes)

setName

Cython signature: void setName(const String &) Sets the name

setParameters

Cython signature: void setParameters(Param & param) Sets the parameters

writeXvalResults

Cython signature: void writeXvalResults(const String & path)

getDefaults()

Cython signature: Param getDefaults() Returns the default parameters

getFeatureWeights()

Cython signature: void getFeatureWeights(libcpp_map[String,double] & feature_weights)

Currently only supported for two-class classification If a linear kernel is used, the weights are informative for ranking features

getName()

Cython signature: String getName() Returns the name

getParameters()

Cython signature: Param getParameters() Returns the parameters

getSubsections()

Cython signature: libcpp_vector[String] getSubsections()

predict()

Cython signature: void predict(libcpp_vector[SVMPrediction] & predictions, libcpp_vector[size_t] indexes)

Parameters
  • predictions – Output vector of prediction results (same order as ``)

  • indexes – Vector of observation indexes for which predictions are desired. If empty (default), predictions are made for all observations

setName()

Cython signature: void setName(const String &) Sets the name

setParameters()

Cython signature: void setParameters(Param & param) Sets the parameters

writeXvalResults()

Cython signature: void writeXvalResults(const String & path)