Represents the neural network consisting of layers of neurons.
More...
#include <NeuralNetwork.hpp>
Represents the neural network consisting of layers of neurons.
◆ NeuralNetwork()
NeuralNetwork::NeuralNetwork |
( |
const std::vector< unsigned > & |
topology | ) |
|
Constructs a NeuralNetwork with the given topology.
- Parameters
-
topology | A vector representing the number of neurons in each layer. |
◆ backProp()
void NeuralNetwork::backProp |
( |
const std::vector< double > & |
targetVals | ) |
|
Performs backpropagation to adjust weights.
- Parameters
-
targetVals | The target output values. |
◆ feedForward()
void NeuralNetwork::feedForward |
( |
const std::vector< double > & |
inputVals | ) |
|
Feeds the input values forward through the network.
- Parameters
-
inputVals | The input values. |
◆ getRecentAverageError()
double NeuralNetwork::getRecentAverageError |
( |
| ) |
const |
Gets the recent average error of the network.
- Returns
- The recent average error.
◆ getResults()
void NeuralNetwork::getResults |
( |
std::vector< double > & |
resultVals | ) |
const |
Gets the results from the output layer.
- Parameters
-
resultVals | The vector to store output values. |
The documentation for this class was generated from the following file: