neural-api
neural-api copied to clipboard
How can I get the weights and biases of the trained neural network?
How can I get the weights and biases of the trained neural network?
Each layer (TNNetLayer) has a list of Neurons:
property Neurons: TNNetNeuronList read FNeurons;
The neuron list is implemented as follows:
TNNetNeuronList = class (specialize TFPGObjectList<TNNetNeuron>)
From TNNetNeuron, you have:
property Weights: TNNetVolume read FWeights;
So, regarding weights, you'll load from TNNetNeuron.Weights.
I'll FUP about bias.
Just added support to read the bias in the most recent commit.