File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export class SnakeGameAgent {
37
37
* - `epsilonDecayFrames` {number} The # of frames over which the value of
38
38
* `epsilon` decreases from `episloInit` to `epsilonFinal`, via a linear
39
39
* schedule.
40
+ * - `learningRate` {number} The learning rate to use during training.
40
41
*/
41
42
constructor ( game , config ) {
42
43
assertPositiveInteger ( config . epsilonDecayFrames ) ;
Original file line number Diff line number Diff line change @@ -253,7 +253,8 @@ async function main() {
253
253
replayBufferSize : args . replayBufferSize ,
254
254
epsilonInit : args . epsilonInit ,
255
255
epsilonFinal : args . epsilonFinal ,
256
- epsilonDecayFrames : args . epsilonDecayFrames
256
+ epsilonDecayFrames : args . epsilonDecayFrames ,
257
+ learningRate : args . learningRate
257
258
} ) ;
258
259
259
260
await train (
You can’t perform that action at this time.
0 commit comments