BALL::QSAR::LibsvmModel Class Reference

#include <BALL/QSAR/libsvmModel.h>

Inheritance diagram for BALL::QSAR::LibsvmModel:
Inheritance graph
[legend]

List of all members.

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< doublegetParameters () const

Private Member Functions

struct svm_problem * createProblem (int response_id)
void createParameters ()

Private Attributes

struct svm_modelsvm_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_

Detailed Description

Definition at line 41 of file libsvmModel.h.


Constructor & Destructor Documentation

BALL::QSAR::LibsvmModel::LibsvmModel ( const QSARData q,
int  k_type,
double  p1,
double  p2 = -1 
)
virtual BALL::QSAR::LibsvmModel::~LibsvmModel (  )  [virtual]

Member Function Documentation

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.


Member Data Documentation

Definition at line 108 of file libsvmModel.h.

Definition at line 107 of file libsvmModel.h.

Definition at line 105 of file libsvmModel.h.

Definition at line 106 of file libsvmModel.h.

struct svm_parameter BALL::QSAR::LibsvmModel::parameters_ [private]

Definition at line 95 of file libsvmModel.h.

Definition at line 93 of file libsvmModel.h.

determines whether nu-SVR is to be used; else eps-SVR is applied

Definition at line 100 of file libsvmModel.h.

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.

Generated by  doxygen 1.6.3