class HtkFileDataSet

Creates a StdDataSet from a disk file in HTK format.

Inheritance:


Public Fields

[more]int n_files
the number of files to load
[more]IOHtk** htk
for each file, an object IOHtk is created
[more]int window_size
the size of the input window

Public Methods

[more] HtkFileDataSet(char* file, int window_size_ = 1, int max_load=-1)
Load file in memory.
[more]virtual void write(char* dir_to_save=NULL)
save the data set on htk binary format in specifing directory
[more]virtual void prepareData(bool* input_to_del=NULL)
Set pointers on datas stored on IOHtk object and remove unused columns
[more]virtual void normalizeUsingDataSet(StdDataSet* data_norm)
Normalize the DataSet using the normalization values of another DataSet.
[more]virtual void normalize()
Normalize the database
[more]virtual int removeUnlikelyFrames(Distribution* likely_distr, Distribution* unlikely_distr, bool* mask = NULL)
Remove the frames considering as unlinkely and return the number of removed frames and if mask is not NULL remove unused data
[more]virtual void createMaskFromParam(bool* mask)
Create a mask to remove log energy parameters
[more]virtual void loadFILE(FILE* file)
Load the normalization parameters
[more]virtual void saveFILE(FILE* file)
Save the normalization parameters


Inherited from StdDataSet:

Public Fields

oreal** all_inputs
oreal** all_targets

Public Methods

ovoid setInputs(real** data_, int n_dim, int n_examples_)
ovoid setTargets(real** y_, int n_targets_)


Inherited from EuclideanDataSet:

Public Methods

oreal dotProduct(int i, List* y)
oreal realDotProduct(int i, int j)
ovirtual real realRealDotProduct(int i, int j)
ovirtual real realDotProduct(int i, List* y)
ovirtual real dotProduct(List* x, List* y)

Public Members

o Dot product functions
o Dot products between two examples.


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

Creates a StdDataSet from a disk file in HTK format. As there are no targets in HTK datasets, we decided that they point to the input vector (hence, can be used for Diabolo type of problems for instance). Moreover, a window_size can be given such that the real input vector in the concatenation of the vectors from to , where window_size is equal to .

Finally, it can also be used to load multiple files at once.

oint n_files
the number of files to load

oIOHtk** htk
for each file, an object IOHtk is created

oint window_size
the size of the input window

o HtkFileDataSet(char* file, int window_size_ = 1, int max_load=-1)
Load file in memory.

ovirtual void write(char* dir_to_save=NULL)
save the data set on htk binary format in specifing directory

ovirtual void prepareData(bool* input_to_del=NULL)
Set pointers on datas stored on IOHtk object and remove unused columns

ovirtual void normalizeUsingDataSet(StdDataSet* data_norm)
Normalize the DataSet using the normalization values of another DataSet. If the other DataSet isn't normalized, nothing happens...

ovirtual void normalize()
Normalize the database

ovirtual int removeUnlikelyFrames(Distribution* likely_distr, Distribution* unlikely_distr, bool* mask = NULL)
Remove the frames considering as unlinkely and return the number of removed frames and if mask is not NULL remove unused data

ovirtual void createMaskFromParam(bool* mask)
Create a mask to remove log energy parameters

ovirtual void loadFILE(FILE* file)
Load the normalization parameters

ovirtual void saveFILE(FILE* file)
Save the normalization parameters


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