92 #ifndef TWOCLASSSVMNU_HH 93 #define TWOCLASSSVMNU_HH 125 template<
typename KF>
168 template<
typename FV>
191 template<
typename ForwardIter>
192 void train( ForwardIter FV_begin,
const ForwardIter& FV_end,
193 svt::Model<
typename std::iterator_traits<ForwardIter>::value_type>& model)
const 221 template<
typename ForwardIter,
typename Accessor>
222 void train( ForwardIter FV_begin,
const ForwardIter& FV_end,
224 Accessor accessor)
const;
251 template<
typename STDATA>
257 stData.getValue(
"nu", _nu);
260 template<
typename STDATA>
266 stData.setValue(
"two_class_type",
name());
267 stData.setValue(
"nu", _nu);
277 return "Two class SVM using nu-SVC algorithm for training";
294 "parameter nu in nu-SVC. (default 0.5)"));
299 template<
typename FV>
313 #include "TwoClassSVMnu.icc"
static void getParamInfos(std::vector< ParamInfo > &p)
get information about the parameters, that are used in loadParameters() and saveParameters().
#define CHECK_MEMBER_TEMPLATE(c)
~TwoClassSVMnu()
(description)
void solve_nu_svc(const SVM_Problem< FV > *prob, double *alpha, SolutionInfo *si, Model< FV > &model) const
static const char * name()
static void getParamInfos(std::vector< ParamInfo > &p)
get information about the parameters, that are used in loadParameters() and saveParameters().
void loadParameters(STDATA &stData)
Load parameters from structured data object.
static const char * description()
void train(const SVM_Problem< FV > &problem, Model< FV > &model) const
train SVM with given Feature Vectors.
TwoClassSVMnu()
(description)
void saveParameters(STDATA &stData) const
save parameters to structured data object
void setNu(double nu)
set the parameter nu of nu-SVC.
The TwoClassSVM class is the basic class for TwoClassSVMc and TwoClassSVMnu and maybe some more later...
void saveParameters(STDATA &stData) const
void train(ForwardIter FV_begin, const ForwardIter &FV_end, svt::Model< typename std::iterator_traits< ForwardIter >::value_type > &model) const
train (STL-like interface) Your feature vector class must provide a method double getLabel()...
void loadParameters(STDATA &stData)
Load and save parameter nu from map.
The TwoClassSVMnu class (is/provides/specifies/contains)
The ParamInfo class contains informations about one parameter like key, help text, guiHints etc.
KF & kernel()
access the kernel function