From 42ee35ae17116809e4b0abd262e26447de1c21dc Mon Sep 17 00:00:00 2001 From: Sima Najafzadehkhoei Date: Tue, 10 Dec 2024 15:06:18 -0700 Subject: [PATCH] yaml is updated --- .github/workflows/R-CMD-check.yaml | 5 ++++- R/simulate_calibrate_sir.R | 2 ++ R/train_model.R | 1 + man/simulate_calibrate_sir.Rd | 4 ++++ man/train_model.Rd | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 1e16cb2..ac482cb 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -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'} @@ -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 diff --git a/R/simulate_calibrate_sir.R b/R/simulate_calibrate_sir.R index 1d6dcfd..8b3ee0a 100644 --- a/R/simulate_calibrate_sir.R +++ b/R/simulate_calibrate_sir.R @@ -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 diff --git a/R/train_model.R b/R/train_model.R index d0c944b..ba21fdf 100644 --- a/R/train_model.R +++ b/R/train_model.R @@ -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) { diff --git a/man/simulate_calibrate_sir.Rd b/man/simulate_calibrate_sir.Rd index 18d43c8..9502c3c 100644 --- a/man/simulate_calibrate_sir.Rd +++ b/man/simulate_calibrate_sir.Rd @@ -14,6 +14,10 @@ simulate_calibrate_sir(N, n, ndays, ncores, epochs, verbose) \item{ndays}{Integer. The number of days to simulate.} \item{ncores}{Integer. The number of cores to use for parallel processing.} + +\item{epochs}{Integer. The number of training.} + +\item{verbose}{Integer. 0 shows the result of training and 2 doesnt.} } \value{ Executes the pipeline and generates plots. diff --git a/man/train_model.Rd b/man/train_model.Rd index c2a80c5..2f7ecb1 100644 --- a/man/train_model.Rd +++ b/man/train_model.Rd @@ -12,6 +12,8 @@ train_model(model, train_data, epochs = epochs, verbose = verbose) \item{train_data}{List. A list containing training data (\code{x} and \code{y}).} \item{epochs}{Integer. The number of epochs for training.} + +\item{verbose}{Integer. 0 shows the result of training and 2 doesnt.} } \value{ The trained model (updated in place).