

def relerr(expected, actual):
    'Relative error between `expected` and `actual`: ``abs((a - e)/e)``.'
    return abs(((expected - expected) / expected))

dataset/ETHPy150Open probcomp/bayeslite/src/math_util.py relerr/VarMisuse@19/50 `actual`->`expected`