class QCTrainer

Train a QCMachine.

Inheritance:


Public Methods

[more] QCTrainer(QCMachine* qcmachine_)
[more]void train(DataSet* data, MeasurerList* measurers)
Train it.


Inherited from Trainer:

Public Methods

ovirtual void test(MeasurerList* measurers)
ostatic Allocator* extractMeasurers(MeasurerList* measurers, DataSet* train, DataSet*** datas, Measurer**** meas, int** n_meas, int* n_datas)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
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 setOOption(const char* name, Object* option)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


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_)

ovoid train(DataSet* data, MeasurerList* 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@idiap.ch)
See Also:
QCCache
QCMachine

Alphabetic index HTML hierarchy of classes or Java



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