Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use grid_space_filling() instead of grid_latin_hypercube() #919

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

topepo
Copy link
Member

@topepo topepo commented Jul 18, 2024

Depends on dev dials

@topepo topepo marked this pull request as ready for review July 18, 2024 13:44
@topepo topepo requested a review from simonpcouch July 18, 2024 13:44
@@ -632,7 +632,7 @@ fit_gp <- function(dat, pset, metric, eval_time = NULL, control, ...) {

pred_gp <- function(object, pset, size = 5000, current = NULL, control) {
pred_grid <-
dials::grid_latin_hypercube(pset, size = size) %>%
dials::grid_space_filling(pset, size = size, type = "latin_hypercube") %>%
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stuck with a LHD here because the new designs take a really long time to compute a really large grid (5,000 points).

NEWS.md Outdated Show resolved Hide resolved
Copy link
Contributor

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Groovy🏄

7 <split [29/3]> Fold07 <tibble [6 x 5]> <tibble [0 x 4]>
8 <split [29/3]> Fold08 <tibble [6 x 5]> <tibble [0 x 4]>
9 <split [29/3]> Fold09 <tibble [6 x 5]> <tibble [0 x 4]>
10 <split [29/3]> Fold10 <tibble [6 x 5]> <tibble [0 x 4]>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that this snap is changing. What's the explanation here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "6" is because we have three standard metrics (added brier) but also different due to different initial grids.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that we have 3 default classification metrics now, but why wouldn't that snapped have failed before this PR? What do the grids have to do with this change?

NEWS.md Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
tests/testthat/test-autoplot.R Show resolved Hide resolved
@simonpcouch simonpcouch merged commit 72ca7e2 into main Aug 2, 2024
9 checks passed
@simonpcouch simonpcouch deleted the space-filling branch August 2, 2024 18:59
Copy link

This pull request 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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants