In my case i get Test score BalancedBoostingC
vs Test score HistogramGradientBoostingC
0.588 vs 0.579
from imblearn.ensemble import BalancedBaggingClassifier
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingClassifier
from sklearn.model_selection import cross_validate
balanced_baggingc = BalancedBaggingClassifier(
base_estimator=HistGradientBoostingClassifier(
early_stopping=True, random_state=0 ),
random_state=0)
cv_results_bbc = cross_validate(
balanced_baggingc, data, target,
scoring="balanced_accuracy",
cv=10,
n_jobs=2,
)
When can we say if one of them is better than other?
From how many decimal places?