Skip to content

Commit

Permalink
fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
advieser committed Sep 14, 2024
1 parent 98a051e commit 28d4617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions R/PipeOpBLSmote.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
#'
#' # Create example task
#' data = data.frame(
#' target = factor(sample(c("c1", "c2"), size = 200, replace = TRUE, prob = c(0.1, 0.9))),
#' feature = rnorm(200)
#' target = factor(sample(c("c1", "c2"), size = 300, replace = TRUE, prob = c(0.1, 0.9))),
#' x1 = rnorm(300),
#' x2 = rnorm(300)
#' )
#' task = TaskClassif$new(id = "example", backend = data, target = "target")
#' task$head()
Expand Down
5 changes: 3 additions & 2 deletions man/mlr_pipeops_blsmote.Rd

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

0 comments on commit 28d4617

Please sign in to comment.