SG++-Doxygen-Documentation
sgpp::solver::RidgeFunction Class Reference

The RidgeFunction class. More...

#include <RidgeFunction.hpp>

Inheritance diagram for sgpp::solver::RidgeFunction:
sgpp::solver::RegularizationFunction

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...
 

Detailed Description

The RidgeFunction class.

Corresponds to the regularization function \( \Vert \boldsymbol{\alpha} \Vert_2^2\).

Constructor & Destructor Documentation

◆ RidgeFunction()

sgpp::solver::RidgeFunction::RidgeFunction ( double  lambda)
inlineexplicit

RidgeFunction.

Parameters
lambdacontrols the regularization strength.

Member Function Documentation

◆ eval()

double sgpp::solver::RidgeFunction::eval ( sgpp::base::DataVector  weights)
inlineoverridevirtual

eval evaluates the regularization function for weights.

Parameters
weights

Implements sgpp::solver::RegularizationFunction.

References sgpp::base::DataVector::dotProduct().

◆ prox()

base::DataVector sgpp::solver::RidgeFunction::prox ( const sgpp::base::DataVector weights,
double  stepsize 
)
inlineoverridevirtual

prox evaluates the proximal operator for the function for weights.

Parameters
weights
stepsizeis the stepsize used for the proximal step

Implements sgpp::solver::RegularizationFunction.

References sgpp::base::DataVector::getSize(), and python.statsfileInfo::i.


The documentation for this class was generated from the following file: