Norm - emer/etable GitHub Wiki
The norm
package has misc helpful methods for computing norms of vectors and normalizing them.
It operates on raw slices of []float32
or []float64
for maximum generality, and skips over NaN values (missing data).
- Docs: norm
Example code
hc := dt.ColByName("Hidden").(*etensor.Float64)
norm.Binarize64(hc.Values, .5, 1, 0)