Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

统计神经元是否激活 #9

Closed
zhangxyyutao opened this issue Apr 19, 2023 · 1 comment
Closed

统计神经元是否激活 #9

zhangxyyutao opened this issue Apr 19, 2023 · 1 comment

Comments

@zhangxyyutao
Copy link

统计神经元是否激活的脚本有吗?另外,只统计训练数据作为输入时的神经元激活与否吗?不需要统计其他非训练集中的数据吗?

@zzy14
Copy link
Member

zzy14 commented Jul 11, 2023

统计神经元激活比较简单,您可以按照需求自己实现,一个简单的例子,可以在这一行后加一行统计hidden_states中0的比例。统计的数据只要具有代表性就可以,在我们的实验里选择了训练集的数据,开发集或者测试集中模型的行为按照我们的经验也是类似的。

@zzy14 zzy14 closed this as completed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants