class StdDataSet

Standard Data Set.

Inheritance:


Public Fields

[more]real** all_inputs
The inputs table
[more]real** all_targets
The targets table

Public Methods

[more] StdDataSet()
[more]virtual void normalizeUsingDataSet(StdDataSet* data_norm)
Normalize the StdDataSet using the normalization values of another StdDataSet.
[more]void setInputs(real** data_, int n_dim, int n_examples_)
Set the inputs and the targets to a user tabular n_dim is the dimension of inputs vectors n_targets_ is the dimension of targets vectors.
[more]void setTargets(real** y_, int n_targets_)
[more]virtual void loadFILE(FILE* file)
Load the normalization parameters
[more]virtual void saveFILE(FILE* file)
Save the normalization parameters


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

Standard Data Set.

DataSet with a vector of reals for inputs, and a vector of real for targets.

This DataSet support normalization with mean/variance.

Options:
"normalize inputs" bool normalize the inputs by mean/stdv [false]
"normalize targets" bool normalize the targets by mean/stdv [false]

oreal** all_inputs
The inputs table

oreal** all_targets
The targets table

o StdDataSet()

ovirtual void normalizeUsingDataSet(StdDataSet* data_norm)
Normalize the StdDataSet using the normalization values of another StdDataSet. If the other dataset is not normalize, nothing will be done.

Call it AFTER init().

ovoid setInputs(real** data_, int n_dim, int n_examples_)
Set the inputs and the targets to a user tabular n_dim is the dimension of inputs vectors n_targets_ is the dimension of targets vectors.

Call them BEFORE init().

ovoid setTargets(real** y_, int n_targets_)

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

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


Direct child classes:
HtkFileDataSet
FileDataSet
Author:
Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



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