BALL 1.5.0
Loading...
Searching...
No Matches
kplsModel.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_KPLSMODEL_H
7#define BALL_QSAR_KPLSMODEL_H
8
9#ifndef BALL_QSAR_KERNELMODEL_H
11#endif
12
13#ifndef BALL_QSAR_NONLINEARMODEL_H
15#endif
16
17#ifndef BALL_QSAR_LATENTVARIABLEMODEL_H
19#endif
20
21namespace BALL
22{
23 namespace QSAR
24 {
27 {
28 public:
32 KPLSModel(const QSARData& q, int k_type, double p1, double p2=-1);
33
34 KPLSModel(const QSARData& q, Eigen::VectorXd& w);
35
36 KPLSModel(const QSARData& q, String s1, String s2);
37
38 KPLSModel(const QSARData& q, const LinearModel& lm, int column);
39
41
42 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
44
45
49
50 void train();
51
53 bool optimizeParameters(int k, int no_steps);
54
57
58 void setNoComponents(int d);
59
61 const Eigen::MatrixXd* getU();
62
63 void setParameters(vector<double>& v);
64
65 vector<double> getParameters() const;
67
68
69 protected:
72 Eigen::MatrixXd U_;
73
76
77 };
78 }
79}
80
81#endif // KPLSMODEL
void setNoComponents(int d)
bool optimizeParameters(int k, int no_steps)
void setParameters(vector< double > &v)
vector< double > getParameters() const
Eigen::MatrixXd U_
Definition kplsModel.h:72
KPLSModel(const QSARData &q, String s1, String s2)
KPLSModel(const QSARData &q, int k_type, double p1, double p2=-1)
KPLSModel(const QSARData &q, const LinearModel &lm, int column)
const Eigen::MatrixXd * getU()
KPLSModel(const QSARData &q, Eigen::VectorXd &w)
#define BALL_EXPORT