## Description

Fit trains the neural network on the given fixed datagrid.

Training stops when the mean-squared error acheived is less than the Convergence value, or when back-propagation has occured more times than the value set by MaxIterations.

## Examples

net := NewMultiLayerNet(make([]int, 0)) net.MaxIterations = 0 net.Fit(XORData) Convey("The network should be the right size...", func() { So(net.network.size, ShouldEqual, 3)

net := NewMultiLayerNet([]int{3, 2}) net.MaxIterations = 0 net.Fit(XORData) Convey("The network should be the right size...", func() { So(net.network.size, ShouldEqual, 8)

net.LearningRate = 0.9 net.MaxIterations = 0 net.Fit(XORData) Convey("The network should be the right size...", func() {

## Fit is referenced in 1 repository

**github.com/sjwhitworth/golearn**

- 4 references in neural/layered_test.go