43 const double *input,
double *
delta);
71 const bool return_weights);
Interface for neural network layers.
void neural_layer_noise_free(const struct Layer *l)
Free memory used by a noise layer.
void neural_layer_noise_rand(struct Layer *l)
Dummy function since noise layers have no weights.
static struct LayerVtbl const layer_noise_vtbl
Neural Gaussian noise layer implemented functions.
void neural_layer_noise_print(const struct Layer *l, const bool print_weights)
Prints a noise layer.
void neural_layer_noise_resize(struct Layer *l, const struct Layer *prev)
Resizes a noise layer if the previous layer has changed size.
void neural_layer_noise_update(const struct Layer *l)
Dummy function since a noise layer has no weights.
void neural_layer_noise_init(struct Layer *l, const struct ArgsLayer *args)
Initialises a noise layer.
size_t neural_layer_noise_save(const struct Layer *l, FILE *fp)
Writes a noise layer to a file.
size_t neural_layer_noise_load(struct Layer *l, FILE *fp)
Reads a noise layer from a file.
char * neural_layer_noise_json_export(const struct Layer *l, const bool return_weights)
Returns a json formatted string representation of a noise layer.
void neural_layer_noise_backward(const struct Layer *l, const struct Net *net, const double *input, double *delta)
Backward propagates a noise layer.
struct Layer * neural_layer_noise_copy(const struct Layer *src)
Initialises and creates a copy of one noise layer from another.
bool neural_layer_noise_mutate(struct Layer *l)
Dummy function since a noise layer cannot be mutated.
void neural_layer_noise_forward(const struct Layer *l, const struct Net *net, const double *input)
Forward propagates a noise layer.
double * neural_layer_noise_output(const struct Layer *l)
Returns the output from a noise 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.