From 1b98786beec56784cf26e0c0e44f14ecf9c2e386 Mon Sep 17 00:00:00 2001 From: Shin Date: Sat, 21 May 2016 16:55:07 +0200 Subject: [PATCH] cc: reporting of error after first learning --- .../NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h b/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h index 942ba1a..f7d5e8b 100644 --- a/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h +++ b/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h @@ -39,6 +39,9 @@ namespace NeuralNetwork { } else { error = trainOutputs(network, patterns); } + + std::cout << error << "\n"; + while(_epoch++ < _maxEpochs && _neurons < _maxHiddenUnits && error > _errorTreshold) { std::vector> candidates = createCandidates(network.getNeuronSize() - outputs);