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

EnbPI in MAPIE #474

Closed
valeman opened this issue Jul 1, 2024 · 2 comments
Closed

EnbPI in MAPIE #474

valeman opened this issue Jul 1, 2024 · 2 comments
Labels
contributors Proposed by contributors. question Further information is requested

Comments

@valeman
Copy link

valeman commented Jul 1, 2024

What classes of estimators does EnbPI in MAPIE works with?

The tutorial mentions RandomForest, the EnbPI model as such as published in paper is not limited to bagging estimators and it can work with any model.

Is there a gap in implementation vs the model in the paper?

If so, it would be good to have EnbPI work with any regression model classes including boosted trees (CatBoost/XGBoost/LightGBM) and scikit-learn regressors.

@valeman valeman added the enhancement New feature or request label Jul 1, 2024
@thibaultcordier
Copy link
Collaborator

thibaultcordier commented Jul 1, 2024

MAPIE works for all sklearn-compatible estimator classes. To this end, EnbPI already works with any regression model classes including boosted trees (CatBoost/XGBoost/LightGBM) and scikit-learn regressors.

The time series tutorial (https://mapie.readthedocs.io/en/latest/examples_regression/4-tutorials/plot_ts-tutorial.html) mentions RandomForest as an illustration but is not restricted to this class. You can experiment by adapting line 158 of the tutorial with one of the estimators you have just mentioned.

from sklearn.linear_model import LinearRegression
model = LinearRegression()
# or
from sklearn.ensemble import AdaBoostRegressor
model = AdaBoostRegressor()
# or
from sklearn.ensemble import GradientBoostingRegressor
model = GradientBoostingRegressor()
# or
import lightgbm as lgb
model = lgb.sklearn.LGBMRegressor()
# or
from xgboost import XGBRegressor
model = XGBRegressor()

In conclusion, MAPIE is not limited to bagging estimators, it can work with any model and there are no gap in the implementation compared with the model presented in the article.

@thibaultcordier thibaultcordier added question Further information is requested contributors Proposed by contributors. and removed enhancement New feature or request labels Jul 2, 2024
@valeman
Copy link
Author

valeman commented Jul 3, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributors Proposed by contributors. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants