| 1 | #include "Fido/Fido.h" |
| 2 | |
| 3 | int main() { |
| 4 | net::NeuralNet neuralNetwork = net::NeuralNet(1, 1, 2, 4, "sigmoid"); |
| 5 | neuralNetwork.setOutputActivationFunction("simpleLinear"); |
| 6 | |
| 7 | std::vector< std::vector<double> > input = { {1}, {2}, {5}, {6} }; |
| 8 | std::vector< std::vector<double> > correctOutput = { {2}, {4}, {10}, {12} }; |
| 9 | |
| 10 | net::Backpropagation backprop = net::Backpropagation(); |
| 11 | backprop.train(&neuralNetwork, input, correctOutput); |
| 12 | } |
nothing calls this directly
no test coverage detected