@classmethod
def gradient(cls, y, y_target):
    """ Compute the gradient of Mean Squared Error (MSE) of the predicted
        example.

        :param y: the predicted output (a column vector).
        :param y_target: the target output (a column vector).
        :return: the gradient of the MSE (a column vector).
        """
    return y - y_target
