do_test.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:code-uai16 作者: thanhan 项目源码 文件源码
def main_sim_multi(cor = 0.75, rs = 0.5):
    """
    multitask simulated data
    """
    dic1, rel1, turk1, dic2, rel2, turk2 = simulate_multitask(cor)
    lc1 = crowd_model.labels_collection(turk1, rel1)
    lc2 = crowd_model.labels_collection(turk2, rel2)

    for rs in [0.1, 0.2, 0.3, 0.4, 0.5]:
        res = main_multitask([lc1, lc2], [dic1, dic2], rs) 
        import pickle
        f = open('simult_' + str(cor) + '.pkl', 'w')
        pickle.dump(res, f)
        f.close()




################################################
################################################
# multitask on simulated data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号