Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HubertR21 committed Feb 9, 2024
1 parent b02d7f6 commit 733527d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 46 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Imports:
stats,
tibble,
crayon,
VIM,
patchwork
VIM
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
Expand Down
10 changes: 0 additions & 10 deletions R/train_test_balance.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@
#'
#' @return A list of train, test and validation datasets.
#' @export
<<<<<<< HEAD
train_test_balance <- function(data, y, balance = TRUE, fractions = c(0.6, 0.2, 0.2), seed = NULL, verbose = FALSE) {
=======
#'
#' @examples
#' data(lisbon)
#' b_lisbon <- train_test_balance(lisbon, 'Price', balance = FALSE,
#' fractions = c(train = 0.6, valid = 0.2, test = 0.2))
train_test_balance <-
function(data, y, balance = TRUE, fractions = c(0.6, 0.2, 0.2), seed = NULL) {
>>>>>>> 71c68e64b3394cf9ab7185e92e318250e1c54d47
# Balancing / stratifying classes.
target <- data[[y]]
if (!(is.null(seed) || (is.numeric(seed) & as.integer(seed) == seed))) {
Expand Down
13 changes: 0 additions & 13 deletions man/plot.binary_clf.Rd

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

18 changes: 0 additions & 18 deletions man/plot.regression.Rd

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

5 changes: 2 additions & 3 deletions man/report.Rd

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

0 comments on commit 733527d

Please sign in to comment.