43 const double *input,
double *
delta);
71 const bool return_weights);
Interface for neural network layers.
size_t neural_layer_recurrent_save(const struct Layer *l, FILE *fp)
Writes a recurrent layer to a file.
size_t neural_layer_recurrent_load(struct Layer *l, FILE *fp)
Reads a recurrent layer from a file.
void neural_layer_recurrent_update(const struct Layer *l)
Updates the weights and biases of a recurrent layer.
void neural_layer_recurrent_resize(struct Layer *l, const struct Layer *prev)
Resizes a recurrent layer if the previous layer has changed size.
struct Layer * neural_layer_recurrent_copy(const struct Layer *src)
Initialises and creates a copy of one recurrent layer from another.
bool neural_layer_recurrent_mutate(struct Layer *l)
Mutates a recurrent layer.
void neural_layer_recurrent_rand(struct Layer *l)
Randomises a recurrent layer weights.
void neural_layer_recurrent_init(struct Layer *l, const struct ArgsLayer *args)
Initialises a recurrent layer.
char * neural_layer_recurrent_json_export(const struct Layer *l, const bool return_weights)
Returns a json formatted string representation of a recurrent layer.
double * neural_layer_recurrent_output(const struct Layer *l)
Returns the output from a recurrent layer.
static struct LayerVtbl const layer_recurrent_vtbl
Neural recurrent layer implemented functions.
void neural_layer_recurrent_free(const struct Layer *l)
Free memory used by a recurrent layer.
void neural_layer_recurrent_forward(const struct Layer *l, const struct Net *net, const double *input)
Forward propagates a recurrent layer.
void neural_layer_recurrent_backward(const struct Layer *l, const struct Net *net, const double *input, double *delta)
Backward propagates a recurrent layer.
void neural_layer_recurrent_print(const struct Layer *l, const bool print_weights)
Prints a recurrent layer.
Parameters for initialising a neural network layer.
Neural network layer interface data structure.
Neural network layer data structure.
double * delta
Delta for updating weights.
Neural network data structure.