class MemoryDataSet

DataSet where data is fully loaded in memory.

Inheritance:


Public Fields

[more]Sequence** inputs_array
Inputs array
[more]Sequence** targets_array
Targets array

Public Methods

[more] MemoryDataSet()
[more]void init(IOSequence* io_inputs, IOSequence* io_outputs)
May help you to initialize the DataSet if you're using IOSequence.
[more]void setInputs(Sequence** inputs_, int n_sequences_)
Override current inputs array
[more]void setTargets(Sequence** targets_, int n_sequences_)
Override current targets array


Inherited from DataSet:

Public Fields

oint* selected_examples
oint n_inputs
oint n_targets
oint real_current_example_index
oSequence* inputs
oSequence* targets
oint n_examples
oint n_real_examples

Public Methods

ovoid setExample(int t, bool set_inputs=true, bool set_targets=true)
ovirtual void setRealExample(int t, bool set_inputs=true, bool set_targets=true)
ovirtual void pushSubset(int* subset_, int n_examples_)
ovirtual void popSubset()
ovirtual void pushExample()
ovirtual void popExample()
ovirtual void getNumberOfFrames(int t, int* n_input_frames, int* n_target_frames)
ovirtual void preProcess(PreProcessing* pre_processing)


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)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
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

DataSet where data is fully loaded in memory.

Inputs and targets are put in two arrays: inputs_array and targets_array. You can fill these fields by using the init() method (if you are using IOSequence). But you could imagine a MemoryDataSet where you fill these fields by hand (based on the init() method). MatDataSet is a good example if you plan to do a new MemoryDataSet.

oSequence** inputs_array
Inputs array

oSequence** targets_array
Targets array

o MemoryDataSet()

ovoid init(IOSequence* io_inputs, IOSequence* io_outputs)
May help you to initialize the DataSet if you're using IOSequence. You should call this method in the constructor of your subsclasses. Initialize n_examples, n_real_examples, n_inputs and n_targets. inputs_array and targets_array filled with sequences given by the IOSequence classes.

ovoid setInputs(Sequence** inputs_, int n_sequences_)
Override current inputs array

ovoid setTargets(Sequence** targets_, int n_sequences_)
Override current targets array


Direct child classes:
MatDataSet
HTKDataSet
Author:
Ronan Collobert (collober@idiap.ch)
See Also:
MatDataSet

Alphabetic index HTML hierarchy of classes or Java



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