Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Apr 27, 2024
1 parent 957a8e3 commit b53b67d
Show file tree
Hide file tree
Showing 10 changed files with 599 additions and 517 deletions.
6 changes: 5 additions & 1 deletion R/coerce_nans.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ coerce_nans.list <- function(x, to){

}

coerce_nans.array <- coerce_nans.matrix <- function(x, to){
coerce_nans.factor <-
coerce_nans.integer <-
coerce_nans.double <-
coerce_nans.array <-
coerce_nans.matrix <- function(x, to){

if(any(is.nan(x))){
x[is.nan(x)] <- to
Expand Down
2 changes: 2 additions & 0 deletions R/orsf_R6.R
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ ObliqueForest <- R6::R6Class(
# object and then use this function. We need checks for that case.
new_data <- new_data %||% self$data

# browser()

# run checks before you assign new values to object.
# otherwise, if a check throws an error, the object will
# not be restored to its normal state.
Expand Down
5 changes: 5 additions & 0 deletions R/orsf_predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
#' is `'mort'` for survival or `'class'` for classification, or an array of
#' matrices if `length(pred_horizon) > 1`.
#'
#' @param oobag (_logical_) If `FALSE` (the default), predictions will
#' be computed using all trees for each observation. If `TRUE`, then
#' out-of-bag predictions will be computed. This input parameter should
#' only be set to `TRUE` if `new_data` is `NULL`.
#'
#' @param na_action `r roxy_na_action_header("new_data")`
#'
#' - `r roxy_na_action_fail("new_data")`
Expand Down
216 changes: 116 additions & 100 deletions man/orsf.Rd

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

Loading

0 comments on commit b53b67d

Please sign in to comment.