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

no space filling designs for low dimensions #337

Closed
topepo opened this issue Jul 18, 2024 · 0 comments · Fixed by #338
Closed

no space filling designs for low dimensions #337

topepo opened this issue Jul 18, 2024 · 0 comments · Fixed by #338
Labels
bug an unexpected problem or unintended behavior

Comments

@topepo
Copy link
Member

topepo commented Jul 18, 2024

From tidymodels/tune#919

library(dials)
#> Loading required package: scales

grid_space_filling(parameters(neighbors()), size = 1)
#> Error in Distance[i, k]: subscript out of bounds
grid_space_filling(parameters(neighbors(), mixture()), size = 1)
#> Error in DiceDesign::dmaxDesign(n = size, dimension = length(params), : Warning : the number of points is lower than the dimension.

# but: 

grid_space_filling(parameters(neighbors()), size = 1, type = "latin_hypercube")
#> # A tibble: 1 × 1
#>   neighbors
#>       <int>
#> 1         3
grid_space_filling(parameters(neighbors(), mixture()), size = 1, type = "latin_hypercube")
#> # A tibble: 1 × 2
#>   neighbors mixture
#>       <int>   <dbl>
#> 1         1   0.973

Created on 2024-07-18 with reprex v2.1.0

@topepo topepo added the bug an unexpected problem or unintended behavior label Jul 18, 2024
topepo pushed a commit that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant