Skip to content

Commit fdb80bd

Browse files
Merge pull request #259 from BrainJS/258-fix-log
fix: Rnn log
2 parents a65bedc + b7fd2c0 commit fdb80bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recurrent/rnn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export default class RNN {
417417

418418
if (isNaN(error)) throw new Error('network error rate is unexpected NaN, check network configurations and try again');
419419
if (log && (i % logPeriod == 0)) {
420-
log('iterations:', i, 'training error:', error);
420+
log(`iterations: ${ i }, training error: ${ error }`);
421421
}
422422
if (callback && (i % callbackPeriod == 0)) {
423423
callback({ error: error, iterations: i });

0 commit comments

Comments
 (0)