Trainer for GradientMachine.
Inheritance:
Public Methods
-
GMTrainer(GradientMachine* machine_, DataSet* data_, Criterion* criterion_, Optimizer* optimizer_)
- Take the machine_ to train, the train data_, the criterion_ to use, and the optimizer_ to use
Inherited from Trainer:
Public Methods
-
virtual void train(List* measurers)
-
virtual void test(List* measurers)
-
virtual void testExample(List* measurers, int t)
-
virtual void crossValidate(int k_fold, List* train_measurers, List* test_measurers, List* cross_valid_measurers=NULL)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Trainer for GradientMachine.
GMTrainer(GradientMachine* machine_, DataSet* data_, Criterion* criterion_, Optimizer* optimizer_)
- Take the machine_ to train, the train data_, the criterion_
to use, and the optimizer_ to use
- This class has no child classes.
- Author:
- Ronan Collobert (collober@iro.umontreal.ca)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.