#include <BALL/QSAR/libsvmModel.h>
Classes | |
struct | svm_model |
Public Member Functions | |
Constructors and Destructors | |
LibsvmModel (const QSARData &q, int k_type, double p1, double p2=-1) | |
virtual | ~LibsvmModel () |
Accessors | |
void | train () |
void | setParameters (vector< double > &v) |
virtual vector< double > | getParameters () const |
Private Member Functions | |
struct svm_problem * | createProblem (int response_id) |
void | createParameters () |
Private Attributes | |
struct svm_model * | svm_train_result_ |
struct svm_parameter | parameters_ |
struct svm_node * | x_space_ |
bool | use_nu_ |
bool | use_shrinking_ |
double | nu_ |
double | p_ |
double | eps_ |
double | C_ |
Definition at line 41 of file libsvmModel.h.
virtual BALL::QSAR::LibsvmModel::~LibsvmModel | ( | ) | [virtual] |
void BALL::QSAR::LibsvmModel::createParameters | ( | ) | [private] |
struct svm_problem* BALL::QSAR::LibsvmModel::createProblem | ( | int | response_id | ) | [read, private] |
virtual vector<double> BALL::QSAR::LibsvmModel::getParameters | ( | ) | const [virtual] |
Reimplemented from BALL::QSAR::Model.
void BALL::QSAR::LibsvmModel::setParameters | ( | vector< double > & | ) | [virtual] |
sets the model parameters according to the given values.
Reimplemented from BALL::QSAR::Model.
void BALL::QSAR::LibsvmModel::train | ( | ) | [virtual] |
Starts training the model.
Implements BALL::QSAR::Model.
double BALL::QSAR::LibsvmModel::C_ [private] |
Definition at line 108 of file libsvmModel.h.
double BALL::QSAR::LibsvmModel::eps_ [private] |
Definition at line 107 of file libsvmModel.h.
double BALL::QSAR::LibsvmModel::nu_ [private] |
Definition at line 105 of file libsvmModel.h.
double BALL::QSAR::LibsvmModel::p_ [private] |
Definition at line 106 of file libsvmModel.h.
struct svm_parameter BALL::QSAR::LibsvmModel::parameters_ [private] |
Definition at line 95 of file libsvmModel.h.
struct svm_model* BALL::QSAR::LibsvmModel::svm_train_result_ [private] |
Definition at line 93 of file libsvmModel.h.
bool BALL::QSAR::LibsvmModel::use_nu_ [private] |
determines whether nu-SVR is to be used; else eps-SVR is applied
Definition at line 100 of file libsvmModel.h.
bool BALL::QSAR::LibsvmModel::use_shrinking_ [private] |
determines whether the libsvm shrinking heuristics is to be used
Definition at line 103 of file libsvmModel.h.
struct svm_node* BALL::QSAR::LibsvmModel::x_space_ [private] |
Definition at line 97 of file libsvmModel.h.