#include <BALL/QSAR/classificationModel.h>
|
|
void | readClassInformationFromFile (std::ifstream &input, int no_classes) |
|
void | saveClassInformationToFile (std::ofstream &out) |
|
void | readMatrix (Matrix< double > &mat, std::ifstream &in, uint lines, uint col) |
|
void | readVector (Vector< double > &vec, std::ifstream &in, uint no_cells, bool column_vector) |
|
void | readModelParametersFromFile (std::ifstream &in) |
|
void | saveModelParametersToFile (std::ofstream &out) |
|
virtual void | saveDescriptorInformationToFile (std::ofstream &out) |
|
virtual void | readDescriptorInformationFromFile (std::ifstream &in, int no_descriptors, bool transformation) |
|
void | readResponseTransformationFromFile (std::ifstream &in, int no_y) |
|
void | saveResponseTransformationToFile (std::ofstream &out) |
|
Vector< double > | getSubstanceVector (const vector< double > &substance, bool transform) |
|
Vector< double > | getSubstanceVector (const Vector< double > &substance, bool transform) |
|
void | backTransformPrediction (Vector< double > &pred) |
|
void | addLambda (Matrix< double > &matrix, double &lambda) |
|
void | readDescriptorInformation () |
|
Definition at line 46 of file classificationModel.h.
BALL::QSAR::ClassificationModel::ClassificationModel |
( |
const QSARData & |
q | ) |
|
constructur,
- Parameters
-
q | QSAR-wrapper object, from which the data for this model should be taken |
BALL::QSAR::ClassificationModel::~ClassificationModel |
( |
| ) |
|
void BALL::QSAR::ClassificationModel::equalSpaceDiscretization |
( |
uint |
bins, |
|
|
BALL::Matrix< double > & |
discretization_information |
|
) |
| |
|
protected |
discretizes each feature in such a way that each created bin has an equal range of values
void BALL::QSAR::ClassificationModel::equalSpaceDiscretizationTestData |
( |
Vector< double > & |
compound, |
|
|
uint |
bins, |
|
|
const BALL::Matrix< double > & |
discretization_information |
|
) |
| |
|
protected |
std::vector<int> BALL::QSAR::ClassificationModel::getClassLabels |
( |
| ) |
|
void BALL::QSAR::ClassificationModel::readClassInformationFromFile |
( |
std::ifstream & |
input, |
|
|
int |
no_classes |
|
) |
| |
|
protected |
void BALL::QSAR::ClassificationModel::readLabels |
( |
| ) |
|
|
protected |
read all different class labels from matrix Y into ClassificationModel.labels
void BALL::QSAR::ClassificationModel::saveClassInformationToFile |
( |
std::ofstream & |
out | ) |
|
|
protected |
void(ClassificationModel::* BALL::QSAR::ClassificationModel::discretizeFeatures)(uint bins, BALL::Matrix< double > &discretization_information) |
|
protected |
Interface function-definition for discretization of features.\n
Thus, various functions that do the actual discretization can be created as members of ClassificationModel, allowing switching of the discretization technique by only (re-)setting this function-pointer.
- Parameters
-
bins | the number of discrete values to be created for each features |
discretization_information | a BALL::Matrix<double> into which the information about the applied discretization should be saved (into one column per feature).
This BALL::Matrix<double> can later be used to discretize test data according to the discretization of the training data. |
Definition at line 101 of file classificationModel.h.
void(ClassificationModel::* BALL::QSAR::ClassificationModel::discretizeTestDataFeatures)(Vector< double > &compound, uint bins, const BALL::Matrix< double > &discretization_information) |
|
protected |
Discretizes test data according to the given discretization of the training data.
- Parameters
-
discretization_information | the discretization according to which the current descriptor_matrix should be discretized. |
Definition at line 105 of file classificationModel.h.
std::vector<int> BALL::QSAR::ClassificationModel::labels_ |
|
protected |
std::vector<int> BALL::QSAR::ClassificationModel::no_substances_ |
|
protected |