99 #ifndef TWOCLASSSVM_HH 100 #define TWOCLASSSVM_HH 132 template<
typename KF>
138 template<
typename FV>
202 template<
typename FV,
typename ForwardIter>
204 const ForwardIter& SVP_begin,
205 const ForwardIter& SVP_end,
206 std::vector<double>& kernelResultByUID)
const;
227 template<
typename FV>
229 const std::vector<double>& kernelResultByUID)
const;
251 template<
typename FV,
typename ForwardIter,
typename FVGradient>
253 const FV& testObject,
254 const ForwardIter& SVP_begin,
255 const ForwardIter& SVP_end,
256 std::vector<FVGradient>& gradientOfKernelResultByUID)
const;
280 template<
typename FV,
typename FVGradient>
283 const std::vector<FVGradient>& gradientOfKernelResultByUID,
284 FVGradient& gradient)
const;
288 #include "TwoClassSVM.icc"
void calcGradientCache(const FV &testObject, const ForwardIter &SVP_begin, const ForwardIter &SVP_end, std::vector< FVGradient > &gradientOfKernelResultByUID) const
compute the gradient of the kernel Result for given testObject and support vectors.
void calcClassificationCache(const FV &testObject, const ForwardIter &SVP_begin, const ForwardIter &SVP_end, std::vector< double > &kernelResultByUID) const
caculcate the Classification Cache kernelResultByUID, which contains kernel evaluations for classific...
double classifyWithCache(const Model< FV > &model, const std::vector< double > &kernelResultByUID) const
classify testObject (that was passed to calcClassificationCache() before) using the given model...
The SVMBase class is the the base class for all SVM's.
TwoClassSVM(const KF &kernel)
(description)
svt::Model< FV > ModelType
The TwoClassSVM class is the basic class for TwoClassSVMc and TwoClassSVMnu and maybe some more later...
void gradientOfDecisionFunction(const Model< FV > &model, const std::vector< FVGradient > &gradientOfKernelResultByUID, FVGradient &gradient) const
compute the gradient of the decision function at testObject's position in the feature space for the g...
~TwoClassSVM()
(description)
KF & kernel()
access the kernel function