71 virtual const char*
get_name()
const {
return "L1Penalty"; }
84 float64_t gradient_of_variable) {
return 0.0;}
The is the base class for L1 penalty/regularization within the FirstOrderMinimizer framework...
The base class for sparse penalty/regularization used in minimization.
virtual float64_t get_penalty_gradient(float64_t variable, float64_t gradient_of_variable)
float64_t m_rounding_epsilon
virtual float64_t get_sparse_variable(float64_t variable, float64_t penalty_weight)
virtual void update_variable_for_proximity(SGVector< float64_t > variable, float64_t proximal_weight)
all of classes and functions are contained in the shogun namespace
virtual const char * get_name() const
virtual void set_rounding_epsilon(float64_t epsilon)
virtual float64_t get_penalty(float64_t variable)