BALL 1.5.0
gpModel.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4//
5
6#ifndef BALL_QSAR_GPMODEL_H
7#define BALL_QSAR_GPMODEL_H
8
9#ifndef BALL_QSAR_KERNELMODEL_H
11#endif
12
13#ifndef BALL_QSAR_NONLINEARMODEL_H
15#endif
16
17namespace BALL
18{
19 namespace QSAR
20 {
22 {
23 public:
27 GPModel(const QSARData& q, int k_type, double p1, double p2=-1);
28
29 GPModel(const QSARData& q, Eigen::VectorXd& w);
30
32 GPModel(const QSARData& q, String s1, String s2);
33
34 GPModel(const QSARData& q, const LinearModel& lm, int column);
35
37
38 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
40
44 void train();
45
46 Eigen::VectorXd predict(const vector<double>& substance, bool transform=1);
47
50
51 void setParameters(vector<double>& v);
52
53 vector<double> getParameters() const;
55
56 private:
60 Eigen::MatrixXd L_;
61
63 Eigen::VectorXd input_;
64
65 Eigen::RowVectorXd K_t_;
66
67 double lambda_;
69 };
70 }
71}
72
73#endif // GPMODEL
Definition: constants.h:13
GPModel(const QSARData &q, Eigen::VectorXd &w)
void setParameters(vector< double > &v)
GPModel(const QSARData &q, String s1, String s2)
Eigen::VectorXd predict(const vector< double > &substance, bool transform=1)
GPModel(const QSARData &q, const LinearModel &lm, int column)
double calculateStdErr()
GPModel(const QSARData &q, int k_type, double p1, double p2=-1)
vector< double > getParameters() const
#define BALL_EXPORT
Definition: COMMON/global.h:50