class DataSet

Provides an interface to manipulate all kind of data.

Inheritance:


Public Fields

[more]int* selected_examples
The indices of all selected examples.
[more]int current_example
Index of the current example.
[more]int n_targets
Targets size, for all examples
[more]void* targets
Pointer to the targets of the current example
[more]int n_inputs
Input size, for all examples
[more]List* inputs
Pointer on the inputs of the current example
[more]int n_examples
Number of examples in the dataset.
[more]int n_real_examples
Real number of examples in the dataset.

Public Methods

[more] DataSet()
[more]void setExample(int t)
Set targets and inputs to the targets and inputs of the example with the index selected_examples[t]
[more]virtual void setRealExample(int t) = 0
Set targets and inputs to the targets and inputs of the example with the index t
[more]void pushSubset(int* subset_, int n_examples_)
Set a new subset.
[more]void popSubset()
Remove the last subset.


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

Provides an interface to manipulate all kind of data.

oint* selected_examples
The indices of all selected examples. When select_examples is false, it contains the indices of all examples.

oint current_example
Index of the current example. Warning:

oint n_targets
Targets size, for all examples

ovoid* targets
Pointer to the targets of the current example

oint n_inputs
Input size, for all examples

oList* inputs
Pointer on the inputs of the current example

oint n_examples
Number of examples in the dataset. If you're using select_examples, it's the number of selected examples.

oint n_real_examples
Real number of examples in the dataset. It's the number of examples in memory. (= n_examples if select_examples is false)

o DataSet()

ovoid setExample(int t)
Set targets and inputs to the targets and inputs of the example with the index selected_examples[t]

ovirtual void setRealExample(int t) = 0
Set targets and inputs to the targets and inputs of the example with the index t

ovoid pushSubset(int* subset_, int n_examples_)
Set a new subset.

ovoid popSubset()
Remove the last subset.


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

Alphabetic index HTML hierarchy of classes or Java



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