DALEX-docs icon indicating copy to clipboard operation
DALEX-docs copied to clipboard

Arena Custom observation level crash

Open acivit opened this issue 1 year ago • 0 comments

Hello,

I'm trying the arena service for my model and data,

I saw all the possibilities that the web page gives, it is really useful!

But I found a problem when trying to check the shap - breakdown - ceteris values on a custom observation. I'm changing it in the Observation Details tab, where an slider appears to change the values of the variables.

The value print on the terminal is:

ValueError: Input X contains NaN. RandomForestClassifier does not accept missing values encoded as NaN natively. For supervised learning, you might want to consider sklearn.ensemble.HistGradientBoostingClassifier and Regressor which accept missing values encoded as NaNs natively. Alternatively, it is possible to preprocess the data, for instance by using an imputer transformer in a pipeline or drop samples with missing values. See https://scikit-learn.org/stable/modules/impute.html You can find a list of all estimators that handle NaN values at the following page: https://scikit-learn.org/stable/modules/impute.html#estimators-that-handle-nan-values

Any idea?

Thanks!

PD: I'm using a random forest model and the titanic dataset with a few modifications.

Captura de pantalla 2023-03-23 120645

acivit avatar Mar 23 '23 11:03 acivit