class DiskMatDataSet

Matrix DataSet On Disk.

Inheritance:


Public Methods

[more] DiskMatDataSet(const char* filename, int n_inputs_, int n_targets_, bool one_file_is_one_sequence=false, int max_load=-1, bool binary_mode=false)
Create a new dataset from the file filename.
[more] DiskMatDataSet(char** filenames, int n_files_, int n_inputs_, int n_targets_, bool one_file_is_one_sequence=false, int max_load=-1, bool binary_mode=false)
Same as the previous constructor, but for several files.
[more] DiskMatDataSet(char** input_filenames, char** target_filenames, int n_files_, int max_load=-1, bool binary_mode=false)
Here the inputs and the targets are in separated files.


Inherited from DiskDataSet:

Public Fields

oPreProcessingList* pre_processes
oIOSequence* io_inputs
oIOSequence* io_targets

Public Methods

ovoid init(IOSequence* io_inputs_, IOSequence* io_targets_)


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

Matrix DataSet On Disk. The standard dataset, with data not fully loaded in memory. Usefull for large databases.

o DiskMatDataSet(const char* filename, int n_inputs_, int n_targets_, bool one_file_is_one_sequence=false, int max_load=-1, bool binary_mode=false)
Create a new dataset from the file filename. If the file contains only one sequence, set one_file_is_one_sequence to true. If there is several sequences, and you want only to load the first n ones, set max_load to n (else max_load should be a negative number). If binary_mode is true, the IOBin format will be used, else it will be the IOAscii format.

Input and target sequence will have the same number of frames. For each frame given by the dataset, the first n_inputs_ real are for the inputs and then the next n_targets_ real are for the targets. (n_inputs_ is the input frame size and n_targets_ is the target frame size).

o DiskMatDataSet(char** filenames, int n_files_, int n_inputs_, int n_targets_, bool one_file_is_one_sequence=false, int max_load=-1, bool binary_mode=false)
Same as the previous constructor, but for several files. If one_file_is_one_sequence is true, each files will be considered as they had only one sequence.

o DiskMatDataSet(char** input_filenames, char** target_filenames, int n_files_, int max_load=-1, bool binary_mode=false)
Here the inputs and the targets are in separated files. Input and target frame sizes are therefore auto-detected. One file must correspond to one sequence.


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)
See Also:
IOAscii
IOBin

Alphabetic index HTML hierarchy of classes or Java



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