MondrianCP can't handle Pandas dataframe #526
Labels
Backlog
This is in the MAPIE team development backlog, yet to be prioritised.
Regression
Related to regression (excluding time series)
Describe the bug
When using the new MondrianCP class I'm unable to fit my estimator with a Pandas dataframe, while using the standard MapieRegressor this works fine. Since I'm using a sklearn pipeline that contains some column transformers that use the pandas column name, I can't transform my data into a numpy array first because then sklearn gives me an error when fitting the estimator.
To Reproduce
Below the code to reproduce my problem.
By changing the strategy to mondrian_numpy you can also reproduce the sklearn error I receive.
Expected behavior
Be able to use a Pandas dataframe as input data for MondrianCP class.
The text was updated successfully, but these errors were encountered: