Long-Tailed-Recognition.pytorch icon indicating copy to clipboard operation
Long-Tailed-Recognition.pytorch copied to clipboard

关于do(X=x)

Open sunxia233 opened this issue 4 years ago • 1 comments

感谢您的工作,极大的开拓了我的眼界。我想请问一下,您论文中的do(X=x)操作,去除了M对X的影响,我不是很理解是怎么做到的,看了您的代码也没有很理清头绪,想请问您,这部分的代码是在哪里实现的呢,期待您的回复,感谢。

sunxia233 avatar Oct 31 '20 14:10 sunxia233

我重新看了一下intervention和do运算,为了消除M对X的影响,这里是考虑头部类别和尾部类别数量不均衡的情况,因此是以控制变量的思想使用ClassAwaresampler的让尾部数据和头部数据采样一样多的次数是这样把。。

sunxia233 avatar Nov 01 '20 09:11 sunxia233