BALL::QSAR::LogitModel Class Reference

#include <BALL/QSAR/logitModel.h>

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

List of all members.

Public Member Functions

Constructors and Destructors

 LogitModel (const QSARData &q)
 ~LogitModel ()
Accessors

void train ()
Vector< doublepredict (const vector< double > &substance, bool transform)
void saveToFile (string filename)
void readFromFile (string filename)

Protected Attributes

Attributes

Matrix< doubletraining_result_

Detailed Description

class for logistic regression

Definition at line 39 of file logitModel.h.


Constructor & Destructor Documentation

BALL::QSAR::LogitModel::LogitModel ( const QSARData q  ) 
BALL::QSAR::LogitModel::~LogitModel (  ) 

Member Function Documentation

Vector<double> BALL::QSAR::LogitModel::predict ( const vector< double > &  substance,
bool  transform 
) [virtual]

Predicts the activities of a given substance

Parameters:
substance the substance which activity is to be predicted in form of a vecor containing the values for *all* descriptors (if neccessary, relevant descriptors will be selected automatically)
transform determines whether the values for each descriptor of the given substance should be transformed before prediction of activity.
If (transform==1): each descriptor value is transformed according to the centering of the respective column of QSARData.descriptor_matrix used to train this model.
If the substance to be predicted is part of the same input data (e.g. same SD-file) as the training data (as is the case during cross validation), transform should therefore be set to 0.
Returns:
a RowVector containing one value for each predicted activity

Implements BALL::QSAR::Model.

void BALL::QSAR::LogitModel::readFromFile ( string  filename  )  [virtual]

reconstruct a saved Model from a file

Implements BALL::QSAR::Model.

void BALL::QSAR::LogitModel::saveToFile ( string  filename  )  [virtual]

save Model to a file

Implements BALL::QSAR::Model.

void BALL::QSAR::LogitModel::train (  )  [virtual]

Starts training the model.

Implements BALL::QSAR::Model.


Member Data Documentation

Definition at line 68 of file logitModel.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3