more iterations

This commit is contained in:
Gustav Louw 2018-03-30 10:11:23 -07:00
parent f7592ca0e1
commit dd6fc57439
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
*.d
tinn
nn.py
*.tinn

6
test.c
View File

@ -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;