def get_instance(test=False):
ge_fail, link_fail = random_fail(G_E)
path_chg = path_changed(G_E, ge_fail, G_OBS)
return link_fail, path_chg, ge_fail
# img, _x = gen_crack()
# img = gaussian_filter(img, 1.0)
# return img, _x
# a trace is named tuple
# (Img, S, Os)
# where Img is the black/white image
# where S is the hidden hypothesis (i.e. label of the img)
# Os is a set of Observations which is (qry_pt, label)
data.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录