Skip to content
Randall O'Reilly edited this page Sep 11, 2019 · 1 revision

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).

Example code

	hc := dt.ColByName("Hidden").(*etensor.Float64)
	norm.Binarize64(hc.Values, .5, 1, 0)
Clone this wiki locally