How to assign a weight for classifiers when using weighted majority voting? I am trying to apply weighted majority voting on an ensemble as a combiner method. I read different papers and articles, however, I am still a bit lost on:

How the weighted majority voting works

How to assign a weight for every ensemble base classifiers when using weighted majority voting.
You can test each base classifier on a hold-out dataset and come up with a performance metric say accuracy for each model. You can then use each model's accuracy as a weight when combining predictions in the ensemble.
Here is a useful article.