From 21227ba09208155795b89255f288ea28ea9d29b1 Mon Sep 17 00:00:00 2001 From: bartaandras Date: Tue, 4 Nov 2014 11:35:45 +0100 Subject: [PATCH] Fixed calc_output_scale with NO_OUTPUT_SCALE flag set. --- modules/ml/src/ann_mlp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ml/src/ann_mlp.cpp b/modules/ml/src/ann_mlp.cpp index ad40c8a29c..3e7d44e87c 100644 --- a/modules/ml/src/ann_mlp.cpp +++ b/modules/ml/src/ann_mlp.cpp @@ -618,7 +618,7 @@ public: scale[j*2] = mj; scale[j*2+1] = Mj; } - else + else if( !no_scale ) { t = t*inv_scale[j*2] + inv_scale[2*j+1]; if( t < m1 || t > M1 ) -- GitLab