def accuracy(result, truth):
    ret =  []
    for r, t in zip(result, truth):
        ret.append(1 if r in t else 0)
    return np.array(ret)
dataset/ETHPy150Open facebookresearch/pysparnn/examples/pysparnn_utils.py/accuracy/swapped operands of `in`