class MatSeqDataSet

This class enable to read sequences (hence inherits from SeqDataSet) from the classical Torch data format.

Inheritance:


Public Fields

[more]bool examples_from_stddataset
this boolean is used to know if the data has already been read by a StdDataSet and hence do not need to be freed at the end

Public Methods

[more] MatSeqDataSet( StdDataSet* data, int n_inputs_, int n_observations_)
puts a data set in the Sequence framework
[more]void readMat( char* file, bool bin=false, int max_load=-1 )
reads the data into the all_inputs structure which will be transfered in the examples structure in createData
[more]int lines( char*, bool bin )
finds the number of lines in all of the given files
[more]int columns( char*, bool bin )
finds the number of columns in a file

Public Members

[more] the following method is inherited from SeqDataSet


Inherited from SeqDataSet:

Public Fields

oSeqExample* examples
ochar** file_names
oint n_file_names
obool norm_inputs
obool norm_observations
oreal* mean_in
oreal* mean_ob
oreal* stdv_in
oreal* stdv_ob
oint current_frame
oint n_frames
oint n_observations
oint tot_n_frames
ochar* kind
oint n_seqtargets
oreal** seqtargets

Public Methods

ovirtual void freeMemory()
oint removeUnlikelyFrames(Distribution* likely_distr, Distribution* unlikely_distr, int obs_offset = 0, int range=5)
ovoid removeUnusedData(bool* mask)
ovoid normalizeUsingDataSet( SeqDataSet* )
ovoid normalize()
ovoid setFrame( int )
ovoid totNFrames()
ovoid toOneFramePerExample()
ovirtual void readTargets(char* file)
ovirtual void readAlignments(char* file, bool needs_all_examples = false)
ovoid setSelectedFrames( int* selected_frames, int n_selected_frames )
ovoid unsetSelectedFrames()
ovoid display()
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)


Inherited from DataSet:

Public Fields

oint* selected_examples
oint current_example
oint n_targets
ovoid* targets
oint n_inputs
oList* inputs
oint n_examples
oint n_real_examples

Public Methods

ovoid setExample(int t)
ovirtual void setRealExample(int t)
ovoid pushSubset(int* subset_, int n_examples_)
ovoid popSubset()


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)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

This class enable to read sequences (hence inherits from SeqDataSet) from the classical Torch data format. Depending on the options, it can read one sequence per line (thus having sequences of size 1) or one sequence per file (then having sequences of size the size of the files). One can specify the number of inputs, observations and targets in the given file.

obool examples_from_stddataset
this boolean is used to know if the data has already been read by a StdDataSet and hence do not need to be freed at the end

o MatSeqDataSet( StdDataSet* data, int n_inputs_, int n_observations_)
puts a data set in the Sequence framework

o the following method is inherited from SeqDataSet
the following method is inherited from SeqDataSet

ovoid readMat( char* file, bool bin=false, int max_load=-1 )
reads the data into the all_inputs structure which will be transfered in the examples structure in createData

oint lines( char*, bool bin )
finds the number of lines in all of the given files

oint columns( char*, bool bin )
finds the number of columns in a file


This class has no child classes.
Author:
Bison Ravi (francois.belisle@idiap.ch) Samy Bengio (samy.bengio@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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