main backward pass
function backpropagation(network, error, eta)do
    foreach layer in network do
         gradient(error, layer) = partial derivative of error
         layer.weights = layer.weights - eta*gradient
    end
    return network
end