mirror of
https://github.com/glouw/tinn
synced 2024-11-21 22:11:21 +03:00
more iterations
This commit is contained in:
parent
f7592ca0e1
commit
dd6fc57439
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
*.d
|
||||
tinn
|
||||
nn.py
|
||||
*.tinn
|
||||
|
6
test.c
6
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;
|
||||
|
Loading…
Reference in New Issue
Block a user