1
$\begingroup$

What aggregating method is used by BaggingClassifier and BaggingRegressor in sklearn? Do they use soft voting or hard voting or averaging? The sklearn docs don't seem to clearly specify it.

$\endgroup$

1 Answer 1

1
$\begingroup$

I figured it out myself. BaggingClassifier uses soft voting (averaging probabilities) if the base estimator has a predict_proba() method and hard voting otherwise. On the other hand, BaggingRegressor uses averaging. Makes sense.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.