This class can be used to save the outputs of a Trainer in a file in such a format that it can be read again in Torch using the FileDataSet class.
Inheritance:
Public Fields
-
List* inputs
- the pointer the obtained outputs
-
bool print_inputs
- a boolean stating whether we also print the corresponding inputs
-
bool print_targets
- a boolean stating whether we also print the corresponding targets
Public Methods
-
OutputMeasurer(List* inputs_, DataSet* data_, FILE* file_, bool print_inputs_=false, bool print_targets=true)
-
OutputMeasurer(List* inputs_, DataSet* data_, const char* filename, bool print_inputs_=false, bool print_targets=true)
Public Fields
-
void* measure
-
FILE* file
-
DataSet* data
Public Methods
-
virtual void measureEx()
-
virtual void measureIter()
-
virtual void measureEnd()
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)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
This class can be used to save the outputs of a Trainer
in a file in such a format that it can be read again in Torch using the
FileDataSet class. Optionally, it also prints the corresponding inputs
and/or the corresponding targets.
List* inputs
- the pointer the obtained outputs
bool print_inputs
- a boolean stating whether we also print the corresponding inputs
bool print_targets
- a boolean stating whether we also print the corresponding targets
OutputMeasurer(List* inputs_, DataSet* data_, FILE* file_, bool print_inputs_=false, bool print_targets=true)
OutputMeasurer(List* inputs_, DataSet* data_, const char* filename, bool print_inputs_=false, bool print_targets=true)
- This class has no child classes.
- Author:
- Samy Bengio (bengio@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.