53 void LBFGSMinimizer::init()
73 int orthantwise_start,
125 &cost, LBFGSMinimizer::evaluate,
126 NULL,
this, &lbfgs_param);
130 SG_SWARNING(
"Error(s) happened during L-BFGS optimization (error code:%d)\n",
144 REQUIRE(obj_prt,
"The instance object passed to L-BFGS optimizer should not be NULL\n");
149 "The length of gradient (%d) and the length of variable (%d) do not match\n",
virtual SGVector< float64_t > get_gradient()=0
int32_t lbfgs(int32_t n, float64_t *x, float64_t *ptr_fx, lbfgs_evaluate_t proc_evaluate, lbfgs_progress_t proc_progress, void *instance, lbfgs_parameter_t *_param, lbfgs_adjust_step_t proc_adjust_step)
virtual ~LBFGSMinimizer()
FirstOrderCostFunction * m_fun
virtual void init_minimization()
virtual float64_t minimize()
float64_t m_orthantwise_c
static const float64_t epsilon
virtual void set_lbfgs_parameters(int m=100, int max_linesearch=1000, ELBFGSLineSearch linesearch=BACKTRACKING_STRONG_WOLFE, int max_iterations=1000, float64_t delta=0.0, int past=0, float64_t epsilon=1e-5, float64_t min_step=1e-20, float64_t max_step=1e+20, float64_t ftol=1e-4, float64_t wolfe=0.9, float64_t gtol=0.9, float64_t xtol=1e-16, float64_t orthantwise_c=0.0, int orthantwise_start=0, int orthantwise_end=1)
SGVector< float64_t > m_target_variable
The first order cost function base class.
virtual float64_t get_cost()=0
all of classes and functions are contained in the shogun namespace
The class wraps the Shogun's C-style LBFGS minimizer.
virtual SGVector< float64_t > obtain_variable_reference()=0
The first order minimizer base class.