persona
persona copied to clipboard
关于evaler
直接运行时,遇到问题
ValueError: ('The preds
and target
should have the same shape,', ' got preds
with shape=torch.Size([11, 16]) and target
with shape=torch.Size([11, 15]).')
出错位置 f1 = metrics.f1_score(pred_padded.T.to('cpu'), target.T.to('cpu'))
@Fang-git0 不好意思,刚看到你的问题。 现在各个依赖类库都升级很快,本代码库已经两年多没有维护,可能出现各种不兼容;另外聊天AI的研究发展更快,本代码库方法早已过时,所以我不建议你再用本代码库,不如找一些最近发布的相关论文和代码研究更合适。