☰
Debian Codegraph
@
3.2.1.1+dfsg-1
/
/
tests
/
testthat
/
helper_model.R
☽
☼
tests/testthat/helper_model.R
code
plain
raw
Apache-2.0
2026 Tianqi Chen,; Tong He,; Michael Benesty,; Vadim Khotilovich,; Yuan Tang (ORCID: <https://orcid.org/0000-0001-5243-233X>),; Hyunsu Cho,; Kailong Chen,; Rory Mitchell,; Ignacio Cano,; Tianyi Zhou,; Mu Li,; Junyuan Xie,; Min Lin,; Yifeng Geng,; Yutian Li,; Jiaming Yuan,; David Cortes,; XGBoost contributors (base XGBoost implementation),; Contributors
debian/copyright
1
## A special file sourced by testthat.
2
3
get_basescore <- function(model) {
4
as.numeric(
5
jsonlite::fromJSON(model$learner$learner_model_param$base_score)
6
)
7
}