Comments (4)
Thank you for the reprex—I can reproduce!
from tune.
I had suspected that this might be an issue with tune only, but looks like it only crops up when using finetune:
library(tidymodels)
library(discrim)
#>
#> Attaching package: 'discrim'
#> The following object is masked from 'package:dials':
#>
#> smoothness
library(future)
data(two_class_dat, package = "modeldata")
set.seed(1)
rs <- bootstraps(two_class_dat, times = 10)
rda_spec <-
discrim_regularized(frac_common_cov = tune(), frac_identity = tune()) %>%
set_engine("klaR")
grid <-
rda_spec %>%
extract_parameter_set_dials() %>%
grid_max_entropy(size = 20)
set.seed(4)
plan(multisession)
tune_grid(rda_spec, Class ~ ., resamples = rs, grid = grid)
#> # Tuning results
#> # Bootstrap sampling
#> # A tibble: 10 × 4
#> splits id .metrics .notes
#> <list> <chr> <list> <list>
#> 1 <split [791/296]> Bootstrap01 <tibble [60 × 6]> <tibble [0 × 3]>
#> 2 <split [791/289]> Bootstrap02 <tibble [60 × 6]> <tibble [0 × 3]>
#> 3 <split [791/294]> Bootstrap03 <tibble [60 × 6]> <tibble [0 × 3]>
#> 4 <split [791/284]> Bootstrap04 <tibble [60 × 6]> <tibble [0 × 3]>
#> 5 <split [791/305]> Bootstrap05 <tibble [60 × 6]> <tibble [0 × 3]>
#> 6 <split [791/291]> Bootstrap06 <tibble [60 × 6]> <tibble [0 × 3]>
#> 7 <split [791/295]> Bootstrap07 <tibble [60 × 6]> <tibble [0 × 3]>
#> 8 <split [791/295]> Bootstrap08 <tibble [60 × 6]> <tibble [0 × 3]>
#> 9 <split [791/287]> Bootstrap09 <tibble [60 × 6]> <tibble [0 × 3]>
#> 10 <split [791/304]> Bootstrap10 <tibble [60 × 6]> <tibble [0 × 3]>
Created on 2024-04-16 with reprex v2.1.0
from tune.
Ah, looks like parallel_over = "everything"
is the real kicker here:
library(tidymodels)
library(future)
plan(multisession)
set.seed(1)
grid_res <-
tune_grid(
logistic(engine = "glmnet", penalty = tune()),
Class ~ .,
resamples = bootstraps(two_class_dat, times = 10),
control = control_grid(parallel_over = "everything")
)
#> Error: object 'iteration' not found
Created on 2024-04-17 with reprex v2.1.0
Since I can replicate with tune only, will go ahead and transfer there.
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)
- 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
- better error when passing a preprocessor with a workflow HOT 1
- remove step_ns and similar from docs HOT 1
- Add a check_workflow_size argument to the control functions HOT 2
- Make Bayesian optimization more fault tolerant
- profile compute resources for different parallel backends
- add a function to debias resampling estimates
- use tidy style in "Introduction to tune" vignette HOT 1
- use tidy style in "Optimizations and parallel processing" vignette HOT 1
- use tidy style in "Acquisition functions" vignette HOT 1
- summarize control options with `verbose = TRUE`
- Use cli errors
- Getting started vignette uses deprecated functions HOT 1
- delayed logging when using parallel processing with future HOT 3
- reduce the object size by trimming the split elements HOT 1
- better error message for multivariate models
- workers error with custom metrics when using socket clusters
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.