Closed AlbertoAlmuinha closed 1 year ago
I encountered the same bug in step_select_vip
and step_select_forest
, and I might have found the reason it occurs.
If you look at tunable.step_select_infgain
:
https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_infgain.R#L243
The problem is the tibble creation - we need to add "cutoff" to this line.
As in: name = c("top_p", "threshold", "cutoff"),
Like I said, I had the same issue with multiple other step select functions that I wanted to use in workflows and I could fix it this way.
Those should be the specific issues ("cutoff" is missing in all of them):
https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_aov.R#L207 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_carscore.R#L234 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_forests.R#L248 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_infgain.R#L243 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_linear.R#L260 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_mrmr.R#L217 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_relief.R#L247 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_roc.R#L211 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_tree.R#L248 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_vip.R#L219 https://github.com/stevenpawley/colino/blob/6738db1ede81b5c6fa2e65bb1c5aef1c6456afab/R/step_select_xtab.R#L212
Any updates on this? I've added the "cutoff" to the function through trace(colino:::tunable.step_select_mrmr, edit=T) but it still returns the same tibble error
Any updates on this? I've added the "cutoff" to the function through trace(colino:::tunable.step_select_mrmr, edit=T) but it still returns the same tibble error
The way I changed the package was to download the whole git repository, change the lines in question and install the custom package with the new code with devtools. See here for a tutorial on how to install packages with devtools: https://kbroman.org/pkg_primer/pages/build.html
Any updates on this? I've added the "cutoff" to the function through trace(colino:::tunable.step_select_mrmr, edit=T) but it still returns the same tibble error
The way I changed the package was to download the whole git repository, change the lines in question and install the custom package with the new code with devtools. See here for a tutorial on how to install packages with devtools: https://kbroman.org/pkg_primer/pages/build.html
Perfect, it works now! That seemed to do the trick, thanks :)
Should be fixed by c2d46d0
Hi,
When I run the recipe I get the result without problem:
This code runs ok.
The problem comes when I use tune and workflowsets to tune the parameters of a model and immediately get an error:
If I comment out the
step_select_infgain
step and replace it with astep_select
where I select the variables that the other step would have given me, the process works without any problem.I get the feeling that there is something weird with
step_select_infgain
...Sorry for not sharing a reprex, the data I was using is private.