Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SigmoidDerivative ¶
Types ¶
type NeuralNetwork ¶
type NeuralNetwork struct {
// contains filtered or unexported fields
}
NeuralNetwork structure
func NewNeuralNetwork ¶
func NewNeuralNetwork(structure []int) *NeuralNetwork
Initialize the network with the number of neurons in each layer
func (*NeuralNetwork) BackPropagate ¶
func (nn *NeuralNetwork) BackPropagate(inputs []float64, expected []float64, learnRate float64)
Backpropagation and weight update
func (*NeuralNetwork) Forward ¶
func (nn *NeuralNetwork) Forward(inputs []float64) []float64
Forward pass for the network
Click to show internal directories.
Click to hide internal directories.