43 const double *input,
double *
delta);
71 const bool return_weights);
Interface for neural network layers.
static struct LayerVtbl const layer_connected_vtbl
Neural connected layer implemented functions.
size_t neural_layer_connected_save(const struct Layer *l, FILE *fp)
Writes a connected layer to a file.
struct Layer * neural_layer_connected_copy(const struct Layer *src)
Initialises and creates a copy of one connected layer from another.
void neural_layer_connected_print(const struct Layer *l, const bool print_weights)
Prints a connected layer.
char * neural_layer_connected_json_export(const struct Layer *l, const bool return_weights)
Returns a json formatted string representation of a connected layer.
void neural_layer_connected_rand(struct Layer *l)
Randomises a connected layer weights.
void neural_layer_connected_resize(struct Layer *l, const struct Layer *prev)
Resizes a connected layer if the previous layer has changed size.
double * neural_layer_connected_output(const struct Layer *l)
Returns the output from a connected layer.
size_t neural_layer_connected_load(struct Layer *l, FILE *fp)
Reads a connected layer from a file.
void neural_layer_connected_backward(const struct Layer *l, const struct Net *net, const double *input, double *delta)
Backward propagates a connected layer.
bool neural_layer_connected_mutate(struct Layer *l)
Mutates a connected layer.
void neural_layer_connected_forward(const struct Layer *l, const struct Net *net, const double *input)
Forward propagates a connected layer.
void neural_layer_connected_init(struct Layer *l, const struct ArgsLayer *args)
Initialises a fully-connected layer.
void neural_layer_connected_update(const struct Layer *l)
Updates the weights and biases of a connected layer.
void neural_layer_connected_free(const struct Layer *l)
Free memory used by a connected 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.