SVMWrapper
- class pyopenms.SVMWrapper
Bases:
objectCython implementation of _SVMWrapper
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1SVMWrapper.html
- __init__()
Cython signature: void SVMWrapper()
Cython signature: void SVMWrapper(SVMWrapper &)
Methods
Cython signature: void SVMWrapper()
Cython signature: void calculateGaussTable(size_t border_length, double sigma, libcpp_vector[double] & gauss_table)
Cython signature: void createRandomPartitions(SVMData & problem, size_t number, libcpp_vector[SVMData] & problems)
Cython signature: double getDoubleParameter(SVM_parameter_type type_)
Cython signature: int getIntParameter(SVM_parameter_type type_)
Cython signature: double getPValue(double sigma1, double sigma2, libcpp_pair[double,double] point)
Cython signature: double getSVRProbability()
Cython signature: void getSignificanceBorders(SVMData & data, libcpp_pair[double,double] & sigmas, double confidence, size_t number_of_runs, size_t number_of_partitions, double step_size, size_t max_iterations)
Cython signature: void loadModel(String modelFilename) The svm-model is loaded.
Cython signature: void mergePartitions(libcpp_vector[SVMData] & problems, size_t except_, SVMData & merged_problem)
Cython signature: void predict(SVMData & problem, libcpp_vector[double] & results) The prediction process is started and the results are stored in 'predicted_labels'
Cython signature: void saveModel(String modelFilename) The model of the trained svm is saved into 'modelFilename'
Cython signature: void setParameter(SVM_parameter_type type_, int value)
Cython signature: void setTrainingSample(SVMData & training_sample)
Cython signature: void setWeights(libcpp_vector[int] & weight_labels, libcpp_vector[double] & weights)
Cython signature: int train(SVMData & problem) The svm is trained with the data stored in the 'svm_problem' structure
- SVM_kernel_type
alias of
pyopenms.pyopenms_8.__SVM_kernel_type
- SVM_parameter_type
alias of
pyopenms.pyopenms_8.__SVM_parameter_type
- calculateGaussTable()
Cython signature: void calculateGaussTable(size_t border_length, double sigma, libcpp_vector[double] & gauss_table)
- createRandomPartitions()
Cython signature: void createRandomPartitions(SVMData & problem, size_t number, libcpp_vector[SVMData] & problems)
- getPValue()
Cython signature: double getPValue(double sigma1, double sigma2, libcpp_pair[double,double] point)
- getSVRProbability()
Cython signature: double getSVRProbability()
- getSignificanceBorders()
Cython signature: void getSignificanceBorders(SVMData & data, libcpp_pair[double,double] & sigmas, double confidence, size_t number_of_runs, size_t number_of_partitions, double step_size, size_t max_iterations)
- loadModel()
Cython signature: void loadModel(String modelFilename) The svm-model is loaded. After this, the svm is ready for prediction
- mergePartitions()
Cython signature: void mergePartitions(libcpp_vector[SVMData] & problems, size_t except_, SVMData & merged_problem)
- predict()
Cython signature: void predict(SVMData & problem, libcpp_vector[double] & results) The prediction process is started and the results are stored in ‘predicted_labels’
- saveModel()
Cython signature: void saveModel(String modelFilename) The model of the trained svm is saved into ‘modelFilename’
- setParameter()
- setTrainingSample()
Cython signature: void setTrainingSample(SVMData & training_sample)
- setWeights()
Cython signature: void setWeights(libcpp_vector[int] & weight_labels, libcpp_vector[double] & weights)
- train()
Cython signature: int train(SVMData & problem) The svm is trained with the data stored in the ‘svm_problem’ structure