diff --git a/src/examples/network_serialization.cpp b/src/examples/network_serialization.cpp index f760f30a78bb728523a943e2542a2bcb025d6794..92f821c0a9337c6236d931060dd818e48b055959 100644 --- a/src/examples/network_serialization.cpp +++ b/src/examples/network_serialization.cpp @@ -123,12 +123,12 @@ int main() { std::cout << "--------------------------------------------------------------------------------------------------------------------------------------------" <<std::endl; error = 0.0; inp = {0, 1}; - net.eval_single( inp, out ); + net2.eval_single( inp, out ); error += (0.5 - out[0]) * (0.5 - out[0]); std::cout << "x = (0, 1), expected output: 0.50, real output: " << out[0] << std::endl; inp = {1, 0.5}; - net.eval_single( inp, out ); + net2.eval_single( inp, out ); error += (0.75 - out[0]) * (0.75 - out[0]); std::cout << "x = (1, 0.5), expected output: 0.75, real output: " << out[0] << std::endl; std::cout << "Error of the network: " << 0.5 * error << std::endl;