Skip to content

Commit

Permalink
fix: Rnn log
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Aug 10, 2018
1 parent a65bedc commit b7fd2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recurrent/rnn.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export default class RNN {

if (isNaN(error)) throw new Error('network error rate is unexpected NaN, check network configurations and try again');
if (log && (i % logPeriod == 0)) {
log('iterations:', i, 'training error:', error);
log(`iterations: ${ i }, training error: ${ error }`);
}
if (callback && (i % callbackPeriod == 0)) {
callback({ error: error, iterations: i });
Expand Down

0 comments on commit b7fd2c0

Please sign in to comment.