def error_function(w1, w2, b, y, t):
    """
        @w1, @w2 : Neuron weight associated with each input
        @b : Neuron bias
        @y : neuron prediction
        @t : true target value
        Error function
    """
    return (1./2.) * (t - y)**2