00001
00006 #ifndef VL_PEGASOS_H
00007 #define VL_PEGASOS_H
00008
00009 #include "generic.h"
00010
00011 VL_EXPORT
00012 void vl_pegasos_train_binary_svm_d (double * model,
00013 double const * data,
00014 vl_size dimension,
00015 vl_size numSamples,
00016 vl_int8 const * labels,
00017 double regularizer,
00018 double biasMultiplier,
00019 vl_uindex startingIteration,
00020 vl_size numIterations,
00021 VlRand* randomGenerator) ;
00022
00023 VL_EXPORT
00024 void vl_pegasos_train_binary_svm_f (float * model,
00025 float const * data,
00026 vl_size dimension,
00027 vl_size numSamples,
00028 vl_int8 const * labels,
00029 double regularizer,
00030 double biasMultiplier,
00031 vl_uindex startingIteration,
00032 vl_size numIterations,
00033 VlRand* randomGenerator) ;
00034
00035
00036 #endif