XCSF  1.4.7
XCSF learning classifier system
Layer Struct Reference

Neural network layer data structure. More...

#include <neural_layer.h>

Collaboration diagram for Layer:
[legend]

Data Fields

int type
 Layer type: CONNECTED, DROPOUT, etc. More...
 
double * state
 Current neuron states (before activation function) More...
 
double * output
 Current neuron outputs (after activation function) More...
 
uint32_t options
 Bitwise layer options permitting evolution, SGD, etc. More...
 
double * weights
 Weights for calculating neuron states. More...
 
bool * weight_active
 Whether each connection is present in the layer. More...
 
double * biases
 Biases for calculating neuron states. More...
 
double * bias_updates
 Updates to biases. More...
 
double * weight_updates
 Updates to weights. More...
 
double * delta
 Delta for updating weights. More...
 
double * mu
 Mutation rates. More...
 
double eta
 Gradient descent rate. More...
 
double eta_max
 Maximum gradient descent rate. More...
 
double eta_min
 Minimum gradient descent rate. More...
 
double momentum
 Momentum for gradient descent. More...
 
double decay
 Weight decay for gradient descent. More...
 
int n_inputs
 Number of layer inputs. More...
 
int n_outputs
 Number of layer outputs. More...
 
int max_outputs
 Maximum number of neurons in the layer. More...
 
int max_neuron_grow
 Maximum number neurons to add per mutation event. More...
 
int n_weights
 Number of layer weights. More...
 
int n_biases
 Number of layer biases. More...
 
int n_active
 Number of active weights / connections. More...
 
int function
 Layer activation function. More...
 
double scale
 Usage depends on layer implementation. More...
 
double probability
 Usage depends on layer implementation. More...
 
struct LayerVtbl const * layer_vptr
 Functions acting on layers. More...
 
double * prev_state
 Previous state for recursive layers. More...
 
struct Layerinput_layer
 Recursive layer input. More...
 
struct Layerself_layer
 Recursive layer self. More...
 
struct Layeroutput_layer
 Recursive layer output. More...
 
int recurrent_function
 LSTM. More...
 
struct Layeruf
 LSTM. More...
 
struct Layerui
 LSTM. More...
 
struct Layerug
 LSTM. More...
 
struct Layeruo
 LSTM. More...
 
struct Layerwf
 LSTM. More...
 
struct Layerwi
 LSTM. More...
 
struct Layerwg
 LSTM. More...
 
struct Layerwo
 LSTM. More...
 
double * cell
 LSTM. More...
 
double * prev_cell
 LSTM. More...
 
double * f
 LSTM. More...
 
double * i
 LSTM. More...
 
double * g
 LSTM. More...
 
double * o
 LSTM. More...
 
double * c
 LSTM. More...
 
double * h
 LSTM. More...
 
double * temp
 LSTM. More...
 
double * temp2
 LSTM. More...
 
double * temp3
 LSTM. More...
 
double * dc
 LSTM. More...
 
int height
 Pool, Conv, and Upsample. More...
 
int width
 Pool, Conv, and Upsample. More...
 
int channels
 Pool, Conv, and Upsample. More...
 
int pad
 Pool and Conv. More...
 
int out_w
 Pool, Conv, and Upsample. More...
 
int out_h
 Pool, Conv, and Upsample. More...
 
int out_c
 Pool, Conv, and Upsample. More...
 
int size
 Pool and Conv. More...
 
int stride
 Pool, Conv, and Upsample. More...
 
int * indexes
 Pool. More...
 
int n_filters
 Conv. More...
 

Detailed Description

Neural network layer data structure.

Definition at line 73 of file neural_layer.h.

Field Documentation

◆ bias_updates

◆ biases

◆ c

◆ cell

◆ channels

◆ dc

◆ decay

◆ delta

◆ eta

◆ eta_max

◆ eta_min

◆ f

◆ function

◆ g

◆ h

◆ height

◆ i

◆ indexes

◆ input_layer

◆ layer_vptr

◆ max_neuron_grow

◆ max_outputs

int Layer::max_outputs

Maximum number of neurons in the layer.

Definition at line 92 of file neural_layer.h.

