From 4af18f014cd04156a07d15c074be8211c2db1198 Mon Sep 17 00:00:00 2001 From: Shin Date: Sat, 21 May 2016 00:08:29 +0200 Subject: [PATCH] cc --- .../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 c8bf376..22db303 100644 --- a/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h +++ b/include/NeuralNetwork/ConstructiveAlgorithms/CascadeCorrelation.h @@ -54,7 +54,7 @@ namespace NeuralNetwork { std::cout << error << "\n"; - if(_pruningStatus && error*_pruningLimit >= lastError) { // it is not getting bettter + if(_pruningStatus && error >= lastError * _pruningLimit) { // it is not getting bettter network.removeLastHiddenNeuron(); error=lastError; std::cout << "PRUNED\n";