XCSF
1.4.7
XCSF learning classifier system
|
CSV input file handling functions. More...
Go to the source code of this file.
Data Structures | |
struct | EnvCSV |
CSV environment data structure. More... | |
Functions | |
bool | env_csv_is_done (const struct XCSF *xcsf) |
Returns whether the csv environment is in a terminal state. More... | |
bool | env_csv_multistep (const struct XCSF *xcsf) |
Returns whether the csv environment is a multistep problem. More... | |
double | env_csv_execute (const struct XCSF *xcsf, const int action) |
Dummy method since no action is executed by the csv environment. More... | |
double | env_csv_maxpayoff (const struct XCSF *xcsf) |
Returns the maximum payoff value possible in the csv environment. More... | |
const double * | env_csv_get_state (const struct XCSF *xcsf) |
Dummy method since no state is returned by the csv environment. More... | |
void | env_csv_free (const struct XCSF *xcsf) |
Frees the csv environment. More... | |
void | env_csv_init (struct XCSF *xcsf, const char *filename) |
Initialises a CSV input environment from a specified filename. More... | |
void | env_csv_reset (const struct XCSF *xcsf) |
Dummy method since no csv environment reset is necessary. More... | |
Variables | |
static struct EnvVtbl const | env_csv_vtbl |
csv input environment implemented functions. More... | |
CSV input file handling functions.
Definition in file env_csv.h.
double env_csv_execute | ( | const struct XCSF * | xcsf, |
const int | action | ||
) |
void env_csv_free | ( | const struct XCSF * | xcsf | ) |
Frees the csv environment.
[in] | xcsf | The XCSF data structure. |
Definition at line 177 of file env_csv.c.
References EnvCSV::test_data, EnvCSV::train_data, Input::x, and Input::y.
const double* env_csv_get_state | ( | const struct XCSF * | xcsf | ) |
void env_csv_init | ( | struct XCSF * | xcsf, |
const char * | filename | ||
) |
Initialises a CSV input environment from a specified filename.
[in] | xcsf | The XCSF data structure. |
[in] | filename | The file name of the csv data. |
Definition at line 160 of file env_csv.c.
References env_csv_input_read(), param_init(), EnvCSV::test_data, EnvCSV::train_data, Input::x_dim, and Input::y_dim.
Referenced by env_init().
bool env_csv_is_done | ( | const struct XCSF * | xcsf | ) |
double env_csv_maxpayoff | ( | const struct XCSF * | xcsf | ) |
bool env_csv_multistep | ( | const struct XCSF * | xcsf | ) |
void env_csv_reset | ( | const struct XCSF * | xcsf | ) |
|
static |
csv input environment implemented functions.
Definition at line 59 of file env_csv.h.
Referenced by env_init().