You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
由于在'cpu_texts = [clean_txt(tx.decode('utf-8')) for tx in cpu_texts]'这句时会报错str没有decode的方法,查询资料后感觉是python2和python3的区别,便把代码改成了'cpu_texts = [clean_txt(tx.encode('utf-8').decode('utf-8')) for tx in cpu_texts]';
由于预测出来的preds在后续处理中会报错:IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2),因此将‘preds = preds.squeeze(2)’这句代码删除了;
不知道是我修改的代码导致特征的维度发生了问题还是什么,模型训练过程中得到的accuracy一直为0,有没有大佬可以帮忙解答一下~感激不尽! https://imgtu.com/i/hy8weP
The text was updated successfully, but these errors were encountered:
使用作者的数据集源代码训练的,使用的环境配置为:python3.6+pytorch1.3
中间调了三个bug
不知道是我修改的代码导致特征的维度发生了问题还是什么,模型训练过程中得到的accuracy一直为0,有没有大佬可以帮忙解答一下~感激不尽!
https://imgtu.com/i/hy8weP
The text was updated successfully, but these errors were encountered: