

def hear_bark(do, hb):
    tt = dict(tt=0.7, ft=0.01)
    key = make_key(do, hb)
    if (hb in tt):
        return tt[key]
    key = make_key(do, (not hb))
    return (1 - tt[key])

dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/examples/bbns/family_out_problem.py hear_bark/VarMisuse@36/43 `key`->`hb`