class QCTrainer

Train a QCMachine.

Inheritance:


Public Methods

[more] QCTrainer(QCMachine* qcmachine_, DataSet* data_, QCCache* cache_)
[more]void train(List* measurers)
Train it.


Inherited from Trainer:

Public Methods

ovirtual void test(List* measurers)
ovirtual void testExample(List* measurers, int t)
ovirtual void crossValidate(int k_fold, List* train_measurers, List* test_measurers, List* cross_valid_measurers=NULL)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Train a QCMachine. With the conventions of QCMachine.h, Q is given by the class QCCache (in cache)

Options:
"unshrink" bool unshrink or not unshrink [false]
"max unshrink" int maximal number of unshrinking [1]
"iter shrink" int minimal number of iterations to shrink [100]
"eps shrink" real shrinking accuracy [1E-4 (f) 1E-9 (d)]
"end accuracy" real end accuracy [0.01]
"iter message" int number of iterations between messages [1000]

Note: "iter shrink" must be carefully chosen. Read http://www.ai.mit.edu/projects/jmlr/papers/volume1/collobert01a/collobert01a.ps.gz for more details.

o QCTrainer(QCMachine* qcmachine_, DataSet* data_, QCCache* cache_)

ovoid train(List* measurers)
Train it. Before calling this function, grad in qcmachine must contain the gradient of QP(alpha) with respect to alpha = 0.

( = , with the conventions of QCMachine.h)

Moreover alpha in qcmachine has to be zero.


This class has no child classes.
Author:
Ronan Collobert (collober@iro.umontreal.ca)
See Also:
QCCache
QCMachine

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.