Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tensorflow/tfjs-examples
/ append
Method
append
snake-dqn/train.js:39–42 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
37
}
38
39
append(x) {
40
this.buffer.shift();
41
this.buffer.push(x);
42
}
43
44
average() {
45
return
this.buffer.reduce((x, prev) => x + prev) / this.buffer.length;
Callers
8
train
Function · 0.95
replay_memory_test.js
File · 0.45
playStep
Method · 0.45
write_mnist_examples_to_json_file
Function · 0.45
initVisualization
Function · 0.45
read_data
Function · 0.45
renderLatentSpace
Function · 0.45
load
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected