Skip to content

Commit

Permalink
fix argument name for initial_split() (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfrick authored Apr 21, 2023
1 parent d36a1a2 commit 71b1ae9
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion R/c5.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#'
#' # Load data
#' set.seed(1234)
#' split <- initial_split(kyphosis, props = 9/10)
#' split <- initial_split(kyphosis, prop = 9/10)
#' spine_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/elnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' library(rsample)
#'
#' # Load data
#' split <- initial_split(mtcars, props = 9/10)
#' split <- initial_split(mtcars, prop = 9/10)
#' car_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/kknn.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' # Load data
#' set.seed(1234)
#' split <- initial_split(kyphosis, props = 9/10)
#' split <- initial_split(kyphosis, prop = 9/10)
#' spine_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/lm.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' library(rsample)
#'
#' # Load data
#' split <- initial_split(mtcars, props = 9/10)
#' split <- initial_split(mtcars, prop = 9/10)
#' car_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/randomForest.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#'
#' # Load data
#' set.seed(1234)
#' split <- initial_split(kyphosis, props = 9/10)
#' split <- initial_split(kyphosis, prop = 9/10)
#' spine_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/ranger.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#'
#' # Load data
#' set.seed(1234)
#' split <- initial_split(iris, props = 9/10)
#' split <- initial_split(iris, prop = 9/10)
#' iris_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion R/rpart.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#'
#' # Load data
#' set.seed(1234)
#' split <- initial_split(mtcars, props = 9/10)
#' split <- initial_split(mtcars, prop = 9/10)
#' car_train <- training(split)
#'
#' # Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/c5.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ suppressWarnings(suppressMessages(library(rpart)))

# Load data
set.seed(1234)
split <- initial_split(kyphosis, props = 9/10)
split <- initial_split(kyphosis, prop = 9/10)
spine_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/elnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ suppressWarnings(suppressMessages(library(parsnip)))
suppressWarnings(suppressMessages(library(rsample)))

# Load data
split <- initial_split(mtcars, props = 9/10)
split <- initial_split(mtcars, prop = 9/10)
car_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/kknn.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ suppressWarnings(suppressMessages(library(rpart)))

# Load data
set.seed(1234)
split <- initial_split(kyphosis, props = 9/10)
split <- initial_split(kyphosis, prop = 9/10)
spine_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/lm.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ suppressWarnings(suppressMessages(library(parsnip)))
suppressWarnings(suppressMessages(library(rsample)))

# Load data
split <- initial_split(mtcars, props = 9/10)
split <- initial_split(mtcars, prop = 9/10)
car_train <- training(split)
car_test <- testing(split)

Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/randomForest.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ suppressWarnings(suppressMessages(library(rpart)))

# Load data
set.seed(1234)
split <- initial_split(kyphosis, props = 9/10)
split <- initial_split(kyphosis, prop = 9/10)
spine_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/ranger.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ suppressWarnings(suppressMessages(library(rsample)))

# Load data
set.seed(1234)
split <- initial_split(iris, props = 9/10)
split <- initial_split(iris, prop = 9/10)
iris_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/rpart.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ suppressWarnings(suppressMessages(library(rpart)))

# Load data
set.seed(1234)
split <- initial_split(mtcars, props = 9/10)
split <- initial_split(mtcars, prop = 9/10)
car_train <- training(split)

# Create model and fit
Expand Down
2 changes: 1 addition & 1 deletion inst/extdata-scripts/stanreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ suppressWarnings(suppressMessages(library(parsnip)))
suppressWarnings(suppressMessages(library(tidymodels)))

# Load data
split <- initial_split(mtcars, props = 9/10)
split <- initial_split(mtcars, prop = 9/10)
car_train <- training(split)
car_test <- testing(split)

Expand Down
2 changes: 1 addition & 1 deletion man/axe-C5.0.Rd

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

2 changes: 1 addition & 1 deletion man/axe-elnet.Rd

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

2 changes: 1 addition & 1 deletion man/axe-kknn.Rd

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

2 changes: 1 addition & 1 deletion man/axe-lm.Rd

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

2 changes: 1 addition & 1 deletion man/axe-randomForest.Rd

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

2 changes: 1 addition & 1 deletion man/axe-ranger.Rd

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

2 changes: 1 addition & 1 deletion man/axe-rpart.Rd

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

0 comments on commit 71b1ae9

Please sign in to comment.