Skip to content

Commit

Permalink
fix: xgboost param test (#291)
Browse files Browse the repository at this point in the history
* fix: xgboost param test

* fix: classig
  • Loading branch information
be-marc authored Apr 9, 2024
1 parent 1fab7df commit e9905f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion inst/paramtest/test_paramtest_classif.xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ library(magrittr, exclude = c("equals", "is_less_than", "not"))
library(rvest)

add_params_xgboost = read_html("https://xgboost.readthedocs.io/en/latest/parameter.html") %>%
html_elements(c("li", "p")) %>%
html_elements("li") %>%
html_elements("p") %>%
html_text2() %>%
grep("default=", ., value = T) %>%
strsplit(., split = " ") %>%
Expand Down
3 changes: 2 additions & 1 deletion inst/paramtest/test_paramtest_regr.xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ library(magrittr, exclude = c("equals", "is_less_than", "not"))
library(rvest)

add_params_xgboost = read_html("https://xgboost.readthedocs.io/en/latest/parameter.html") %>%
html_elements(c("li", "p")) %>%
html_elements("li") %>%
html_elements("p") %>%
html_text2() %>%
grep("default=", ., value = T) %>%
strsplit(., split = " ") %>%
Expand Down

0 comments on commit e9905f4

Please sign in to comment.