SG++-Doxygen-Documentation
|
The ElasticNetFunction class. More...
#include <ElasticNetFunction.hpp>
Public Member Functions | |
ElasticNetFunction (double lambda, double l1Ratio) | |
ElasticNetFunction. More... | |
double | eval (sgpp::base::DataVector weights) override |
eval evaluates the regularization function for weights. More... | |
base::DataVector | prox (const sgpp::base::DataVector &weights, double stepsize) override |
prox evaluates the proximal operator for the function for weights. More... | |
The ElasticNetFunction class.
Corresponds to the regularization functional \( \left(1 - \gamma \right) \Vert \boldsymbol{\alpha} \Vert_2 + \gamma \Vert \boldsymbol{\alpha} \Vert _1 \).
|
inline |
lambda | controls the regularization strength. |
l1Ratio | (called \( \gamma \) above) controls the amount of \( l_1 \) regularization. A value of one corresponds to the lasso, and a value of zero to the ridge regularization. |
|
inlineoverridevirtual |
eval evaluates the regularization function for weights.
weights |
Implements sgpp::solver::RegularizationFunction.
References sgpp::base::DataVector::getSize(), and python.statsfileInfo::i.
|
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::mult(), and sgpp::solver::LassoFunction::prox().