Skip to content

Commit

Permalink
prepare_and_fit(): set cohort in DataSpec to train if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessl committed Jan 12, 2024
1 parent ba9356c commit 5465db5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 2 additions & 0 deletions R/prepare_and_fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ prepare_and_fit <- function(
message("\tCreating ", directory)
dir.create(directory, recursive = TRUE)
}
if(is.null(data_spec$cohort))
data_spec$cohort <- "train"
# Set up list holding fits
fits <- list()
stored_fits_fname <- file.path(model_spec$directory, model_spec$fit_fname)
Expand Down
21 changes: 8 additions & 13 deletions man/ModelSpec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/generate_response.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5465db5

Please sign in to comment.