![]() |
SG++-Doxygen-Documentation
|
The RidgeFunction class. More...
#include <RidgeFunction.hpp>
Public Member Functions | |
| 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... | |
| RidgeFunction (double lambda) | |
| RidgeFunction. More... | |
The RidgeFunction class.
Corresponds to the regularization function \( \Vert \boldsymbol{\alpha} \Vert_2^2\).
|
inlineexplicit |
| lambda | controls the regularization strength. |
|
inlineoverridevirtual |
eval evaluates the regularization function for weights.
| weights |
Implements sgpp::solver::RegularizationFunction.
References sgpp::base::DataVector::dotProduct().
|
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.