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

new warning coming from xrf::xrf() #81

Open
EmilHvitfeldt opened this issue Apr 9, 2024 · 2 comments
Open

new warning coming from xrf::xrf() #81

EmilHvitfeldt opened this issue Apr 9, 2024 · 2 comments
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day upkeep maintenance, infrastructure, and similar

Comments

@EmilHvitfeldt
Copy link
Member

Happens in test-rule-fit-binomial.R, test-rule-fit-multinomial.R, and test-rule-fit-regression.R.

library(rules)
#> Loading required package: parsnip

data("ad_data", package = "modeldata")

ad_mod  <- ad_data %>% 
  dplyr::slice(-(1:10)) %>% 
  dplyr::select(Class, Genotype, p_tau, MMP10)

set.seed(4526)
rf_fit_exp <-
  xrf::xrf(
    Class ~ .,
    data = ad_mod,
    family = "binomial",
    xgb_control = list(nrounds = 3, min_child_weight = 3, penalty = 1),
    verbose = 0
  )
#> [16:33:02] WARNING: src/learner.cc:767: 
#> Parameters: { "penalty" } are not used.

Created on 2024-04-09 with reprex v2.1.0

@EmilHvitfeldt EmilHvitfeldt added the upkeep maintenance, infrastructure, and similar label Apr 9, 2024
@topepo
Copy link
Member

topepo commented Apr 25, 2024

That's not an argument to xgb.train(). I'll look at those test files.

@topepo
Copy link
Member

topepo commented Apr 25, 2024

Those should not be arguments in the test files. The lines below them (with predict()) specify the penalty value. I'll update.

@topepo topepo added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day upkeep maintenance, infrastructure, and similar
Projects
None yet
Development

No branches or pull requests

2 participants