Create a DataSet from a sparse disk file.
Inheritance:
Public Methods
-
FileSparseDataSet(const char* file, int n_inputs_, int n_targets, bool bin=false, int max_load=-1)
- Load file in memory.
Public Fields
-
sreal** all_inputs
-
real** all_targets
Public Methods
-
void setInputs(sreal** data_, int n_dim, int n_examples_)
-
void setTargets(real** y_, int n_targets_)
Public Methods
-
real dotProduct(int i, List* y)
-
real realDotProduct(int i, int j)
-
virtual real realRealDotProduct(int i, int j)
-
virtual real realDotProduct(int i, List* y)
-
virtual real dotProduct(List* x, List* y)
Public Members
-
Dot product functions
-
Dot products between two examples.
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)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Create a DataSet from a sparse disk file.
FileSparseDataSet(const char* file, int n_inputs_, int n_targets, bool bin=false, int max_load=-1)
- Load file in memory.
- n_inputs_ is the input dimension of each example.
- n_targets is the target dimension of each example.
- bin is true if the file is in binary format.
- if max_load > 0, it loads only the first max_load examples.
- This class has no child classes.
- Author:
- Ronan Collobert (collober@iro.umontreal.ca)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.