class SparseDataSet

Sparse Data Set.

Inheritance:


Public Fields

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

Public Methods

[more] SparseDataSet()
[more]void setInputs(sreal** 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_)


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)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Sparse Data Set.

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

osreal** all_inputs
The inputs table

oreal** all_targets
The targets table

o SparseDataSet()

ovoid setInputs(sreal** 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_)


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

Alphabetic index HTML hierarchy of classes or Java



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