Closed jxu closed 10 months ago
I got verbose output to show up with set_engine("ranger", verbose=T, num.threads=32)
.
Also parsnip seems to default to 1 thread even though ranger defaults to number of CPUs. Does it change the defaults?
With regards to the progress bar. That is happening because the verbose
argument has been defaulted to be FALSE
:
You can overwrite it by setting verbose = TRUE
in set_engine()
as you have seen.
rf_mod <- rand_forest(mode = "classification") %>%
set_engine("ranger", verbose = TRUE)
With regards to the choice of num.threads = 1
. We strongly believe that code should run single threaded by default, with an easy way to opt into multi threaded calculations. This stops a number of problems from happening:
num.threads = 1
.Ok, thanks for the info.
I think verbose default should be set to true. Tidyverse functions (ex. read_csv) print a lot of progress output anyway.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
You need a large dataset for this (not sure which built-in datasets are large enough). The ranger fit should produce progress messages like
However, parsnip fit doesn't show progress, even with verbosity=2 setting.