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

请教关于K-Shot Reweighting部分的问题 #52

Open
HanziGao opened this issue Apr 26, 2023 · 1 comment
Open

请教关于K-Shot Reweighting部分的问题 #52

HanziGao opened this issue Apr 26, 2023 · 1 comment

Comments

@HanziGao
Copy link

非常感谢您的工作!
在生成K shot的权重weight_soft的过程中,您先将est_val_total进行了排序,再将排序结果输入到卷积层中,最后再按照索引取出卷积之后的结果,得到weight_soft。那为什么不将est_val_total克隆一下,把克隆的结果输入到卷积层后,将卷积的结果直接作为weight_soft。因为从结果上看这两种方法是一致的,那么进行两次排序的意义是什么呢?

@chunbolang
Copy link
Owner

您好,感谢对我们工作的关注!

两次排序的目的是为了避免样本顺序对模型推理产生影响。权重与顺序无关,与样本(集)有关。

祝好,

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