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

embed:::tunable.step_umap does not include target_weight in tunable params #222

Closed
diegoperoni opened this issue May 28, 2024 · 1 comment
Labels
bug an unexpected problem or unintended behavior tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day

Comments

@diegoperoni
Copy link

The problem

I think you must include target_weight in tunable function of step_umap as follows:

Reproducible example

tunable.step_umap = function (x, ...) {
tibble::tibble(
  name = c("num_comp", "neighbors", "min_dist", "learn_rate", "epochs", "target_weight"), 
  call_info = list(
    list(pkg = "dials", fun = "num_comp", range = c(1, 10)), 
    list(pkg = "dials", fun = "neighbors", range = c(5, 200)), 
    list(pkg = "dials", fun = "min_dist", range = c(-4, -0.69897)), 
    list(pkg = "dials", fun = "learn_rate"), 
    list(pkg = "dials", fun = "epochs", range = c(100, 700)),
    list(pkg = "dials", fun = "target_weight", range = c(0, 1))), 
  source = "recipe", component = "step_umap", component_id = x$id)
}
@EmilHvitfeldt EmilHvitfeldt added the bug an unexpected problem or unintended behavior label May 28, 2024
@EmilHvitfeldt
Copy link
Member

EmilHvitfeldt commented May 28, 2024

this is correct! nice find!

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 tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day
Projects
None yet
Development

No branches or pull requests

3 participants