From dd6fc574392df8694ab71fdeeb5264b2cbf2c1f4 Mon Sep 17 00:00:00 2001 From: Gustav Louw Date: Fri, 30 Mar 2018 10:11:23 -0700 Subject: [PATCH] more iterations --- .gitignore | 1 + test.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 49f6141..6e56bdf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.d tinn nn.py +*.tinn diff --git a/test.c b/test.c index e7321de..987f406 100644 --- a/test.c +++ b/test.c @@ -134,14 +134,14 @@ int main() // Learning rate is annealed and thus not constant. // It can be fine tuned along with the number of hidden layers. // Feel free to modify the anneal rate as well. - const int nhid = 32; + const int nhid = 30; double rate = 1.0; - const double anneal = 0.9; + const double anneal = 0.99; // Load the training set. const Data data = build("semeion.data", nips, nops); // Train, baby, train. const Tinn tinn = xtbuild(nips, nhid, nops); - for(int i = 0; i < 30; i++) + for(int i = 0; i < 100; i++) { shuffle(data); double error = 0.0;