diff options
Diffstat (limited to 'src/lib/src/neuralnet_impl.h')
| -rw-r--r-- | src/lib/src/neuralnet_impl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/src/neuralnet_impl.h b/src/lib/src/neuralnet_impl.h index 26107b5..18694f4 100644 --- a/src/lib/src/neuralnet_impl.h +++ b/src/lib/src/neuralnet_impl.h | |||
| @@ -14,10 +14,10 @@ | |||
| 14 | /// | 14 | /// |
| 15 | /// w11 w12 w21 w22 | 15 | /// w11 w12 w21 w22 |
| 16 | typedef struct nnNeuralNetwork { | 16 | typedef struct nnNeuralNetwork { |
| 17 | int num_layers; // Number of non-input layers (hidden + output). | 17 | int num_layers; // Number of non-input layers (hidden + output). |
| 18 | nnMatrix* weights; // One matrix per non-input layer. | 18 | nnMatrix* weights; // One matrix per non-input layer. |
| 19 | nnMatrix* biases; // One vector per non-input layer. | 19 | nnMatrix* biases; // One vector per non-input layer. |
| 20 | nnActivation* activations; // One per non-input layer. | 20 | nnActivation* activations; // One per non-input layer. |
| 21 | } nnNeuralNetwork; | 21 | } nnNeuralNetwork; |
| 22 | 22 | ||
| 23 | /// A query object that holds all the memory necessary to query a network. | 23 | /// A query object that holds all the memory necessary to query a network. |
| @@ -31,6 +31,6 @@ typedef struct nnNeuralNetwork { | |||
| 31 | /// convenience. | 31 | /// convenience. |
| 32 | typedef struct nnQueryObject { | 32 | typedef struct nnQueryObject { |
| 33 | int num_layers; | 33 | int num_layers; |
| 34 | nnMatrix* layer_outputs; // Output matrices, one output per layer. | 34 | nnMatrix* layer_outputs; // Output matrices, one output per layer. |
| 35 | nnMatrix* network_outputs; // Points to the last output matrix. | 35 | nnMatrix* network_outputs; // Points to the last output matrix. |
| 36 | } nnTrainingQueryObject; | 36 | } nnTrainingQueryObject; |
