#include <LassoModel.h>
Public Member Functions | |
LassoModel (double lambda=1., int max_iter=100000, double TOL=1e-3, bool non_negtive=true) | |
~LassoModel () | |
void | Fit () |
void | Set_init_values (std::vector< double > values) |
double | chi2_l1 () |
Public Member Functions inherited from WireCell::ElasticNetModel | |
ElasticNetModel (double lambda=1., double alpha=1., int max_iter=100000, double TOL=1e-3, bool non_negtive=true) | |
~ElasticNetModel () | |
void | SetLambdaWeight (Eigen::VectorXd w) |
void | SetLambdaWeight (int i, double weight) |
void | SetX (Eigen::MatrixXd X) |
Public Member Functions inherited from WireCell::LinearModel | |
LinearModel () | |
virtual | ~LinearModel () |
Eigen::VectorXd & | Gety () |
Eigen::MatrixXd & | GetX () |
Eigen::VectorXd & | Getbeta () |
virtual void | SetData (Eigen::MatrixXd X, Eigen::VectorXd y) |
virtual void | Sety (Eigen::VectorXd y) |
virtual void | Setbeta (Eigen::VectorXd beta) |
Eigen::VectorXd | Predict () |
double | chi2_base () |
double | MeanResidual () |
Additional Inherited Members | |
Public Attributes inherited from WireCell::ElasticNetModel | |
double | lambda |
double | alpha |
int | max_iter |
double | TOL |
bool | non_negtive |
Eigen::VectorXd | lambda_weight |
Public Attributes inherited from WireCell::LinearModel | |
std::string | name |
Protected Member Functions inherited from WireCell::ElasticNetModel | |
double | _soft_thresholding (double x, double lambda_) |
Protected Attributes inherited from WireCell::ElasticNetModel | |
std::vector< bool > | _active_beta |
Protected Attributes inherited from WireCell::LinearModel | |
Eigen::VectorXd | _y |
Eigen::MatrixXd | _X |
Eigen::VectorXd | _beta |
Definition at line 8 of file LassoModel.h.
WireCell::LassoModel::LassoModel | ( | double | lambda = 1. , |
int | max_iter = 100000 , |
||
double | TOL = 1e-3 , |
||
bool | non_negtive = true |
||
) |
Definition at line 14 of file LassoModel.cxx.
WireCell::LassoModel::~LassoModel | ( | ) |
Definition at line 20 of file LassoModel.cxx.
double WireCell::LassoModel::chi2_l1 | ( | ) |
Definition at line 125 of file LassoModel.cxx.
|
virtual |
Reimplemented from WireCell::ElasticNetModel.
Definition at line 32 of file LassoModel.cxx.
void WireCell::LassoModel::Set_init_values | ( | std::vector< double > | values | ) |
Definition at line 23 of file LassoModel.cxx.