11 #ifndef __SOSVM_HELPER_H__
12 #define __SOSVM_HELPER_H__
47 virtual const char*
get_name()
const {
return "SOSVMHelper"; }
virtual const char * get_name() const
static float64_t primal_objective(SGVector< float64_t > w, CStructuredModel *model, float64_t lbda)
SGVector< float64_t > get_dual_values() const
Class SGObject is the base class of all shogun objects.
static float64_t dual_objective(SGVector< float64_t > w, float64_t aloss, float64_t lbda)
class CSOSVMHelper contains helper functions to compute primal objectives, dual objectives, average training losses, duality gaps etc. These values will be recorded to check convergence. This class is inspired by the matlab implementation of the block coordinate Frank-Wolfe SOSVM solver [1].
static float64_t average_loss(SGVector< float64_t > w, CStructuredModel *model, bool is_ub=false)
Class CStructuredModel that represents the application specific model and contains most of the applic...
all of classes and functions are contained in the shogun namespace
virtual void add_debug_info(float64_t primal, float64_t eff_pass, float64_t train_error, float64_t dual=-1, float64_t dgap=-1)
SGVector< float64_t > get_duality_gaps() const
SGVector< float64_t > get_primal_values() const
SGVector< float64_t > get_train_errors() const
SGVector< float64_t > get_eff_passes() const