|  | OpenMS
    2.6.0
    | 
 
 
  
  
 
Go to the documentation of this file.
   74     typedef std::map<String, std::pair<double, double> > 
ScaleMap;
 
  102     void setup(
PredictorMap& predictors, 
const std::map<Size, Int>& labels);
 
  113     void predict(std::vector<Prediction>& predictions,
 
  114                  std::vector<Size> indexes = std::vector<Size>()) 
const;
 
  124     void getFeatureWeights(std::map<String, double>& feature_weights) 
const;
 
  127     void writeXvalResults(
const String& path) 
const;
 
  136     std::vector<std::vector<struct svm_node> > 
nodes_;
 
  139     struct svm_problem data_;
 
  142     struct svm_parameter svm_params_;
 
  166     void scaleData_(PredictorMap& predictors);
 
  169     void convertData_(
const PredictorMap& predictors);
 
  172     std::pair<double, double> chooseBestParameters_() 
const;
 
  175     void optimizeParameters_();
 
  
std::vector< std::vector< double > > SVMPerformance
Classification performance for different param. combinations (C/gamma):
Definition: SimpleSVM.h:133
ScaleMap scaling_
Mapping from predictor name to predictor min and max.
Definition: SimpleSVM.h:157
SVMPerformance performance_
Cross-validation results.
Definition: SimpleSVM.h:160
Simple interface to support vector machines for classification (via LIBSVM).
Definition: SimpleSVM.h:65
A more convenient string class.
Definition: String.h:59
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::map< String, std::pair< double, double > > ScaleMap
Mapping from predictor name to predictor min and max.
Definition: SimpleSVM.h:74
Int label
Predicted class label.
Definition: SimpleSVM.h:80
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
std::vector< double > log2_gamma_
Definition: SimpleSVM.h:154
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Size n_parts_
Number of partitions for cross-validation.
Definition: SimpleSVM.h:151
std::vector< std::vector< struct svm_node > > nodes_
Values of predictors (LIBSVM format)
Definition: SimpleSVM.h:136
SVM prediction result.
Definition: SimpleSVM.h:77
static void printNull_(const char *)
Dummy function to suppress LIBSVM output.
Definition: SimpleSVM.h:163
struct svm_model * model_
Pointer to SVM model (LIBSVM format)
Definition: SimpleSVM.h:145
std::map< String, std::vector< double > > PredictorMap
Mapping from predictor name to vector of predictor values.
Definition: SimpleSVM.h:71
std::map< Int, double > probabilities
Predicted probabilities for different classes.
Definition: SimpleSVM.h:83
std::vector< String > predictor_names_
Names of predictors in the model (excluding uninformative ones)
Definition: SimpleSVM.h:148