OneNet icon indicating copy to clipboard operation
OneNet copied to clipboard

upload files

Open zhangtt2024 opened this issue 1 year ago • 1 comments

Your work is excellent and very helpful to me. Can you upload the MOE and Average files in the ensembling method?

zhangtt2024 avatar Apr 09 '24 01:04 zhangtt2024

For the average method, you can simply aggregate the results from different experts and compute the average.

Regarding the MOE (Mixture of Experts), the implementation is akin to gating. The main difference lies in the calculation of the gating weights. For gating, it's calculated as follows: $( h = \mathbf{W}_{\text{Concat}}([\tilde{y}_1, \tilde{y}_2]) + \mathbf{b} ) with ( w_1, w_2 = \text{softmax}(h) ).$ Whereas for MOE, it's computed as $( h = \mathbf{W} \mathbf{x} + \mathbf{b} ) with ( w_1, w_2 = \text{softmax}(h) ).$

yfzhang114 avatar Apr 09 '24 04:04 yfzhang114