File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments