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

Arena Custom observation level crash #139

Open
acivit opened this issue Mar 23, 2023 · 0 comments
Open

Arena Custom observation level crash #139

acivit opened this issue Mar 23, 2023 · 0 comments

Comments

@acivit
Copy link

acivit commented Mar 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant