#include <BALL/QSAR/classificationModel.h>
|
|
void | readClassInformationFromFile (std::ifstream &input, int no_classes) |
|
void | saveClassInformationToFile (std::ofstream &out) |
|
void | readMatrix (Eigen::MatrixXd &mat, std::ifstream &in, unsigned int lines, unsigned int col) |
|
void | readVector (Eigen::RowVectorXd &vec, std::ifstream &in, unsigned int 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) |
|
Eigen::VectorXd | getSubstanceVector (const vector< double > &substance, bool transform) |
|
Eigen::VectorXd | getSubstanceVector (const Eigen::VectorXd &substance, bool transform) |
|
void | backTransformPrediction (Eigen::VectorXd &pred) |
|
void | addLambda (Eigen::MatrixXd &matrix, double &lambda) |
|
void | readDescriptorInformation () |
|
Definition at line 26 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 |
( |
unsigned int |
bins, |
|
|
Eigen::MatrixXd & |
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 |
( |
Eigen::VectorXd & |
compound, |
|
|
unsigned int |
bins, |
|
|
const Eigen::MatrixXd & |
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)(unsigned int bins, Eigen::MatrixXd &discretization_information) |
|
protected |
Interface function-definition for discretization of features.
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 Eigen::MatrixXd into which the information about the applied discretization should be saved (into one column per feature).
This Eigen::MatrixXd can later be used to discretize test data according to the discretization of the training data. |
Definition at line 82 of file classificationModel.h.
void(ClassificationModel::* BALL::QSAR::ClassificationModel::discretizeTestDataFeatures)(Eigen::VectorXd &compound, unsigned int bins, const Eigen::MatrixXd &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 86 of file classificationModel.h.
std::vector<int> BALL::QSAR::ClassificationModel::labels_ |
|
protected |
std::vector<int> BALL::QSAR::ClassificationModel::no_substances_ |
|
protected |