|
Cosan
1.0
Data Analytics Library
|
CosanLinear Model. All linear model inherit this object. More...
#include <CosanLinearModel.h>
Public Member Functions | |
| CosanLinearModel ()=delete | |
| CosanLinearModel (bool Bias) | |
| void | SetBias (const bool NewBias) |
| virtual void | SetBeta (CosanMatrix< NumericType > InitBeta) |
| const CosanMatrix< NumericType > & | GetBeta () const |
| bool | GetBias () const |
| virtual CosanMatrix< NumericType > | predict (const CosanMatrix< NumericType > &X)=0 |
| virtual const std::string | GetName () const |
| Get the name of the objects. More... | |
Public Member Functions inherited from Cosan::CosanModel | |
| CosanModel () | |
| virtual void | SetMaxTrainTime (double t) |
| virtual double | GetMaxTrainTime () const |
| virtual EModelType | GetModelType () |
| virtual EProblemType | GetProblemType () |
| virtual ESolverType | GetSolverType () const |
| void | SetSolverType (ESolverType sr) |
Public Member Functions inherited from Cosan::CosanBO | |
| CosanBO () | |
| Default constructor. More... | |
Protected Attributes | |
| CosanMatrix< NumericType > | MBeta |
| bool | MBias |
Protected Attributes inherited from Cosan::CosanModel | |
| double | MaxTrainTime |
| ESolverType | SolverType |
Private Member Functions | |
| void | Init () |
CosanLinear Model. All linear model inherit this object.
To initialize model object, one can do
To initialize model object and run model fitting automatically, one can do
For model with more than 1 parameter, one should replace NumericType param by std::vector<NumericType> params.
To set new params and get current params, one can do
To obtain the coefficient for the model one can use
Definition at line 32 of file CosanLinearModel.h.
|
delete |
|
inline |
Definition at line 36 of file CosanLinearModel.h.
|
inline |
Definition at line 44 of file CosanLinearModel.h.
|
inline |
Definition at line 45 of file CosanLinearModel.h.
|
inlinevirtual |
Get the name of the objects.
Description: Get the name of the object. It should return "Abstract Object"
Reimplemented from Cosan::CosanBO.
Reimplemented in Cosan::CosanRidgeRegression< NumericType >, Cosan::CosanPrincipalComponentRegression< NumericType >, Cosan::CosanPCRRidge< NumericType >, and Cosan::CosanLinearRegression< NumericType >.
Definition at line 54 of file CosanLinearModel.h.
|
inlineprivate |
Definition at line 59 of file CosanLinearModel.h.
|
pure virtual |
|
inlinevirtual |
Definition at line 42 of file CosanLinearModel.h.
|
inline |
Definition at line 41 of file CosanLinearModel.h.
|
protected |
Definition at line 56 of file CosanLinearModel.h.
|
protected |
Definition at line 57 of file CosanLinearModel.h.