|
Cosan
1.0
Data Analytics Library
|
Go to the documentation of this file.
5 #ifndef COSAN_COSANPRINCIPALCOMPONENTREGRESSION_H
6 #define COSAN_COSANPRINCIPALCOMPONENTREGRESSION_H
19 template<Numeric NumericType>
52 virtual const std::string
GetName()
const override {
53 return "Principal Component Regression with least square";}
66 CosanMatrix<NumericType> &
GetPC() {
return PC;}
80 #endif //COSAN_COSANPRINCIPALCOMPONENTREGRESSION_H
CosanMatrix< NumericType > GetInput()
Get a copy of CosanMatrix<NumericType> X.
CosanMatrix< NumericType > GetTarget()
Get a copy of CosanMatrix<NumericType> Y.
CosanPrincipalComponentRegression(CosanRawData< NumericType > &RD, NumericType ncomp, bool bias=false)
virtual EProblemType GetProblemType()
CosanMatrix< NumericType > & GetPC()
virtual CosanMatrix< NumericType > predict(const CosanMatrix< NumericType > &X) override
Eigen::Matrix< NumericType, Eigen::Dynamic, Eigen::Dynamic > CosanMatrix
CosanMatrix< NumericType > MBeta
CosanLinear Model. All linear model inherit this object.
CosanMatrix< NumericType > PC
CosanPrincipalComponentRegression(T &&X, const CosanMatrix< NumericType > &Y, NumericType ncomp, bool bias=false)
CosanMatrix< NumericType > & GetPC()
void fit(T &&X, const CosanMatrix< NumericType > &Y)
virtual const std::string GetName() const override
Get the name of the objects.
CosanMatrix< NumericType > DerivatedCovariate
void SetParams(NumericType ncomp)
virtual EModelType GetModelType() override
CosanPrincipalComponentRegression(NumericType ncomp, bool bias=false)
CosanPrincipalComponentRegression()
CosanPrincipalComponentRegression(CosanData< NumericType > &CD, NumericType ncomp, bool bias=false)
@ MdPrincipalComponentRegression