main forward pass
function forward_pass(X, Y) do
    foreach x in X do
         y_predicted = network output
         error = |y_predicted - Y|
    end
    return error
end