def dog_out(fo, bp, do):
    tt = dict(
        ttt=0.99,
        tft=0.9,
        ftt=0.97,
        fft=0.3)   # Note typo in article!
    key = make_key(fo, bp, do)
    if key in tt:
        return tt[key]
    key = make_key(fo, bp, not do)
    return 1 - tt[key]
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/examples/bbns/family_out_problem.py/dog_out/original