|
NeuroTIC 0.0
|
Random Initialization.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntinitialize.c.
More...
#include "ntcore.h"

Go to the source code of this file.
Functions | |
| void | randnet (net_s *net) |
| Randomly initializes network weights. | |
Random Initialization.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntinitialize.c.
Initializes all neuron weights within their activation function's specified range and sets biases to zero.
Uses rand() seeded with the current time.
Definition in file ntinitialize.h.
| void randnet | ( | net_s * | net | ) |
Randomly initializes network weights.
| net | Pointer to the network to initialize. |
Iterates through each layer and neuron in the network, assigning random weights based on the activation function's defined range in ntact_rand_range.
Biases are set to zero for all neurons.
The random values are generated using the standard rand() function, scaled to the appropriate range for each activation function.
References neuron_s::b, neuron_s::fn, neuron_s::inputs, net_s::layers, net_s::neurons, net_s::nn, ntact_rand_range, and neuron_s::w.