shark::HMGSelectionCriterion Class Reference

#include <shark/Algorithms/QP/SvmProblems.h>

Public Member Functions

 HMGSelectionCriterion ()
 
template<class Problem >
double operator() (Problem &problem, std::size_t &i, std::size_t &j)
 Select a working set according to the hybrid maximum gain (HMG) algorithm. More...
 
void reset ()
 

Detailed Description

Definition at line 158 of file SvmProblems.h.

Constructor & Destructor Documentation

◆ HMGSelectionCriterion()

shark::HMGSelectionCriterion::HMGSelectionCriterion ( )
inline

Definition at line 160 of file SvmProblems.h.

Member Function Documentation

◆ operator()()

template<class Problem >
double shark::HMGSelectionCriterion::operator() ( Problem &  problem,
std::size_t &  i,
std::size_t &  j 
)
inline

Select a working set according to the hybrid maximum gain (HMG) algorithm.

Returns
maximal KKT vioation
Parameters
problemthe svm problem to select the working set for
ifirst working set component
jsecond working set component

Definition at line 169 of file SvmProblems.h.

References shark::sqr(), and shark::swap().

◆ reset()

void shark::HMGSelectionCriterion::reset ( )
inline

Definition at line 202 of file SvmProblems.h.


The documentation for this class was generated from the following file: