Skip to content

Commit

Permalink
Updated readme example to actually have input values in the possible …
Browse files Browse the repository at this point in the history
…input range
  • Loading branch information
Jade-GG committed Apr 6, 2018
1 parent 57a4c81 commit 4a8a880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Setting up a network with a few layers, 4 inputs and 1 output, randomizing it, a
nw.randomizeNetwork();

//Feeding it two training examples
nw.trainNetwork(new float[] { 2.1526f, -6.1665f, 8.0831f, -0.34355f }, new float[]{ 0 });
nw.trainNetwork(new float[] { -0.4294f, -0.14693f, 0.044265f, -0.15605f }, new float[]{ 1 });
nw.trainNetwork(new float[] { 0.1526f, 0.1665f, 0.3283f, 0.3435f }, new float[]{ 0 });
nw.trainNetwork(new float[] { 0.4294f, 0.1469f, 0.0442f, 0.1560f }, new float[]{ 1 });

//Applying the average nudges these two training examples gave
nw.applyTrainingChanges(1);
Expand Down

0 comments on commit 4a8a880

Please sign in to comment.