From f3475303e80fb92b1c493e9f09c9596c05fcde49 Mon Sep 17 00:00:00 2001 From: mateuszb Date: Thu, 31 May 2012 20:13:30 +0000 Subject: [PATCH] [programming challenge, SSN] * forgotten scaling, minor things --- Odpalarka/main.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Odpalarka/main.cpp b/Odpalarka/main.cpp index b8be5ed00..ba364ad7a 100644 --- a/Odpalarka/main.cpp +++ b/Odpalarka/main.cpp @@ -353,7 +353,7 @@ double Framework::rateArt(const DuelParameters dp, CArtifactInstance * inst) double LRgain = resultLR - resultsBase, RLgain = resultsBase - resultRL; - return LRgain+RLgain; + return (LRgain+RLgain)/4; } double Framework::cmpArtSets(DuelParameters dp, TArtSet setL, TArtSet setR) @@ -538,6 +538,17 @@ double SSN::learn(const std::vector & input, const ParameterSet & param net.set_callback(ANNCallback, NULL); net.train_on_data(*td, 1000, 1000, 0.01); + + +// int exNum = 130; +// +// for(int exNum =0; exNum