|
Cosan
1.0
Data Analytics Library
|
#include <CosanLinearRegression.h>
Public Member Functions | |
| 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 EModelType | GetModelType () override |
| virtual EProblemType | GetProblemType () override |
| virtual 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) |
| virtual CosanMatrix< NumericType > | predict (const CosanMatrix< NumericType > &X) override |
Public Member Functions inherited from Cosan::CosanLinearModel< NumericType > | |
| CosanLinearModel ()=delete | |
| CosanLinearModel (bool Bias) | |
| void | SetBias (const bool NewBias) |
| virtual void | SetBeta (CosanMatrix< NumericType > InitBeta) |
| const CosanMatrix< NumericType > & | GetBeta () const |
| bool | GetBias () const |
Public Member Functions inherited from Cosan::CosanModel | |
| CosanModel () | |
| virtual void | SetMaxTrainTime (double t) |
| virtual double | GetMaxTrainTime () const |
| virtual ESolverType | GetSolverType () const |
| void | SetSolverType (ESolverType sr) |
Public Member Functions inherited from Cosan::CosanBO | |
| CosanBO () | |
| Default constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Cosan::CosanLinearModel< NumericType > | |
| CosanMatrix< NumericType > | MBeta |
| bool | MBias |
Protected Attributes inherited from Cosan::CosanModel | |
| double | MaxTrainTime |
| ESolverType | SolverType |
y = a+bx minimize \sum_{i=1}^n (y_i-a-b^T x_i)^2 -> find the optimal a and b
| NumericType | https://en.wikipedia.org/wiki/Linear_regression |
Definition at line 20 of file CosanLinearRegression.h.
|
inline |
Definition at line 23 of file CosanLinearRegression.h.
|
inline |
Definition at line 24 of file CosanLinearRegression.h.
|
inline |
Definition at line 28 of file CosanLinearRegression.h.
|
inline |
Definition at line 32 of file CosanLinearRegression.h.
|
inline |
Definition at line 35 of file CosanLinearRegression.h.
|
inline |
Definition at line 55 of file CosanLinearRegression.h.
|
inlineoverridevirtual |
Reimplemented from Cosan::CosanModel.
Reimplemented in Cosan::CosanRidgeRegression< NumericType >.
Definition at line 44 of file CosanLinearRegression.h.
|
inlineoverridevirtual |
Get the name of the objects.
Description: Get the name of the object. It should return "Abstract Object"
Reimplemented from Cosan::CosanLinearModel< NumericType >.
Reimplemented in Cosan::CosanRidgeRegression< NumericType >.
Definition at line 49 of file CosanLinearRegression.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Cosan::CosanLinearModel< NumericType >.
Definition at line 75 of file CosanLinearRegression.h.