From 7e00121d9cc9958115b5e5c6b34664f955f803a8 Mon Sep 17 00:00:00 2001 From: Shin Date: Sat, 21 May 2016 00:21:07 +0200 Subject: [PATCH] corel typo --- .../NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h b/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h index f864e95..6820947 100644 --- a/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h +++ b/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h @@ -39,7 +39,7 @@ namespace NeuralNetwork { } else { error = trainOutputs(network, patterns); } - while(_epoch++ < _maxHiddenUnits && _neurons++ < _maxEpochs && error > _errorTreshold) { + while(_epoch++ < _maxEpochs && _neurons++ < _maxHiddenUnits && error > _errorTreshold) { std::vector> candidates = createCandidates(network.getNeuronSize() - outputs); std::pair, std::vector> candidate = trainCandidates(network, candidates, patterns);