Skip to content

Commit

Permalink
✅ Train times is now exactly train_times
Browse files Browse the repository at this point in the history
Was *4 before
  • Loading branch information
mrousavy committed Oct 23, 2017
1 parent 712a6c1 commit 53328c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrabeNetzConsole/Trainer.cpp
Expand Up @@ -25,7 +25,7 @@ void trainer::train_xor(network& net, const int train_times)
double* oo = new double[2]{ 1,1 };
double* oo_e = new double[1]{ 0 };

for (int i = 0; i < train_times * 4; i++) // Loop train_times (1000) * possibilities for XOR (4)
for (int i = 0; i < train_times; i++) // Loop train_times (should be %4 = 0)
{
#if !CONST_LEARN_RATE
const double learn_rate = 1.0 / ((i / 4) + 1.0);
Expand Down

0 comments on commit 53328c3

Please sign in to comment.