Skip to content

Commit

Permalink
Merge pull request #420 from tlverse/disable-kerasR
Browse files Browse the repository at this point in the history
Disables use of `kerasR`
  • Loading branch information
rachaelvp authored Sep 28, 2023
2 parents fa669c7 + f6146ea commit 64806d5
Show file tree
Hide file tree
Showing 78 changed files with 34 additions and 218 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v1
uses: r-lib/actions/setup-pandoc@v2

- name: Install tinyTeX
uses: r-lib/actions/setup-tinytex@v1
uses: r-lib/actions/setup-tinytex@v2

- name: Install system dependencies
if: runner.os == 'Linux'
Expand All @@ -50,8 +50,7 @@ jobs:
- name: Install package dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "covr", "sessioninfo"))
if(Sys.info()["sysname"] == "Windows") install.packages("igraph", type = "binary")
install.packages(c("remotes", "devtools", "rcmdcheck", "covr", "sessioninfo"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

Expand Down
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Suggests:
mgcv,
hts,
GA,
SIS,
partykit
Remotes:
github::tlverse/origami,
Expand All @@ -106,5 +107,5 @@ VignetteBuilder:
knitr,
R.rsp
Roxygen: list(markdown = TRUE, old_usage = TRUE, r6 = FALSE)
RoxygenNote: 7.2.0
RoxygenNote: 7.2.3
RdMacros: Rdpack
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export(Lrnr_arima)
export(Lrnr_bartMachine)
export(Lrnr_base)
export(Lrnr_bayesglm)
export(Lrnr_bilstm)
export(Lrnr_bound)
export(Lrnr_caret)
export(Lrnr_cv)
Expand Down
3 changes: 2 additions & 1 deletion R/Lrnr_gts.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
#'
#' @examples
#' # Example adapted from hts package manual
#' # The hierarchical structure looks like 2 child nodes associated with level 1,
#' # Hierarchical structure looks like 2 child nodes associated with level 1,
#' # which are followed by 3 and 2 sub-child nodes respectively at level 2.
#' library(data.table)
#' library(hts)
#'
#' set.seed(3274)
Expand Down
4 changes: 1 addition & 3 deletions R/Lrnr_multiple_ts.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' set.seed(123)
#'
#' # Simulate simple AR(2) process
#' data <- matrix(arima.sim(model = list(ar = c(.9, -.2)), n = 200))
#' data <- matrix(arima.sim(model = list(ar = c(0.9, -0.2)), n = 200))
#' id <- c(rep("Series_1", 50), rep("Series_2", 50), rep("Series_3", 50), rep("Series_4", 50))
#' data <- data.frame(data)
#' data$id <- as.factor(id)
Expand All @@ -45,8 +45,6 @@
#' data$W1 <- rbinom(200, 1, 0.6)
#' data$W2 <- rbinom(200, 1, 0.2)
#'
#' data <- as.data.table(data)
#'
#' folds <- origami::make_folds(data,
#' t = max(data$time),
#' id = data$id,
Expand Down
7 changes: 2 additions & 5 deletions R/Lrnr_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ Lrnr_pca <- R6Class(
return(fit_object)
},
.predict = function(task = NULL) {
# note that n_comp is an argument not defined in stats::prcomp
# note that n_comp is not an argument of stats::prcomp
dim_args <- self$params[names(self$params) == "n_comp"]
preds_rotations <-
private$.fit_object$rotation[, seq_len(unlist(dim_args))]
preds_pca <- as.matrix(task$X) %*% preds_rotations
predictions <- preds_pca
predictions <- private$.fit_object$x[, seq_len(unlist(dim_args))]
return(predictions)
},
.required_packages = c("stats")
Expand Down
1 change: 0 additions & 1 deletion man/Custom_chain.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_HarmonicReg.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_arima.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_bartMachine.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_base.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_bayesglm.Rd

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

113 changes: 0 additions & 113 deletions man/Lrnr_bilstm.Rd

This file was deleted.

1 change: 0 additions & 1 deletion man/Lrnr_caret.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_cv.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_cv_selector.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_dbarts.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_define_interactions.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_density_discretize.Rd

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

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

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

1 change: 0 additions & 1 deletion man/Lrnr_density_semiparametric.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_earth.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_expSmooth.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_ga.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_gam.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_gbm.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_glm.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_glm_fast.Rd

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

1 change: 0 additions & 1 deletion man/Lrnr_glm_semiparametric.Rd

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

Loading

0 comments on commit 64806d5

Please sign in to comment.