Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tensorflow/tfjs-examples
/ reset
Method
reset
snake-dqn/agent.js:69–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
67
}
68
69
reset() {
70
this.cumulativeReward_ = 0;
71
this.fruitsEaten_ = 0;
72
this.game.reset();
73
}
74
75
/**
76
* Play one step of the game.
Callers
2
constructor
Method · 0.95
playStep
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected