class OutputMeasurer

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

[more]List* inputs
the pointer the obtained outputs
[more]bool print_inputs
a boolean stating whether we also print the corresponding inputs
[more]bool print_targets
a boolean stating whether we also print the corresponding targets

Public Methods

[more] OutputMeasurer(List* inputs_, DataSet* data_, FILE* file_, bool print_inputs_=false, bool print_targets=true)
[more] OutputMeasurer(List* inputs_, DataSet* data_, const char* filename, bool print_inputs_=false, bool print_targets=true)


Inherited from Measurer:

Public Fields

ovoid* measure
oFILE* file
oDataSet* data

Public Methods

ovirtual void measureEx()
ovirtual void measureIter()
ovirtual void measureEnd()


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)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid 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.

oList* inputs
the pointer the obtained outputs

obool print_inputs
a boolean stating whether we also print the corresponding inputs

obool print_targets
a boolean stating whether we also print the corresponding targets

o OutputMeasurer(List* inputs_, DataSet* data_, FILE* file_, bool print_inputs_=false, bool print_targets=true)

o 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++.