Comments (6)
I think I have found the cause of this - I did not have kernlab
installed.
With a bit of debug()
-ing, I got to rs <- rlang::eval_tidy(code_path)
inside tune_grid_workflow()
.
There, code_path
evaluated to tune_mod_with_formula(rs, grid, object, perf, control)
, and debug()
of tune_mod_with_formula()
showed me errors due to kernlab
not being found.
Installing kernlab
has resolved the issue, and I can now reproduce the output in the article/vignette. This may be related to #44, although I'm very sorry that I'm not currently able to offer a solution to that issue, though.
from tune.
It's just been pointed out to me that kernlab
is in Suggests (as in #59), so maybe it needs to be moved to Imports if it's needed for tuning? (Or maybe I just need to be smarter about how I install stuff...)
from tune.
It's only needed for tuning models that need it, though. I can understand not making someone install xgboost, for example, if they don't actually need xgboost.
I think better error messages would solve this, as in #44. Just need to figure out how to get there :)
from tune.
Yeah that's fair. Pretty sure at least part of this issue is due to a pebkac.
@topepo you asked in #59 if we were using parallel processing. I wasn't explicitly asking for it, but as I was passing ctrl <- grid_control(verbose = FALSE)
to tune_grid()
and the default for allow_par
in grid_control()
is TRUE
, there's a chance that I was.
Either way, I think we've identified what was going wrong here, and it looks like #63 will resolve it.
from tune.
And having read the parallel section of the docs https://tidymodels.github.io/tune/articles/extras/optimizations.html#parallel-processing a bit more closely, I think the answer is: no, I'm not using parallel processing.
from tune.
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.
from tune.
Related Issues (20)
- change order of one GH release issue template HOT 1
- Tuning MLPs with h2o HOT 4
- int_pctl.tune_results fails with PSOCK HOT 2
- select_best() fails after tuning with manually defined grid_folds HOT 1
- `plan(multisession)` errors with `parallel_over = "everything"` HOT 4
- `collect_metrics` ignores case weights in calculating `concordance_survival` HOT 7
- Release tune 1.2.1 HOT 2
- pass only `labels(split)` to internal functions that just take `split` for its `labels()` HOT 1
- Nicer error when using `permutations()` resampling HOT 1
- GitHub tag `v1.2.1` reflects `main` at the time rather than the 1.2.1 CRAN release HOT 2
- failing GHA tests related to inner split HOT 2
- use better names for analysis/potato/assessment sets in `tune_grid_loop_iter()` HOT 1
- check `add_tailor(method)` against `method` automatically deduced from resamples
- predict on `assessment(split)` only once when post-processing HOT 1
- post-processor fitting likely needs a `.catch_and_log()`
- package has experimental lifecycle badge HOT 1
- route appropriate `split_args` through `last_fit()` HOT 1
- `.catch_and_log()` requires passing arguments through `...` by position rather than name
- refactor `predict_model()` so that it takes `data` rather than a `split` HOT 1
- `.gitignore` `revdep` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tune.