37 REQUIRE(ratio>0.0 && ratio<1.0,
"ratio (%f) must be in (0.0,1.0)", ratio);
82 void ElasticNetPenalty::init()
The is the base class for L1 penalty/regularization within the FirstOrderMinimizer framework...
virtual float64_t get_penalty(float64_t variable)
virtual float64_t get_penalty(float64_t variable)
virtual float64_t get_penalty_gradient(float64_t variable, float64_t gradient_of_variable)
virtual float64_t get_sparse_variable(float64_t variable, float64_t penalty_weight)
virtual float64_t get_penalty_gradient(float64_t variable, float64_t gradient_of_variable)
virtual ~ElasticNetPenalty()
Class SGObject is the base class of all shogun objects.
virtual float64_t get_penalty_gradient(float64_t variable, float64_t gradient_of_variable)
The class implements L2 penalty/regularization within the FirstOrderMinimizer framework.
virtual void check_ratio()
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)
virtual void set_l1_ratio(float64_t ratio)
all of classes and functions are contained in the shogun namespace
virtual void update_variable_for_proximity(SGVector< float64_t > variable, float64_t proximal_weight)
virtual float64_t get_penalty(float64_t variable)