Closed alessiasarica closed 8 months ago
I solved simply adding cv="prefit"
cqr = MapieQuantileRegressor(estimator=models_rfqr, alpha=alpha_q, cv="prefit")
cqr.fit(X_calib, y_calib)
Hey @alessiasarica, Indeed, you can use it in this way. If you wish to perform the split inside of MAPIE, I refer you back to this issue #199. Thank you!
Hi guys, I'm trying to fit a MapieQuantileRegressor with RandomForestQuantileRegressor from sklearn_quantile. Please, consider that I'm a researcher of Applied ML on Neuroscience, not a programmer.
In detail:
I created a list with the three models to give it to MapieQuantileRegressor
I fitted the MapieQuantileRegressor and I have: ValueError: Invalid estimator. Please provide a regressor with fit and predict methods.
cqr.fit(X_calib, y_calib)
I updated the quantile_estimator_params:
Is there a problem of compatibility between MAPIE and sklearn_quantile?
Thanks, Alessia