Ensemble two or three models in pytorch

I want to study about ensemble in pytorch for my project which using efficient and resnet. But I dont know how to start with it? I also search for information on google. Probably my keywords are not good to have good document. Anyone know? Thank you so much.

This post and the entire thread might be helpful for you. :slight_smile:

1 Like

Sorry, I’m late. I just have read the post. Amazing! The stacking ensemble improved my model very much. Thank you.
Sorry, 1 question. If I have 2 different inputs, what should I do?

You can pass both inputs to the forward method of the main model and use the different inputs where needed.

1 Like

Thank you so much, will try. Hopefully, you will support me next problem