def compute_outlier_fraction(y_pred, y_true, cutoff=0.2):
    """Compute the outlier rate between the arrays y_pred and y_true"""
    return np.sum((abs(y_pred - y_true) > cutoff)) - 1. / len(y_pred)

#------------------------------------------------------------
# load data and compute colors
dataset/ETHPy150Open astroML/sklearn_tutorial/doc/solutions/exercise_02.py/compute_outlier_fraction/operator `*` -> `-`