def vanilla_grad_desc(para, grad_para, lr):
    """ Update function for the vanilla gradient descent: w = w - learningRate * grad_w

    :param para: Parameter to be updated
    :param grad_para: Gradient at the parameter
    :param lr: learning rate
    :return:
    """
    return para - lr * grad_para