44 REQUIRE(fun,
"The cost function must be not NULL\n");
65 REQUIRE(penalty_weight>0,
"The weight of penalty must be positive\n");
95 void FirstOrderMinimizer::init()
virtual float64_t get_penalty_gradient(float64_t variable, float64_t gradient)=0
float64_t m_penalty_weight
virtual void set_penalty_type(Penalty *penalty_type)
FirstOrderCostFunction * m_fun
The base class for penalty/regularization used in minimization.
virtual void set_penalty_weight(float64_t penalty_weight)
virtual void update_gradient(SGVector< float64_t > gradient, SGVector< float64_t > var)
Class SGObject is the base class of all shogun objects.
virtual float64_t get_penalty(float64_t variable)=0
virtual float64_t get_penalty(SGVector< float64_t > var)
The first order cost function base class.
all of classes and functions are contained in the shogun namespace
virtual ~FirstOrderMinimizer()
virtual void set_cost_function(FirstOrderCostFunction *fun)