Referenced by layer_defaults(), layer_mutate_neurons(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_copy(), neural_layer_connected_init(), neural_layer_connected_load(), neural_layer_connected_save(), neural_layer_convolutional_copy(), neural_layer_convolutional_init(), neural_layer_convolutional_load(), neural_layer_convolutional_mutate_filter(), neural_layer_convolutional_save(), neural_layer_dropout_copy(), neural_layer_dropout_init(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_copy(), neural_layer_lstm_init(), neural_layer_lstm_load(), neural_layer_lstm_save(), neural_layer_maxpool_copy(), neural_layer_maxpool_init(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_copy(), neural_layer_noise_init(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_copy(), neural_layer_recurrent_init(), neural_layer_recurrent_load(), neural_layer_recurrent_save(), neural_layer_softmax_copy(), neural_layer_softmax_init(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_softmax_save(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_load(), neural_layer_upsample_resize(), neural_layer_upsample_save(), and pred_neural_expand().

◆ momentum

◆ mu

◆ n_active

◆ n_biases

◆ n_filters

◆ n_inputs

int Layer::n_inputs

Number of layer inputs.

Definition at line 90 of file neural_layer.h.

Referenced by xcsf.utils.viz.DGPViz::__init__(), xcsf.utils.viz.DGPViz::draw(), layer_add_neurons(), layer_defaults(), layer_ensure_input_represention(), layer_mutate_connectivity(), max_pool(), neural_insert(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_json_export(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_backward(), neural_layer_connected_copy(), neural_layer_connected_forward(), neural_layer_connected_init(), neural_layer_connected_json_export(), neural_layer_connected_load(), neural_layer_connected_resize(), neural_layer_connected_save(), neural_layer_convolutional_copy(), neural_layer_convolutional_init(), neural_layer_convolutional_json_export(), neural_layer_convolutional_load(), neural_layer_convolutional_resize(), neural_layer_convolutional_save(), neural_layer_dropout_backward(), neural_layer_dropout_copy(), neural_layer_dropout_forward(), neural_layer_dropout_init(), neural_layer_dropout_json_export(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_copy(), neural_layer_lstm_init(), neural_layer_lstm_json_export(), neural_layer_lstm_load(), neural_layer_lstm_resize(), neural_layer_lstm_save(), neural_layer_maxpool_copy(), neural_layer_maxpool_init(), neural_layer_maxpool_json_export(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_backward(), neural_layer_noise_copy(), neural_layer_noise_forward(), neural_layer_noise_init(), neural_layer_noise_json_export(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_copy(), neural_layer_recurrent_init(), neural_layer_recurrent_json_export(), neural_layer_recurrent_load(), neural_layer_recurrent_resize(), neural_layer_recurrent_save(), neural_layer_softmax_backward(), neural_layer_softmax_copy(), neural_layer_softmax_forward(), neural_layer_softmax_init(), neural_layer_softmax_json_export(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_softmax_save(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_json_export(), neural_layer_upsample_load(), neural_layer_upsample_resize(), neural_layer_upsample_save(), neural_resize(), and pred_neural_expand().

◆ n_outputs

int Layer::n_outputs

Number of layer outputs.

Definition at line 91 of file neural_layer.h.

Referenced by cond_neural_neurons(), layer_add_neurons(), layer_defaults(), layer_ensure_input_represention(), layer_guard_outputs(), layer_mutate_connectivity(), layer_mutate_neurons(), malloc_layer_arrays(), mutate_neurons(), neural_create(), neural_insert(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_json_export(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_backward(), neural_layer_connected_copy(), neural_layer_connected_forward(), neural_layer_connected_init(), neural_layer_connected_json_export(), neural_layer_connected_load(), neural_layer_connected_resize(), neural_layer_connected_save(), neural_layer_convolutional_add_filters(), neural_layer_convolutional_backward(), neural_layer_convolutional_copy(), neural_layer_convolutional_forward(), neural_layer_convolutional_init(), neural_layer_convolutional_json_export(), neural_layer_convolutional_load(), neural_layer_convolutional_resize(), neural_layer_convolutional_save(), neural_layer_dropout_copy(), neural_layer_dropout_init(), neural_layer_dropout_json_export(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_backward(), neural_layer_lstm_copy(), neural_layer_lstm_forward(), neural_layer_lstm_init(), neural_layer_lstm_json_export(), neural_layer_lstm_load(), neural_layer_lstm_resize(), neural_layer_lstm_save(), neural_layer_maxpool_backward(), neural_layer_maxpool_copy(), neural_layer_maxpool_forward(), neural_layer_maxpool_init(), neural_layer_maxpool_json_export(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_copy(), neural_layer_noise_init(), neural_layer_noise_json_export(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_backward(), neural_layer_recurrent_copy(), neural_layer_recurrent_forward(), neural_layer_recurrent_init(), neural_layer_recurrent_json_export(), neural_layer_recurrent_load(), neural_layer_recurrent_save(), neural_layer_softmax_copy(), neural_layer_softmax_init(), neural_layer_softmax_json_export(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_softmax_save(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_json_export(), neural_layer_upsample_load(), neural_layer_upsample_resize(), neural_layer_upsample_save(), neural_learn(), neural_mutate(), neural_remove(), pred_neural_expand(), pred_neural_neurons(), realloc_layer_arrays(), and reset_layer_deltas().

◆ n_weights

◆ o

◆ options

◆ out_c

int Layer::out_c

Pool, Conv, and Upsample.

Definition at line 132 of file neural_layer.h.

Referenced by layer_defaults(), mutate_neurons(), neural_create(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_copy(), neural_layer_connected_init(), neural_layer_connected_load(), neural_layer_convolutional_add_filters(), neural_layer_convolutional_copy(), neural_layer_convolutional_init(), neural_layer_convolutional_load(), neural_layer_convolutional_resize(), neural_layer_convolutional_save(), neural_layer_dropout_copy(), neural_layer_dropout_init(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_copy(), neural_layer_lstm_init(), neural_layer_lstm_load(), neural_layer_maxpool_copy(), neural_layer_maxpool_init(), neural_layer_maxpool_json_export(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_copy(), neural_layer_noise_init(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_copy(), neural_layer_recurrent_init(), neural_layer_recurrent_load(), neural_layer_softmax_copy(), neural_layer_softmax_init(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_load(), neural_layer_upsample_resize(), and neural_layer_upsample_save().

◆ out_h

int Layer::out_h

Pool, Conv, and Upsample.

Definition at line 131 of file neural_layer.h.

Referenced by get_workspace_size(), layer_defaults(), mutate_neurons(), neural_create(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_copy(), neural_layer_connected_init(), neural_layer_connected_load(), neural_layer_convolutional_add_filters(), neural_layer_convolutional_backward(), neural_layer_convolutional_copy(), neural_layer_convolutional_forward(), neural_layer_convolutional_init(), neural_layer_convolutional_load(), neural_layer_convolutional_resize(), neural_layer_convolutional_save(), neural_layer_dropout_copy(), neural_layer_dropout_init(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_copy(), neural_layer_lstm_init(), neural_layer_lstm_load(), neural_layer_maxpool_copy(), neural_layer_maxpool_forward(), neural_layer_maxpool_init(), neural_layer_maxpool_json_export(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_copy(), neural_layer_noise_init(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_copy(), neural_layer_recurrent_init(), neural_layer_recurrent_load(), neural_layer_softmax_copy(), neural_layer_softmax_init(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_load(), neural_layer_upsample_resize(), and neural_layer_upsample_save().

◆ out_w

int Layer::out_w

Pool, Conv, and Upsample.

Definition at line 130 of file neural_layer.h.

Referenced by get_workspace_size(), layer_defaults(), mutate_neurons(), neural_create(), neural_layer_avgpool_copy(), neural_layer_avgpool_init(), neural_layer_avgpool_load(), neural_layer_avgpool_resize(), neural_layer_avgpool_save(), neural_layer_connected_copy(), neural_layer_connected_init(), neural_layer_connected_load(), neural_layer_convolutional_add_filters(), neural_layer_convolutional_backward(), neural_layer_convolutional_copy(), neural_layer_convolutional_forward(), neural_layer_convolutional_init(), neural_layer_convolutional_load(), neural_layer_convolutional_resize(), neural_layer_convolutional_save(), neural_layer_dropout_copy(), neural_layer_dropout_init(), neural_layer_dropout_load(), neural_layer_dropout_resize(), neural_layer_dropout_save(), neural_layer_lstm_copy(), neural_layer_lstm_init(), neural_layer_lstm_load(), neural_layer_maxpool_copy(), neural_layer_maxpool_forward(), neural_layer_maxpool_init(), neural_layer_maxpool_json_export(), neural_layer_maxpool_load(), neural_layer_maxpool_resize(), neural_layer_maxpool_save(), neural_layer_noise_copy(), neural_layer_noise_init(), neural_layer_noise_load(), neural_layer_noise_resize(), neural_layer_noise_save(), neural_layer_recurrent_copy(), neural_layer_recurrent_init(), neural_layer_recurrent_load(), neural_layer_softmax_copy(), neural_layer_softmax_init(), neural_layer_softmax_load(), neural_layer_softmax_resize(), neural_layer_upsample_copy(), neural_layer_upsample_init(), neural_layer_upsample_load(), neural_layer_upsample_resize(), and neural_layer_upsample_save().

◆ output

◆ output_layer

◆ pad

◆ prev_cell

double* Layer::prev_cell

◆ prev_state

◆ probability

◆ recurrent_function

◆ scale

◆ self_layer

◆ size

◆ state

◆ stride

◆ temp

◆ temp2

◆ temp3

◆ type

◆ uf

◆ ug

◆ ui

◆ uo

◆ weight_active

◆ weight_updates

◆ weights

◆ wf

◆ wg

◆ wi

◆ width

◆ wo


The documentation for this struct was generated from the following file: