(vector, vectorMean, vectorStddev)
| 93 | |
| 94 | // Normalize a vector by its mean and standard deviation. |
| 95 | function normalizeVector(vector, vectorMean, vectorStddev) { |
| 96 | return vector.map(x => (x - vectorMean) / vectorStddev); |
| 97 | } |
| 98 | |
| 99 | // Convert x-y data to normalized Tensors. |
| 100 | // |
no outgoing calls
no test coverage detected