DataFeeder Class Reference

Feed (random splitted) training and testing data. More...

#include <datafeeder.h>

Collaboration diagram for DataFeeder:

Collaboration graph
[legend]
List of all members.

Public Types

enum  NORMETHOD { MIN_MAX, MEAN_VAR, NONE }

Public Member Functions

 DataFeeder (const pDataSet &)
 DataFeeder (std::istream &)
void set_permutation (std::istream &i)
void do_normalize (NORMETHOD dn=MIN_MAX)
UINT size () const
UINT train_size () const
 the size of the training set
void set_train_size (UINT)
 set the size of the training set
REAL train_noise () const
 the artificial flipping noise level for the training set
void set_train_noise (REAL)
 set the artificial flipping noise level for the training set
pDataSet data () const
bool next_train_test (pDataSet &, pDataSet &) const

Protected Types

typedef std::vector< LINEAR_SCALE_PARAMLINEAR_SCALE_PARAMS

Protected Member Functions

bool next_permutation (std::vector< UINT > &) const

Static Protected Member Functions

static LINEAR_SCALE_PARAMS min_max (DataSet &)
static LINEAR_SCALE_PARAMS mean_var (DataSet &)
static void linear_scale (DataSet &, const LINEAR_SCALE_PARAMS &)

Classes

struct  LINEAR_SCALE_PARAM

Detailed Description

Feed (random splitted) training and testing data.

Definition at line 18 of file datafeeder.h.


Member Typedef Documentation

typedef std::vector<LINEAR_SCALE_PARAM> LINEAR_SCALE_PARAMS [protected]
 

Definition at line 58 of file datafeeder.h.


Member Enumeration Documentation

enum NORMETHOD
 

Enumerator:
MIN_MAX 
MEAN_VAR 
NONE 

Definition at line 20 of file datafeeder.h.


Constructor & Destructor Documentation

DataFeeder const pDataSet  ) 
 

Definition at line 13 of file datafeeder.cpp.

DataFeeder std::istream &   ) 
 

Definition at line 18 of file datafeeder.cpp.

References lemga::load_data().


Member Function Documentation

pDataSet data  )  const [inline]
 

Definition at line 49 of file datafeeder.h.

void do_normalize NORMETHOD  dn = MIN_MAX  )  [inline]
 

Definition at line 38 of file datafeeder.h.

void linear_scale DataSet ,
const LINEAR_SCALE_PARAMS
[static, protected]
 

Definition at line 153 of file datafeeder.cpp.

References dataset::replace(), dataset::size(), dataset::x(), and dataset::y().

DataFeeder::LINEAR_SCALE_PARAMS mean_var DataSet  )  [static, protected]
 

Definition at line 127 of file datafeeder.cpp.

References dataset::size(), and dataset::x().

DataFeeder::LINEAR_SCALE_PARAMS min_max DataSet  )  [static, protected]
 

Definition at line 100 of file datafeeder.cpp.

References dataset::size(), and dataset::x().

bool next_permutation std::vector< UINT > &   )  const [protected]
 

Definition at line 71 of file datafeeder.cpp.

Referenced by DataFeeder::next_train_test().

bool next_train_test pDataSet ,
pDataSet
const
 

Definition at line 35 of file datafeeder.cpp.

References dataset::append(), INFINITESIMAL, DataFeeder::next_permutation(), and randu.

void set_permutation std::istream &  i  )  [inline]
 

Definition at line 37 of file datafeeder.h.

void set_train_noise REAL   ) 
 

set the artificial flipping noise level for the training set

Definition at line 30 of file datafeeder.cpp.

void set_train_size UINT   ) 
 

set the size of the training set

Definition at line 25 of file datafeeder.cpp.

UINT size  )  const [inline]
 

Definition at line 39 of file datafeeder.h.

REAL train_noise  )  const [inline]
 

the artificial flipping noise level for the training set

Definition at line 45 of file datafeeder.h.

UINT train_size  )  const [inline]
 

the size of the training set

Definition at line 41 of file datafeeder.h.


The documentation for this class was generated from the following files:
Generated on Wed Nov 8 08:16:55 2006 for LEMGA by  doxygen 1.4.6