MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / normalize

Function normalize

snake-dqn/snake_graphics.js:146–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 const max = Math.max(...scores);
145
146 const normalize = q => (q - min) / (max - min);
147 return {
148 qWNormalized: qW == null ? qW : normalize(qW),
149 qNNormalized: qN == null ? qN : normalize(qN),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected