// Initializes the weights to random values bounded by the high and low range.
Initializes the weights to random values bounded by the high and low range.
// Initializes the weights to random values bounded by the high and low range .
func randomizeWeights(nodes []*Node, low, high float64, rnd *rand.Rand) {
	rng := high - low
	for _, node := range nodes {
		for i := 0; i < len(node.Weights); i++ {
			node.Weights[i] = ((rnd.Float64()) * rng) - math.Abs(low)
		}
	}
}
func randomizeWeights ( nodes [ ] * Node , low , high float64 , rnd * rand . Rand ) { rng := high - low for _ , node := range nodes { for i := 0 ; i < len ( node . Weights ) ; i ++ { node . Weights [ i ] = ( ( rnd . Float64 ( ) ) * rng ) - math . Abs ( low ) } } }
Initializes the weights to random values bounded by the high and low range.
Initializes the weights to random values bounded by the high and low range .
// Convert [0,1) range to low,high range for weights