100 template<
typename KF>
109 template<
typename FV>
186 template<
typename ForwardIter,
typename Accessor>
188 const ForwardIter& fvEnd,
189 Accessor accessor)
const 191 p_kernel.updateCache( fvBegin, fvEnd, accessor,
_pr);
224 template<
typename FV>
289 template<
typename STDATA>
305 template<
typename STDATA>
330 "tolerance of termination criterion " 334 "cache memory size in MB (default 40)"));
335 p.push_back(
ParamInfo(
"shrinking",
"sh"));
336 p.back().addAlternative(
"0",
"don't use the shrinking heuristics");
337 p.back().addAlternative(
"1",
"use the shrinking heuristics " 376 #include "SVMBase.icc"
const KF & kernel() const
static void getParamInfos(std::vector< ParamInfo > &p)
get information about the parameters, that are used in loadParameters() and saveParameters().
#define CHECK_MEMBER_TEMPLATE(c)
double terminationEpsilon() const
void clearKernelCache() const
call the clearCache() method of selected Kernel
SVMBase(const KF &kernel)
Constructor with Kernel function.
#define CHECK_CLASS_TEMPLATE1(c)
static const bool SHRINKING_FLAG_DEFAULT
void setProgressReporter(ProgressReporter *pr)
set a progress reporter object.
void setCacheSizeMB(float s)
set cache memory size in MB (default: 40)
Ensure that TESTCLASS provides a loadParameters() and saveParamters() method.
void loadParameters(STDATA &stData)
Load parameters from structured data object.
bool shrinkingFlag() const
The SVMBase class is the the base class for all SVM's.
float cacheSizeMB() const
double classify(const FV &testObject, const Model< FV > &model) const
standard classification without caching the kernel evaluations.
void setTerminationEpsilon(double e)
set tolerance of termination criterion (default: 0.001)
void saveParameters(STDATA &stData) const
save parameters to structured data object
void setShrinkingFlag(bool f)
whether to use the shrinking heuristics (default: true)
static const float CACHE_SIZE_MB_DEFAULT
static const double TERMINATION_EPSILON_DEFAULT
svt::Model< FV > ModelType
SVMBase()
Default Constructor.
The ParamInfo class contains informations about one parameter like key, help text, guiHints etc.
double _terminationEpsilon
KF & kernel()
access the kernel function
void updateKernelCache(const ForwardIter &fvBegin, const ForwardIter &fvEnd, Accessor accessor) const
call the updateCache() method of selected Kernel