Questions tagged [dalex]
22 questions
8
votes
1 answer
Create SHAP plots for tidymodel objects
This question refers to Obtaining summary shap plot for catboost model with tidymodels in R. Given the comment below the question, the OP found a solution but did not share it with the community so far.
I want to analyze my tree ensembles fitted…

mugdi
- 365
- 5
- 17
2
votes
1 answer
How do I extract a model fit from a tidymodels workflowset?
I am trying to learn tidymodels and DALEXtra.... I have successfully built a set of models with workflow_map:
grid_results <-
all_workflows %>%
workflow_map(
seed = 1503,
resamples = the_folds,
grid = 100,
control =…

itsMeInMiami
- 2,324
- 1
- 13
- 34
2
votes
0 answers
SHAP values for Prophet / time series data
I would like to utilize shap values for multivariate time series data and models like prophet.
from prophet import Prophet
ph = Prophet()
for column in time_series_df.drop(columns = ['y', 'ds'], inplace = False).columns:
…

Bara
- 129
- 5
2
votes
1 answer
Why do DALEX and tidymodels provide different GOF?
I wonder why DALEX model_performance and collect_metrics do not provide the same accuracy. Do they use different measures or different methods? I've compiled the following example…

S Front
- 333
- 1
- 8
2
votes
1 answer
Overcoming compatibility issues with using iml from h2o models
I am unable to reproduce the only example I can find of using h2o with iml (https://www.r-bloggers.com/2018/08/iml-and-h2o-machine-learning-model-interpretability-and-feature-explanation/) as detailed here (Error when extracting variable importance…

user1809593
- 41
- 3
2
votes
0 answers
How to find the important variable for every prediction in R XGboost
I am applying xgboost to the below data set and getting prediction, I am also able to get the most important feature for the over all model, However I would also like to know for every prediction which are the most important features, I am able to…

Dexter1611
- 492
- 1
- 4
- 15
2
votes
0 answers
How to make tidymodels or workflow results work with DALEX explain?
I want to use modelStudio and for that I need to make explainer using DALEX::explain() that takes model object as an argument. I should, but I am not sure how to provide the entire reproducible example code with data here!
When I use the following…

Geet
- 2,515
- 2
- 19
- 42
1
vote
1 answer
tidymodels: loss_accuracy provides no variable importance results
Using the iris dataset, a knn-classifier was tuned with iterative search for multiple classification. However, using loss accuracy in DALEX::model_parts() for variable importance, provides empty results.
I would appreciate any ideas. Thank you so…

bioblackgeorge
- 45
- 6
1
vote
1 answer
DALEX and step_pca
I would like to look at the compound feature importance of the principal components with DALEX model_parts but I am also interested to what extent the results are driven by variation in a specific variable in this principal component. I can look at…

S Front
- 333
- 1
- 8
1
vote
0 answers
Factor Variable Importance (VIMP) with RandomForestSRC Package: cannot coerce to data.frame error
Good afternoon, all--thank you in advance for your help! I'm somewhat new to R, so my apologies if this is a trivial or otherwise inappropriate question.
TL;DR: I'm trying to determine Variable Importance (VIM) for factor variables with a random…

Drew Zinder
- 11
- 1
1
vote
1 answer
DALEX error when trying to explain iris random forest model
I want to create explanator with Dalex of RandomForest model, but when trying I got this error:
Error: $ operator is invalid for atomic vectors
Anyone knows how to solve this issue?
Here my code:
library(DALEX)
library(ranger)
model <-…

jff
- 300
- 3
- 14
1
vote
0 answers
Applying DALEX explain function to an xgboost model for what_if / centerisParibus analysis
I am having difficulty trying to apply what_if analysis to an xgboost model. I am able to run the what_if analysis for a randomForest model however it breaks when I try to run it for the xgboost model.
My question is, given the titanic dataset how…

user113156
- 6,761
- 5
- 35
- 81
0
votes
0 answers
How can i save to csv file about Variable importance using DALEX package, model_part() with python
enter image description here
I want to extract the feature importance using DALEX package, but i don't know how to export the results to save that results with format excel file
how should i do?
i did below method, but it didn't…
0
votes
0 answers
DALEX does not display plot in jupyter notebook (python)
I am using the trying to follow the DALEX tutorial for Python described here:
https://ema.drwhy.ai/UseCaseFIFA.html
My code does not have any errors, but when I run any dalex object .plot(), there is no plot, just a large patch of white space. Is…

potato_bagel
- 1
- 1
0
votes
0 answers
Different Partial Dependence Plot (PDP) depending on using either pdp-package or DALEX-package
I can't figure out why I'm having two different PDPs depending on whether I'm using pdp-package or DALEX-package.
I initially wanted to make PDPs using tidymodels in combination with pdp and DALEX, but neither combination seemed to work easily. Then…

PeRiKo
- 1
- 2