def compute_error(x, y, p):
    yfit = np.polyval(p, x)
    return np.sqrt(np.mean((yfit - y) ** 2))


#------------------------------------------------------------
# Plot linear regression example
dataset/ETHPy150Open astroML/sklearn_tutorial/examples/plot_bias_variance_examples.py/compute_error/swapped operands of `-`