|
Cosan
1.0
Data Analytics Library
|
Go to the documentation of this file.
5 #ifndef COSAN_COSANPCRRIDGE_H
6 #define COSAN_COSANPCRRIDGE_H
18 template<Numeric NumericType>
50 virtual const std::string
GetName()
const override {
51 return "Principal Component Regression with least square and ridge regularization";}
66 CosanMatrix<NumericType> &
GetPC() {
return this->
PC;}
73 #endif //COSAN_COSANPCRRIDGE_H
CosanMatrix< NumericType > GetInput()
Get a copy of CosanMatrix<NumericType> X.
CosanMatrix< NumericType > GetTarget()
Get a copy of CosanMatrix<NumericType> Y.
CosanPCRRidge(CosanRawData< NumericType > &RD, std::vector< NumericType > params, bool bias=false)
void fit(T &&X, const CosanMatrix< NumericType > &Y)
CosanPCRRidge(T &&X, const CosanMatrix< NumericType > &Y, std::vector< NumericType > params, bool bias=false)
virtual EProblemType GetProblemType()
CosanMatrix< NumericType > & GetPC()
void SetParams(std::vector< NumericType > params)
Eigen::Matrix< NumericType, Eigen::Dynamic, Eigen::Dynamic > CosanMatrix
CosanMatrix< NumericType > MBeta
@ MdRidgePrincipalComponentRegression
CosanMatrix< NumericType > PC
CosanMatrix< NumericType > & GetPC()
CosanPCRRidge(std::vector< NumericType > params, bool bias=false)
CosanPCRRidge(CosanData< NumericType > &CD, std::vector< NumericType > params, bool bias=false)
CosanMatrix< NumericType > DerivatedCovariate
virtual EModelType GetModelType() override
virtual const std::string GetName() const override
Get the name of the objects.