This class enable to read sequences (hence inherits from SeqDataSet) from the classical Torch data format.
Inheritance:
Public Fields
-
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
-
MatSeqDataSet( StdDataSet* data, int n_inputs_, int n_observations_)
- puts a data set in the Sequence framework
-
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
-
int lines( char*, bool bin )
- finds the number of lines in all of the given files
-
int columns( char*, bool bin )
- finds the number of columns in a file
Public Members
-
the following method is inherited from SeqDataSet
Public Fields
-
SeqExample* examples
-
char** file_names
-
int n_file_names
-
bool norm_inputs
-
bool norm_observations
-
real* mean_in
-
real* mean_ob
-
real* stdv_in
-
real* stdv_ob
-
int current_frame
-
int n_frames
-
int n_observations
-
int tot_n_frames
-
char* kind
-
int n_seqtargets
-
real** seqtargets
Public Methods
-
virtual void freeMemory()
-
int removeUnlikelyFrames(Distribution* likely_distr, Distribution* unlikely_distr, int obs_offset = 0, int range=5)
-
void removeUnusedData(bool* mask)
-
void normalizeUsingDataSet( SeqDataSet* )
-
void normalize()
-
void setFrame( int )
-
void totNFrames()
-
void toOneFramePerExample()
-
virtual void readTargets(char* file)
-
virtual void readAlignments(char* file, bool needs_all_examples = false)
-
void setSelectedFrames( int* selected_frames, int n_selected_frames )
-
void unsetSelectedFrames()
-
void display()
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
Inherited from DataSet:
Public Fields
-
int* selected_examples
-
int current_example
-
int n_targets
-
void* targets
-
int n_inputs
-
List* inputs
-
int n_examples
-
int n_real_examples
Public Methods
-
void setExample(int t)
-
virtual void setRealExample(int t)
-
void pushSubset(int* subset_, int n_examples_)
-
void popSubset()
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)
-
void load(const char* filename)
-
void 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.
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
MatSeqDataSet( StdDataSet* data, int n_inputs_, int n_observations_)
- puts a data set in the Sequence framework
the following method is inherited from SeqDataSet
- the following method is inherited from SeqDataSet
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
int lines( char*, bool bin )
- finds the number of lines in all of the given files
int 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++.