1 #ifndef _theplu_yat_classifier_svm_
2 #define _theplu_yat_classifier_svm_
30 #include "yat/utility/Vector.h"
41 namespace classifier {
44 class DataLookupWeighted1D;
160 void set_C(
const double);
208 void bounds(
double&,
double&)
const;
215 void calculate_bias(
void);
220 void calculate_margin(
void);
237 double kernel_mod(
const size_t i,
const size_t j)
const;
242 int target(
size_t i)
const;
250 unsigned long int max_epochs_;
unsigned long int max_epochs(void) const
Class for containing sample labels.
Definition: Target.h:47
virtual ~SVM()
Destructor.
const theplu::yat::utility::Vector & output(void) const
void set_C(const double)
sets the C-Parameter
void train(const KernelLookup &kernel, const Target &target)
This is the yat interface to GSL vector.
Definition: Vector.h:57
void predict(const KernelLookup &input, utility::Matrix &predict) const
void reset(void)
make SVM untrained
Lookup into Kernel.
Definition: KernelLookup.h:67
SVM * make_classifier(void) const
Create an untrained copy of SVM.
const utility::Vector & alpha(void) const
Support Vector Machine.
Definition: SVM.h:50
Interface to GSL matrix.
Definition: Matrix.h:63