Closed PabloRMira closed 6 years ago
The documentation indicates this on page 5,
"kernel_width: The width of the exponential kernel that will be used to convert the distance to a similarity in case dist_fun != 'gower'."
But you are correct that the vignette is misleading for the provided example as it suggest that the default distance function is Euclidean while the documentation says it is Gower.
Thanks for pointing it out. This is an oversight after switching to gower
Hi Thomas
first of all, thank you very much for this great package!
I simply wanted to point out that the explanation given in your vignette (https://cran.r-project.org/web/packages/lime/vignettes/Understanding_lime.html) regarding the kernel_width option is misleading and the difference between the two results obtained by adjusting the kernel_width is just due to randomness. As I found out, this is because with the default dist_fun ("gower") the kernel and the kernel_width do not play a role at all for computing anything in the explain.data.frame function (https://github.com/thomasp85/lime/blob/master/R/dataframe.R).
To make my point clear, I simply used the code in your vignette setting a seed before the two explanations are computed (see the example below). As you can see, the difference in model_r2 is not there anymore, corroborating my supposition.
Best regards, Pablo
Created on 2018-09-10 by the reprex package (v0.2.0).