yat  0.8.3pre
Public Member Functions
theplu::yat::classifier::SvmMultiClass Class Reference

Support Vector Machine for more than two classes. More...

#include <yat/classifier/SvmMultiClass.h>

List of all members.

Public Member Functions

 SvmMultiClass (void)
 Constructor.
double C (void) const
 C-parameter.
SvmMultiClassmake_classifier (void) const
 Create an untrained copy of SvmMultiClass.
unsigned long int max_epochs (void) const
void max_epochs (unsigned long int)
 set maximal number of epochs in training
void predict (const KernelLookup &input, utility::Matrix &predict) const
 Generate prediction predict from input.
void set_C (double)
 set the C-Parameter
void train (const KernelLookup &kernel, const Target &target)
 Fit paramaters based on training data.

Detailed Description

Support Vector Machine for more than two classes.

Since:
New in yat 0.6

Member Function Documentation

C-parameter.

See also:
SVM::C(void)

Create an untrained copy of SvmMultiClass.

Returns:
A dynamically allocated SVM, which has to be deleted by the caller to avoid memory leaks.
unsigned long int theplu::yat::classifier::SvmMultiClass::max_epochs ( void  ) const

Default is max_epochs set to 100,000.

Returns:
number of maximal epochs
void theplu::yat::classifier::SvmMultiClass::predict ( const KernelLookup input,
utility::Matrix predict 
) const

Generate prediction predict from input.

Each row in predict is calculated using a binary SVM.

Parameters:
inputkernel to base prediction on. Just like in SVM each column corresponds to a sample to predict, and each row corresponds to a training sample.
predictresulting predictions. Each column corresponds to a test sample (same as corresponding column in input). Row i corresponds to class i, in other words, a large value in row i suggests that test sample belongs to class i. If there were no training samples in class i, row i is filled with NaNs.
void theplu::yat::classifier::SvmMultiClass::train ( const KernelLookup kernel,
const Target target 
)

Fit paramaters based on training data.

For each class samples belonging to that class are trained against the other samples using a binary SVM.

Parameters:
kernelcontains the training data
targetinfomration on class labels

The documentation for this class was generated from the following file:

Generated on Thu Dec 20 2012 03:12:58 for yat by  doxygen 1.8.0-20120409