|
| | CosanRidgeRegression (bool bias=false) |
| |
| | CosanRidgeRegression (NumericType Lambda, bool bias=false) |
| |
| | CosanRidgeRegression (CosanRawData< NumericType > &RD, bool bias=false) |
| |
| | CosanRidgeRegression (CosanData< NumericType > &CD, bool bias=false) |
| |
| template<class T , std::enable_if_t< std::is_same_v< std::decay_t< T >, CosanMatrix< NumericType >>, bool > = true> |
| | CosanRidgeRegression (T &&X, const CosanMatrix< NumericType > &Y, NumericType Lambda, bool Bias) |
| |
| void | SetParams (NumericType Lambda) |
| |
| NumericType | GetParams () |
| |
| EModelType | GetModelType () override |
| |
| const std::string | GetName () const override |
| | Get the name of the objects. More...
|
| |
| template<class T , std::enable_if_t< std::is_same_v< std::decay_t< T >, CosanMatrix< NumericType >>, bool > = true> |
| void | fit (T &&X, const CosanMatrix< NumericType > &Y) |
| |
| | CosanLinearRegression () |
| |
| | CosanLinearRegression (bool Bias) |
| |
| template<class T , std::enable_if_t< std::is_same_v< std::decay_t< T >, CosanMatrix< NumericType >>, bool > = true> |
| | CosanLinearRegression (T &&X, const CosanMatrix< NumericType > &Y, bool Bias) |
| |
| | CosanLinearRegression (CosanRawData< NumericType > &RD, bool Bias) |
| |
| | CosanLinearRegression (CosanData< NumericType > &CD, bool Bias) |
| |
| virtual EProblemType | GetProblemType () override |
| |
| template<class T , std::enable_if_t< std::is_same_v< std::decay_t< T >, CosanMatrix< NumericType >>, bool > = true> |
| void | fit (T &&X, const CosanMatrix< NumericType > &Y) |
| |
| virtual CosanMatrix< NumericType > | predict (const CosanMatrix< NumericType > &X) override |
| |
| | CosanLinearModel ()=delete |
| |
| | CosanLinearModel (bool Bias) |
| |
| void | SetBias (const bool NewBias) |
| |
| virtual void | SetBeta (CosanMatrix< NumericType > InitBeta) |
| |
| const CosanMatrix< NumericType > & | GetBeta () const |
| |
| bool | GetBias () const |
| |
| | CosanModel () |
| |
| virtual void | SetMaxTrainTime (double t) |
| |
| virtual double | GetMaxTrainTime () const |
| |
| virtual ESolverType | GetSolverType () const |
| |
| void | SetSolverType (ESolverType sr) |
| |
| | CosanBO () |
| | Default constructor. More...
|
| |
template<Numeric NumericType>
class Cosan::CosanRidgeRegression< NumericType >
y = a+bx minimize \sum_{i=1}^n (y_i-a-b^Tx_i)^2+|b|_2^2 -> find the optimal a and b
- Template Parameters
-
Definition at line 18 of file CosanRidgeRegression.h.