75 const bool print_cond,
const bool print_act,
const bool print_pred);
82 const double *y,
const bool cur);
89 const bool return_cond,
const bool return_act,
90 const bool return_pred);
double clset_mean_pred_size(const struct XCSF *xcsf, const struct Set *set)
Calculates the mean prediction size of classifiers in the set.
void clset_pset_init(struct XCSF *xcsf)
Initialises a new population of random classifiers.
void clset_kill(const struct XCSF *xcsf, struct Set *set)
Frees the set and the classifiers.
void clset_update(struct XCSF *xcsf, struct Set *set, const double *x, const double *y, const bool cur)
Provides reinforcement to the set and performs set subsumption.
double clset_total_fit(const struct Set *set)
Calculates the total fitness of classifiers in the set.
double clset_mean_time(const struct Set *set)
Calculates the mean time stamp of classifiers in the set.
void clset_validate(struct Set *set)
Removes classifiers with 0 numerosity from the set.
void clset_pset_enforce_limit(struct XCSF *xcsf)
Enforces the maximum population size limit.
void clset_add(struct Set *set, struct Cl *c)
Adds a classifier to the set.
void clset_action(struct XCSF *xcsf, const int action)
Constructs the action set from the match set.
void clset_print(const struct XCSF *xcsf, const struct Set *set, const bool print_cond, const bool print_act, const bool print_pred)
Prints the classifiers in the set.
double clset_mean_cond_size(const struct XCSF *xcsf, const struct Set *set)
Calculates the mean condition size of classifiers in the set.
void clset_json_insert(struct XCSF *xcsf, const char *json_str)
Creates classifiers from JSON and inserts into the population.
size_t clset_pset_save(const struct XCSF *xcsf, FILE *fp)
Writes the population set to a file.
void clset_init(struct Set *set)
Initialises a new set.
void clset_set_times(const struct XCSF *xcsf, const struct Set *set)
Sets the time stamps for classifiers in the set.
double clset_mfrac(const struct XCSF *xcsf)
Returns the fraction of inputs matched by the most general rule with error below E0....
void clset_match(struct XCSF *xcsf, const double *x, const bool cover)
Constructs the match set - forward propagates conditions and actions.
void clset_free(struct Set *set)
Frees the set, but not the classifiers.
void clset_json_insert_cl(struct XCSF *xcsf, const cJSON *json)
Creates a classifier from cJSON and inserts in the population set.
char * clset_json_export(const struct XCSF *xcsf, const struct Set *set, const bool return_cond, const bool return_act, const bool return_pred)
Returns a json formatted string representation of a classifier set.
size_t clset_pset_load(struct XCSF *xcsf, FILE *fp)
Reads the population set from a file.
Classifier data structure.