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

Function normalizeTensor

boston-housing/normalization.js:48–50  ·  view source on GitHub ↗
(data, dataMean, dataStd)

Source from the content-addressed store, hash-verified

46 * normalized to have zero mean and unit standard deviation.
47 */
48export function normalizeTensor(data, dataMean, dataStd) {
49 return data.sub(dataMean).div(dataStd);
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected