Esempio n. 1
0
func (h *HiddenLayer) ForwardBatch(input [][]float64) [][]float64 {
	predicted := make([][]float64, len(input))
	for i := range input {
		predicted[i] = nnet.Forward(input[i], h.W, h.B)
	}
	return predicted
}
Esempio n. 2
0
// Forward prop
func (h *HiddenLayer) Forward(input []float64) []float64 {
	return nnet.Forward(input, h.W, h.B)
}