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
评论列表
文章目录