Super class of all support vector machine trainers. More...
#include <shark/Algorithms/Trainers/AbstractSvmTrainer.h>
Public Member Functions | |
QpConfig (bool precomputedFlag=false, bool sparsifyFlag=true) | |
Constructor. | |
QpStoppingCondition & | stoppingCondition () |
Read/write access to the stopping condition. | |
QpStoppingCondition const & | stoppingCondition () const |
Read access to the stopping condition. | |
QpSolutionProperties & | solutionProperties () |
Access to the solution properties. | |
bool & | precomputeKernel () |
Flag for using a precomputed kernel matrix. | |
bool const & | precomputeKernel () const |
Flag for using a precomputed kernel matrix. | |
bool & | sparsify () |
Flag for sparsifying the model after training. | |
bool const & | sparsify () const |
Flag for sparsifying the model after training. | |
bool & | shrinking () |
Flag for shrinking in the decomposition solver. | |
bool const & | shrinking () const |
Flag for shrinking in the decomposition solver. | |
bool & | s2do () |
Flag for S2DO (instead of SMO) | |
bool const & | s2do () const |
Flag for S2DO (instead of SMO) | |
unsigned int & | verbosity () |
Verbosity level of the solver. | |
unsigned int const & | verbosity () const |
Verbosity level of the solver. | |
unsigned long long const & | accessCount () const |
Number of kernel accesses. | |
void | setMinAccuracy (double a) |
void | setMaxIterations (unsigned long long i) |
void | setTargetValue (double v) |
void | setMaxSeconds (double s) |
Protected Attributes | |
QpStoppingCondition | m_stoppingcondition |
conditions for when to stop the QP solver | |
QpSolutionProperties | m_solutionproperties |
properties of the approximate solution found by the solver | |
bool | m_precomputedKernelMatrix |
should the solver use a precomputed kernel matrix? | |
bool | m_sparsify |
should the trainer sparsify the model after training? | |
bool | m_shrinking |
should shrinking be used? | |
bool | m_s2do |
should S2DO be used instead of SMO? | |
unsigned int | m_verbosity |
verbosity level (currently unused) | |
unsigned long long | m_accessCount |
kernel access count | |
Super class of all support vector machine trainers.
Definition at line 71 of file AbstractSvmTrainer.h.
|
inline |
Constructor.
Definition at line 75 of file AbstractSvmTrainer.h.
|
inline |
Number of kernel accesses.
Definition at line 137 of file AbstractSvmTrainer.h.
References m_accessCount.
|
inline |
Flag for using a precomputed kernel matrix.
Definition at line 97 of file AbstractSvmTrainer.h.
References m_precomputedKernelMatrix.
Referenced by shark::SquaredHingeCSvmTrainer< InputType, CacheType >::train(), shark::RankingSvmTrainer< InputType, CacheType >::train(), shark::EpsilonSvmTrainer< InputType, CacheType >::train(), and shark::OneClassSvmTrainer< InputType, CacheType >::train().
|
inline |
Flag for using a precomputed kernel matrix.
Definition at line 101 of file AbstractSvmTrainer.h.
References m_precomputedKernelMatrix.
|
inline |
Flag for S2DO (instead of SMO)
Definition at line 121 of file AbstractSvmTrainer.h.
References m_s2do.
|
inline |
Flag for S2DO (instead of SMO)
Definition at line 125 of file AbstractSvmTrainer.h.
References m_s2do.
|
inline |
Definition at line 143 of file AbstractSvmTrainer.h.
References m_stoppingcondition, and shark::QpStoppingCondition::maxIterations.
|
inline |
Definition at line 147 of file AbstractSvmTrainer.h.
References m_stoppingcondition, and shark::QpStoppingCondition::maxSeconds.
|
inline |
Definition at line 141 of file AbstractSvmTrainer.h.
References m_stoppingcondition, and shark::QpStoppingCondition::minAccuracy.
|
inline |
Definition at line 145 of file AbstractSvmTrainer.h.
References m_stoppingcondition, and shark::QpStoppingCondition::targetValue.
|
inline |
Flag for shrinking in the decomposition solver.
Definition at line 113 of file AbstractSvmTrainer.h.
References m_shrinking.
|
inline |
Flag for shrinking in the decomposition solver.
Definition at line 117 of file AbstractSvmTrainer.h.
References m_shrinking.
|
inline |
Access to the solution properties.
Definition at line 93 of file AbstractSvmTrainer.h.
References m_solutionproperties.
Referenced by main(), main(), shark::SquaredHingeLinearCSvmTrainer< InputType >::train(), and shark::OneClassSvmTrainer< InputType, CacheType >::trainSVM().
|
inline |
Flag for sparsifying the model after training.
Definition at line 105 of file AbstractSvmTrainer.h.
References m_sparsify.
Referenced by shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), main(), shark::CSvmTrainer< InputType, CacheType >::train(), shark::SquaredHingeCSvmTrainer< InputType, CacheType >::train(), shark::CSvmTrainer< InputType, CacheType >::train(), shark::EpsilonSvmTrainer< InputType, CacheType >::train(), and shark::OneClassSvmTrainer< InputType, CacheType >::train().
|
inline |
Flag for sparsifying the model after training.
Definition at line 109 of file AbstractSvmTrainer.h.
References m_sparsify.
|
inline |
Read/write access to the stopping condition.
Definition at line 85 of file AbstractSvmTrainer.h.
References m_stoppingcondition.
Referenced by shark::SvmLogisticInterpretation< InputType >::eval(), shark::SvmLogisticInterpretation< InputType >::evalDerivative(), main(), shark::SquaredHingeLinearCSvmTrainer< InputType >::train(), and shark::OneClassSvmTrainer< InputType, CacheType >::trainSVM().
|
inline |
Read access to the stopping condition.
Definition at line 89 of file AbstractSvmTrainer.h.
References m_stoppingcondition.
|
inline |
Verbosity level of the solver.
Definition at line 129 of file AbstractSvmTrainer.h.
References m_verbosity.
Referenced by shark::SquaredHingeLinearCSvmTrainer< InputType >::train().
|
inline |
Verbosity level of the solver.
Definition at line 133 of file AbstractSvmTrainer.h.
References m_verbosity.
|
protected |
kernel access count
Definition at line 165 of file AbstractSvmTrainer.h.
Referenced by accessCount(), shark::SquaredHingeCSvmTrainer< InputType, CacheType >::train(), and shark::OneClassSvmTrainer< InputType, CacheType >::trainSVM().
|
protected |
should the solver use a precomputed kernel matrix?
Definition at line 155 of file AbstractSvmTrainer.h.
Referenced by precomputeKernel(), and precomputeKernel().
|
protected |
should S2DO be used instead of SMO?
Definition at line 161 of file AbstractSvmTrainer.h.
|
protected |
should shrinking be used?
Definition at line 159 of file AbstractSvmTrainer.h.
Referenced by shrinking(), shrinking(), and shark::OneClassSvmTrainer< InputType, CacheType >::trainSVM().
|
protected |
properties of the approximate solution found by the solver
Definition at line 153 of file AbstractSvmTrainer.h.
Referenced by solutionProperties().
|
protected |
should the trainer sparsify the model after training?
Definition at line 157 of file AbstractSvmTrainer.h.
Referenced by sparsify(), and sparsify().
|
protected |
conditions for when to stop the QP solver
Definition at line 151 of file AbstractSvmTrainer.h.
Referenced by setMaxIterations(), setMaxSeconds(), setMinAccuracy(), setTargetValue(), stoppingCondition(), and stoppingCondition().
|
protected |
verbosity level (currently unused)
Definition at line 163 of file AbstractSvmTrainer.h.
Referenced by verbosity(), and verbosity().