45 Net(
const std::vector<unsigned> topology);
64 void feedForward(
const std::vector<double>& inputVals);
74 void backProp(
const std::vector<double>& targetVals);
83 void getResults(std::vector<double>& resultVals)
const;
96 std::vector<Layer> _layers;
98 double _recentAverageError = 0;
99 static double _recentAverageSmoothFactor;
Defines the Neuron class for a neural network.
Represents a neural network composed of layers of neurons.
Definition: Net.hpp:28
Net(const std::vector< unsigned > topology)
Constructs the network and sets up the topology.
double getRecentAverageError() const
Gets the recent average error of the network.
Definition: Net.hpp:93
void loadTopology(const std::vector< unsigned > topology)
Sets up the network topology.
void getResults(std::vector< double > &resultVals) const
Retrieves the output values from the final layer of the network.
Definition: Net.cpp:34
Net()
Default constructor for the Net class.
void backProp(const std::vector< double > &targetVals)
Executes backpropagation to adjust weights based on target values.
Definition: Net.cpp:49
void feedForward(const std::vector< double > &inputVals)
Performs forward propagation through the network.
Definition: Net.cpp:98