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

How to stack embedding and pass the gradients? #108

Open
arita37 opened this issue Feb 23, 2022 · 8 comments
Open

How to stack embedding and pass the gradients? #108

arita37 opened this issue Feb 23, 2022 · 8 comments

Comments

@arita37
Copy link

arita37 commented Feb 23, 2022

Have a 2 neural nets N1, N2,
want to stack their output embedding layer.

How to do this ?

@xuyxu
Copy link
Member

xuyxu commented Feb 23, 2022

Suppose the output of N1 and N2 on a sample x is N1(x) and N2(x) separately, what you want is to concatenate their output (i.e., [N1(x), N2(x)]), and pass it to downstream layers, right?

@arita37
Copy link
Author

arita37 commented Feb 23, 2022 via email

@xuyxu
Copy link
Member

xuyxu commented Feb 23, 2022

Hi, if you are going to take the mean of outputs from all base estimators, the fusion ensemble is exactly what you want.

As to the concatenation, it is somehow weird since all base estimators in the ensemble are doing the same thing, making concatenating their outputs kind of useless. Is there any paper or technical report demonstrating the effectivenss of concatenating outputs of base estimators?

@arita37
Copy link
Author

arita37 commented Feb 24, 2022 via email

@arita37
Copy link
Author

arita37 commented Feb 24, 2022 via email

@xuyxu
Copy link
Member

xuyxu commented Feb 24, 2022

Thanks for your kind explanation. Heterogeneous ensemble is not supported yet, since we have not come up with a succinct way on setting different optimizers for different base estimators 😢.

@arita37
Copy link
Author

arita37 commented Feb 24, 2022 via email

@xuyxu
Copy link
Member

xuyxu commented Feb 27, 2022

Kind of busy these days, will appreciate a PR very much ;-)

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