Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

训练迭代30次,就train_acc 就100%了

Open kunshou123 opened this issue 3 years ago • 8 comments

kunshou123 avatar Jun 21 '21 09:06 kunshou123

数据的问题吧!我改用自己的数据第二次就100%了

cfy42584125 avatar Jul 02 '21 01:07 cfy42584125

已经解决了,数据在训练时要shuffle一下,打乱标签顺序

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月2日(星期五) 上午9:30 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93)

数据的问题吧!我改用自己的数据第二次就100%了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

kunshou123 avatar Jul 02 '21 01:07 kunshou123

已经解决了,数据在训练时要shuffle一下,打乱标签顺序 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月2日(星期五) 上午9:30 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93) 数据的问题吧!我改用自己的数据第二次就100%了 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shuffle是用的random.shuffle吗

cfy42584125 avatar Jul 14 '21 05:07 cfy42584125

是的

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月14日(星期三) 中午1:44 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93)

已经解决了,数据在训练时要shuffle一下,打乱标签顺序 … ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月2日(星期五) 上午9:30 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93) 数据的问题吧!我改用自己的数据第二次就100%了 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shuffle是用的random.shuffle吗

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

kunshou123 avatar Jul 14 '21 05:07 kunshou123

是的 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月14日(星期三) 中午1:44 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93) 已经解决了,数据在训练时要shuffle一下,打乱标签顺序 … ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月2日(星期五) 上午9:30 收件人: @.>; 抄送: "结€┏ @.>; @.>; 主题: Re: [649453932/Bert-Chinese-Text-Classification-Pytorch] 训练迭代30次,就train_acc 就100%了 (#93) 数据的问题吧!我改用自己的数据第二次就100%了 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. shuffle是用的random.shuffle吗 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

你好,random.shuffle加在哪里呢

Grin-ZW avatar Aug 16 '21 15:08 Grin-ZW

有没有过拟合啊

ChasionNo1 avatar Sep 03 '21 07:09 ChasionNo1

我感觉我是过拟合吧,要么全对,要么全错,然后train,dev,test精度都贼高,还不错。但换成自己文本去predict时,效果一点不好呢。想问下大家有遇到过这种情况吗

minizhangyaoyao avatar Dec 18 '23 05:12 minizhangyaoyao

怎么解决的

shuaihutianxie avatar Dec 19 '23 05:12 shuaihutianxie