XCSF
1.4.7
XCSF learning classifier system
|
#include <xcsf.h>
Data Fields | |
struct Set | pset |
Population set. More... | |
struct Set | prev_pset |
Previously stored population set. More... | |
struct Set | mset |
Match set. More... | |
struct Set | aset |
Action set. More... | |
struct Set | kset |
Kill set. More... | |
struct Set | prev_aset |
Previous action set. More... | |
struct ArgsAct * | act |
Action parameters. More... | |
struct ArgsCond * | cond |
Condition parameters. More... | |
struct ArgsPred * | pred |
Prediction parameters. More... | |
struct ArgsEA * | ea |
EA parameters. More... | |
struct EnvVtbl const * | env_vptr |
Functions acting on environments. More... | |
void * | env |
Environment structure (for built-in problems) More... | |
double | error |
Average system error. More... | |
double | mset_size |
Average match set size. More... | |
double | aset_size |
Average action set size. More... | |
double | mfrac |
Generalisation measure. More... | |
double | prev_reward |
Reward from previous step in a multi-step trial. More... | |
double | prev_pred |
Payoff prediction made on the previous step. More... | |
double * | pa |
Prediction array (stores fitness weighted predictions) More... | |
double * | nr |
Prediction array (stores total fitness) More... | |
double * | prev_state |
Environment state on the previous step. More... | |
double * | cover |
Values to return for a prediction instead of covering. More... | |
int | time |
Current number of EA executions. More... | |
int | pa_size |
Prediction array size. More... | |
int | x_dim |
Number of problem input variables. More... | |
int | y_dim |
Number of problem output variables. More... | |
int | n_actions |
Number of class labels / actions. More... | |
bool | explore |
Whether the system is currently exploring or exploiting. More... | |
double(* | loss_ptr )(const struct XCSF *, const double *, const double *) |
Error function. More... | |
double | GAMMA |
Discount factor for multi-step reward. More... | |
double | P_EXPLORE |
Probability of exploring vs. exploiting. More... | |
double | ALPHA |
Linear coefficient used to calculate classifier accuracy. More... | |
double | BETA |
Learning rate for updating error, fitness, and set size. More... | |
double | DELTA |
Fraction of population to increase deletion vote. More... | |
double | E0 |
Target error under which classifier accuracy is set to 1. More... | |
double | INIT_ERROR |
Initial classifier error value. More... | |
double | INIT_FITNESS |
Initial classifier fitness value. More... | |
double | NU |
Exponent used in calculating classifier accuracy. More... | |
double | HUBER_DELTA |
Delta parameter for Huber loss calculation. More... | |
int | OMP_NUM_THREADS |
Number of threads for parallel processing. More... | |
int | MAX_TRIALS |
Number of problem instances to run in one experiment. More... | |
int | PERF_TRIALS |
Number of problem instances to avg performance output. More... | |
int | POP_SIZE |
Maximum number of micro-classifiers in the population. More... | |
int | LOSS_FUNC |
Which loss/error function to apply. More... | |
int | TELETRANSPORTATION |
Maximum steps for a multi-step problem. More... | |
int | THETA_DEL |
Min experience before fitness used during deletion. More... | |
int | M_PROBATION |
Trials since creation a cl must match at least 1 input. More... | |
int | THETA_SUB |
Minimum experience of a classifier to become a subsumer. More... | |
int | RANDOM_STATE |
Random number seed. More... | |
bool | POP_INIT |
Pop initially empty or filled with random conditions. More... | |
bool | SET_SUBSUMPTION |
Whether to perform match set subsumption. More... | |
bool | STATEFUL |
Whether classifiers should retain state across trials. More... | |
bool | COMPACTION |
if sys err < E0: largest of 2 roulette spins deleted More... | |
char * | population_file |
Name of a JSON file containing an initial pop. More... | |
double XCSF::ALPHA |
double XCSF::aset_size |
double XCSF::BETA |
bool XCSF::COMPACTION |
double* XCSF::cover |
Values to return for a prediction instead of covering.
Definition at line 107 of file xcsf.h.
Referenced by XCS::fit(), XCS::load_validation_data(), XCS::predict(), XCS::score(), and XCS::set_cover().
double XCSF::DELTA |
double XCSF::E0 |
struct EnvVtbl const* XCSF::env_vptr |
double XCSF::error |
bool XCSF::explore |
double XCSF::HUBER_DELTA |
double(* XCSF::loss_ptr) (const struct XCSF *, const double *, const double *) |
int XCSF::M_PROBATION |
int XCSF::MAX_TRIALS |
Number of problem instances to run in one experiment.
Definition at line 127 of file xcsf.h.
Referenced by XCS::fit().
double XCSF::mfrac |
Generalisation measure.
Definition at line 101 of file xcsf.h.
Referenced by XCS::get_mfrac(), and XCS::update_metrics().
double XCSF::mset_size |
Average match set size.
Definition at line 99 of file xcsf.h.
Referenced by XCS::get_mset_size(), and XCS::update_metrics().
int XCSF::n_actions |
double XCSF::NU |
int XCSF::OMP_NUM_THREADS |
double XCSF::P_EXPLORE |
double* XCSF::pa |
int XCSF::pa_size |
Prediction array size.
Definition at line 109 of file xcsf.h.
Referenced by XCS::load_validation_data(), XCS::predict(), and XCS::set_cover().
int XCSF::PERF_TRIALS |
Number of problem instances to avg performance output.
Definition at line 128 of file xcsf.h.
Referenced by XCS::fit().
bool XCSF::POP_INIT |
int XCSF::POP_SIZE |
char* XCSF::population_file |
double XCSF::prev_pred |
double XCSF::prev_reward |
double* XCSF::prev_state |
struct Set XCSF::pset |
Population set.
Definition at line 79 of file xcsf.h.
Referenced by XCS::get_pset_mean_cond_connections(), XCS::get_pset_mean_cond_layers(), XCS::get_pset_mean_cond_neurons(), XCS::get_pset_mean_cond_size(), XCS::get_pset_mean_pred_connections(), XCS::get_pset_mean_pred_eta(), XCS::get_pset_mean_pred_layers(), XCS::get_pset_mean_pred_neurons(), XCS::get_pset_mean_pred_size(), XCS::get_pset_num(), XCS::get_pset_size(), XCS::json_export(), and XCS::update_metrics().
bool XCSF::SET_SUBSUMPTION |
bool XCSF::STATEFUL |
int XCSF::TELETRANSPORTATION |
int XCSF::THETA_DEL |
int XCSF::THETA_SUB |
int XCSF::time |
Current number of EA executions.
Definition at line 108 of file xcsf.h.
Referenced by XCS::get_time().
int XCSF::x_dim |
Number of problem input variables.
Definition at line 110 of file xcsf.h.
Referenced by XCS::decision(), XCS::fit(), XCS::load_input(), and XCS::predict().
int XCSF::y_dim |
Number of problem output variables.
Definition at line 111 of file xcsf.h.
Referenced by XCS::get_cover(), and XCS::load_input().