Skip to content

Commit 2e192b6

Browse files
authored
Fix learningRate param in snake-dqn (#353)
1 parent db33e4d commit 2e192b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

snake-dqn/agent.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class SnakeGameAgent {
3737
* - `epsilonDecayFrames` {number} The # of frames over which the value of
3838
* `epsilon` decreases from `episloInit` to `epsilonFinal`, via a linear
3939
* schedule.
40+
* - `learningRate` {number} The learning rate to use during training.
4041
*/
4142
constructor(game, config) {
4243
assertPositiveInteger(config.epsilonDecayFrames);

snake-dqn/train.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ async function main() {
253253
replayBufferSize: args.replayBufferSize,
254254
epsilonInit: args.epsilonInit,
255255
epsilonFinal: args.epsilonFinal,
256-
epsilonDecayFrames: args.epsilonDecayFrames
256+
epsilonDecayFrames: args.epsilonDecayFrames,
257+
learningRate: args.learningRate
257258
});
258259

259260
await train(

0 commit comments

Comments
 (0)