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

Function normalizeVector

website-phishing/utils.js:122–124  ·  view source on GitHub ↗
(vector, vectorMean, vectorStddev)

Source from the content-addressed store, hash-verified

120 * @returns {Array} Normalized vector.
121 */
122const normalizeVector = (vector, vectorMean, vectorStddev) => {
123 return vector.map(x => (x - vectorMean) / vectorStddev);
124};
125
126/**
127 * Normalizes the dataset

Callers 1

normalizeDatasetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected