![]() |
SG++-Doxygen-Documentation
|
The LassoFunction class. More...
#include <LassoFunction.hpp>
Public Member Functions | |
| double | eval (base::DataVector weights) override |
| eval evaluates the regularization function for weights. More... | |
| LassoFunction (double lambda) | |
| LassoFunction. More... | |
| base::DataVector | prox (const base::DataVector &weights, double stepsize) override |
| prox evaluates the proximal operator for the function for weights. More... | |
The LassoFunction class.
This class models the standard lasso regularization penalty \( \Vert \boldsymbol{\alpha} \Vert_1 \).
|
inlineexplicit |
| lambda | controls the regularization strength. |
|
inlineoverridevirtual |
eval evaluates the regularization function for weights.
| weights |
Implements sgpp::solver::RegularizationFunction.
References sgpp::base::DataVector::abs(), and sgpp::base::DataVector::sum().
|
inlineoverridevirtual |
prox evaluates the proximal operator for the function for weights.
| weights | |
| stepsize | is the stepsize used for the proximal step |
Implements sgpp::solver::RegularizationFunction.
References sgpp::base::DataVector::getSize(), and python.statsfileInfo::i.
Referenced by sgpp::solver::ElasticNetFunction::prox().