StephanSeifert / SurrogateMinimalDepth

This package is archived and further developed under the name RFSurrogates. In this R-package functions are provided to select important variables and to investigate variable relations using surrogate variables.
https://github.com/AGSeifert/RFSurrogates
11 stars 0 forks source link

Issues running example in readme #12

Closed gavin-s-smith closed 4 years ago

gavin-s-smith commented 4 years ago

There seems to be an issue with the current code. I've had it working before, but on new installs I get the following error for the example code when computing the MD:

RuntimeError: Error in if (is.na(depth.tree[node["splitvariable"]])) { : 
  argument is of length zero

When calculating the SMD the error is a segfault.

These errors can be seen in a clean Google Collaboratory instance here: https://colab.research.google.com/drive/1PbERDHmwDtTQstsbLcgPPT_NgcmGPz-_ The instance is running: R version 3.6.3

StephanSeifert commented 4 years ago

Sorry for the late response. This problem occured because of the new version of ranger and changes that were done on the way the trees are saved. I adapted SMD (already in April) and the problem should be fixed.