43 REQUIRE(epsilon>=0,
"Rounding epsilon (%f) should be non-negative\n", epsilon);
58 variable-=penalty_weight;
64 variable+=penalty_weight;
73 void L1Penalty::init()
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 void set_rounding_epsilon(float64_t epsilon)
virtual float64_t get_penalty(float64_t variable)