Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/tensorflow/tfjs-examples
/ average
Method
average
snake-dqn/train.js:44–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
}
43
44
average() {
45
return
this.buffer.reduce((x, prev) => x + prev) / this.buffer.length;
46
}
47
}
48
49
/**
Callers
1
train
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected