Training Algorithm
function train(X, Y) do
    network = init()
    n_epochs = N
    eta = learning rate
    for i = 1:N do
```

```
error = forward_pass(X, Y)
         network = backpropagation(network, error, eta)
    end
    return network
end
```