Skip to content

Commit 0ab8cf6

Browse files
committed
fix fold names
1 parent c6bd55f commit 0ab8cf6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Imports:
1818
dplyr, tidyselect,
1919
purrr
2020
Roxygen: list(markdown = TRUE)
21-
RoxygenNote: 7.3.2
21+
RoxygenNote: 7.3.3
2222
Remotes:
2323
rpkgs/Ipaper

R/kfold_calib.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ kfold_calib <- function(X, Y, FUN = xgboost, index=NULL, ..., ratio_valid=0.3) {
2121
#' @export
2222
kfold_tidy <- function(res, ind_lst, Y) {
2323
kfold_names <- names(ind_lst)
24+
if (is.null(kfold_names)) kfold_names <- paste0(seq_along(ind_lst))
2425

2526
## 3. GOF information get
2627
val <- map(res, ~ .x$ypred) %>% unlist() # pred value

man/kfold_ml.Rd

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)