MCPcopy Create free account
hub / github.com/FidoProject/Fido / main

Function main

examples/Backpropagation.cpp:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "Fido/Fido.h"
2
3int 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}

Callers

nothing calls this directly

Calls 4

BackpropagationClass · 0.85
trainMethod · 0.80
NeuralNetClass · 0.50

Tested by

no test coverage detected