Skip to content

Commit

Permalink
yaml is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-njf committed Dec 10, 2024
1 parent cac9baa commit 42ee35a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: macos-12, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
Expand All @@ -28,6 +28,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set TAR options to suppress warnings
run: echo "TAR=tar --no-same-owner" >> $GITHUB_ENV

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
Expand Down
2 changes: 2 additions & 0 deletions R/simulate_calibrate_sir.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#' @param n Integer. The population size for each simulation.
#' @param ndays Integer. The number of days to simulate.
#' @param ncores Integer. The number of cores to use for parallel processing.
#' @param epochs Integer. The number of training.
#' @param verbose Integer. 0 shows the result of training and 2 doesnt.
#' @return Executes the pipeline and generates plots.
#' @export
# N=2e4
Expand Down
1 change: 1 addition & 0 deletions R/train_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' @param model Keras model. The compiled model to be trained.
#' @param train_data List. A list containing training data (`x` and `y`).
#' @param epochs Integer. The number of epochs for training.
#' @param verbose Integer. 0 shows the result of training and 2 doesnt.
#' @return The trained model (updated in place).
#' @export
train_model <- function(model, train_data, epochs = epochs,verbose=verbose) {
Expand Down
4 changes: 4 additions & 0 deletions man/simulate_calibrate_sir.Rd

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

2 changes: 2 additions & 0 deletions man/train_model.Rd

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

0 comments on commit 42ee35a

Please sign in to comment.