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

triplot() does not work in my case.. #23

Open
Nehagupta90 opened this issue Aug 20, 2021 · 5 comments
Open

triplot() does not work in my case.. #23

Nehagupta90 opened this issue Aug 20, 2021 · 5 comments

Comments

@Nehagupta90
Copy link

Hello everyone

I am using triplot library for feature selection but it give me error.. I simply train a model using mlr3 and create an explainer and then the following :

library(triplot)
model_triplot(explainer)

The error message is:

Error in hclust(as.dist(1 - abs(cor(data, method = cor_method))), method = clust_method) :
NA/NaN/Inf in foreign function call (arg 10)
In addition: Warning message:
In cor(data, method = cor_method) : the standard deviation is zero

@hbaniecki hbaniecki transferred this issue from ModelOriented/DALEX Aug 21, 2021
@hbaniecki
Copy link
Member

@Nehagupta90 there is an explain_mlr3() function in the DALEXtra package. Please try it out and (if it fails) provide a minimal reproducible example to debug this issue.

@Nehagupta90
Copy link
Author

Nehagupta90 commented Aug 21, 2021 via email

@Nehagupta90
Copy link
Author

Nehagupta90 commented Aug 28, 2021 via email

@p-schaefer
Copy link

p-schaefer commented Dec 1, 2021

@Nehagupta90 Did you ever resolve this problem? I'm having the same issue.

Edit: I think this has to do with NA's in the data. Being able to pass arguments to cor(use =x) here might help.

@Nehagupta90
Copy link
Author

Nehagupta90 commented Dec 1, 2021 via email

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

3 participants