Questions tagged [iml]

28 questions
214
votes
4 answers

What are .iml files in Android Studio?

What are .iml files in Android Studio project? I read that it is configuration file for modules. I do not understand how it works, and can't I just use gradle scripts to integrate with external modules that you add to your project. Also, most of the…
shadox
  • 3,238
  • 4
  • 24
  • 38
4
votes
2 answers

errors in the tutorial (Interpreting Machine Learning Models with the iml Package)

I am getting the following error when trying to execute the following code in section entitled "Replication requirements" (https://uc-r.github.io/iml-pkg): #classification data df <- rsample::attrition %>% mutate_if(is.ordered, factor, ordered =…
tomek
  • 81
  • 5
2
votes
2 answers

Why do we have .iml file in flutter

After googling it I found this IML is a module file created by IntelliJ IDEA, an IDE used to develop Java applications. It stores information about a development module, which may be a Java, Plugin, Android, or Maven component; saves the module…
Manishyadav
  • 1,361
  • 1
  • 8
  • 26
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…
2
votes
1 answer

Value Error with Python's PyALE function for 2D ALE plots

I am creating Accumulated Local Effect plots using Python's PyALE function. I am using a RandomForestRegression function to build the model. I can create 1D ALE plots. However, I get a Value Error when I try to create a 2D ALE plot using the same…
2
votes
1 answer

error Predictor.new() function package IML in R

I am attempting to use package 'iml' in R to create plots of SHAP values from a GBM model created in H2O. When I try to create the R6 Predictor object using the Predictor.new() function I get an error that states Error : all(feature.class %in%…
Curtis
  • 449
  • 1
  • 4
  • 17
1
vote
0 answers

feature importance in mlr3 with iml for classification forests

I calculate feature importance for 2 different types of machine learning models (SVM and Classification Forest). I cannot post the data here, but I describe what I do: My (classification) task has about 400 observations of 70 variables. Some of them…
ds_col
  • 129
  • 10
1
vote
1 answer

How to achieve cross-platform Intellij IDEA `.iml` file with platform-dependent libraries?

While working across multiple OS, what is preferable way to use libraries in IDEA project? The .iml file has libraries from Maven listed, some platform dependent: ...
AgainPsychoX
  • 1,527
  • 1
  • 16
  • 20
1
vote
1 answer

Shapley values for glmnet using R's iml package

I'm unable to use the iml package in R to find shapley values for glmnet models. It seems like the problem might be related to the fact that glmnet() and predict.glmnet() expect matrices, while the x.interest argument in iml::Shapley$new() expects a…
1
vote
0 answers

Why does R studio not read R codes?

Several of the codes I wrote last month have become extremely large (2MB - 11MB) and are no longer readable. Does anybody know what happened? All of the codes used the iml package and possibly h2o This is what left of them:
user12938856
1
vote
0 answers

"iml" 2D Accumulated Local Effect (ALE) plot

I want to make a 2D Accumulated Local Effect (ALE) plot using R package iml Figure5.20: ALE plot for the 2nd-order effect of humidity and temperature on the predicted number of rented bikes.) I'm not sure even if I read the iml manual, can anyone…
tissue
  • 11
  • 4
1
vote
1 answer

R, iml, mlr. Feature Importance always returns 1 for every feature

I'm doing something with the mlr framework that causes FeatureImp to return 1 for every feature and I can't put my finger on it. Here's an exemple: library(caret) #> Carregando pacotes exigidos: lattice #> Carregando pacotes exigidos:…
Alberson Miranda
  • 1,248
  • 7
  • 25
1
vote
1 answer

No applicable method for 'predict' applied to an object of class "c('ksvm', 'vm')" for iml::Predictor in R

I have the following code segment in R, where I try to train a model based on SVM: library(base) library(caret) library(iml) library(tidyverse) dataset <-…
user9128740
1
vote
2 answers

How can I get the R IML FeatureImp() function to work?

I am trying to get the FeatureImp function from the IML package to work, but it keeps throwing an error. Below is an example from the diamonds dataset, on which I train a random forest…
0
votes
0 answers

What is causing iml's FeatureEffects to throw an error on a caret trained model?

I'm trying to use the iml package in R and I am getting an error from FeatureEffects$new that I cannot make sense of. I am training a random forest using caret, then I am squeezing the model into a Predictor object as required by iml. And finally…
MarkH
  • 122
  • 9
1
2