摘要: 1、使用很小的学习率进行学习,且: for l in bert_model.layers: l.trainable = True 2、由于bert模型巨大,我们每次训练只能取batch=4进行训练,而训练4个epoch之后,可以freeze bert模型,单独训练softmax for l in b 阅读全文
posted @ 2019-11-18 14:01 yjy888 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: precision_dic = {51: 0.9375, 25: 0.9305555555555556, -1: 0.7619047619047619, 29: 0.9473684210526315, 6: 0.8108108108108109} precision_dic.items 是一个lis 阅读全文
posted @ 2019-11-18 13:57 yjy888 阅读(181) 评论(0) 推荐(0) 编辑