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)) * len(y_pred) / 1.

#------------------------------------------------------------
# load data and compute colors
dataset/ETHPy150Open astroML/sklearn_tutorial/doc/skeletons/exercise_02.py/compute_outlier_fraction/swapped operands of `/`