46 while (iter != NULL) {
53 return (
double) sum / cnt;
73 while (iter != NULL) {
80 return (
double) sum / cnt;
101 while (iter != NULL) {
108 return (
double) sum / cnt;
128 while (iter != NULL) {
135 return (
double) sum / cnt;
153 while (iter != NULL) {
160 return (
double) sum / cnt;
180 while (iter != NULL) {
207 while (iter != NULL) {
214 return (
double) sum / cnt;
Functions operating on classifiers.
double clset_mean_cond_neurons(const struct XCSF *xcsf, const struct Set *set, const int layer)
Calculates the mean number of condition neurons for a given layer.
double clset_mean_pred_eta(const struct XCSF *xcsf, const struct Set *set, const int layer)
Calculates the mean prediction layer ETA of classifiers in the set.
double clset_mean_cond_layers(const struct XCSF *xcsf, const struct Set *set)
Calculates the mean number of condition layers in the set.
double clset_mean_pred_connections(const struct XCSF *xcsf, const struct Set *set, const int layer)
Calculates the mean number of prediction connections in the set.
double clset_mean_pred_layers(const struct XCSF *xcsf, const struct Set *set)
Calculates the mean number of prediction layers in the set.
double clset_mean_cond_connections(const struct XCSF *xcsf, const struct Set *set, const int layer)
Calculates the mean number of condition connections in the set.
double clset_mean_pred_neurons(const struct XCSF *xcsf, const struct Set *set, const int layer)
Calculates the mean number of prediction neurons for a given layer.
Functions operating on sets of neural classifiers.
int cond_neural_neurons(const struct XCSF *xcsf, const struct Cl *c, int layer)
Returns the number of neurons in a neural condition layer.
int cond_neural_layers(const struct XCSF *xcsf, const struct Cl *c)
Returns the number of layers within a neural network condition.
int cond_neural_connections(const struct XCSF *xcsf, const struct Cl *c, int layer)
Returns the number of active connections in a neural condition layer.
Multi-layer perceptron neural network condition functions.
Interface for classifier conditions.
#define RULE_TYPE_NEURAL
Condition type and action type neural.
#define COND_TYPE_NEURAL
Condition type neural network.
int pred_neural_layers(const struct XCSF *xcsf, const struct Cl *c)
Returns the number of layers within a neural network prediction.
int pred_neural_connections(const struct XCSF *xcsf, const struct Cl *c, const int layer)
Returns the number of active connections in a neural prediction layer.
int pred_neural_neurons(const struct XCSF *xcsf, const struct Cl *c, const int layer)
Returns the number of neurons in a neural prediction layer.
double pred_neural_eta(const struct XCSF *xcsf, const struct Cl *c, const int layer)
Returns the gradient descent rate of a neural prediction layer.
Multi-layer perceptron neural network prediction functions.
Interface for classifier predictions.
#define PRED_TYPE_NEURAL
Prediction type neural.
struct Clist * next
Pointer to the next list element.
struct Cl * cl
Pointer to classifier data structure.
struct Clist * list
Linked list of classifiers.
Utility functions for random number handling, etc.