// Initializes weights in the network for each layer in the network
// Hidden layers are assigned weights randomly bound by high and low values.
// Output node's weights are set to 1.
Initializes weights in the network for each layer in the network
Hidden layers are assigned weights randomly bound by high and low values.
Output node's weights are set to 1.
// Initializes weights in the network for each layer in the network // Hidden layers are assigned weights randomly bound by high and low values . // Output node ' s weights are set to 1 .
func (n *Network) RandomizeWeights(low, high float64, randSrc rand.Source) {
	rnd := rand.New(randSrc)
	for _, layer := range n.Layers {
		randomizeWeights(layer.Nodes, low, high, rnd)
	}
}
func ( n * Network ) RandomizeWeights ( low , high float64 , randSrc rand . Source ) { rnd := rand . New ( randSrc ) for _ , layer := range n . Layers { randomizeWeights ( layer . Nodes , low , high , rnd ) } }
Initializes weights in the network for each layer in the network
Hidden layers are assigned weights randomly bound by high and low values.
Initializes weights in the network for each layer in the network Hidden layers are assigned weights randomly bound by high and low values .