Skip to content

Commit

Permalink
Merge pull request #18 from UBC-MDS/scaler
Browse files Browse the repository at this point in the history
scaler fixed
  • Loading branch information
jachang0628 authored Mar 14, 2021
2 parents 1d7b3f7 + de38ade commit 81016df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ RoxygenNote: 7.1.1
Imports:
dplyr,
tidyr,
magrittr
magrittr,
GGally,
caret
Suggests:
testthat (>= 2.0.0)
Config/testthat/edition: 2
4 changes: 4 additions & 0 deletions R/scaler.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
#' @export
#'
#' @examples
#'X_train <- data.frame('a' = c(1,2,3), 'b' = c(5,6,3), 'c' = c(2,1,10))
#' X_test <- data.frame('a' = c(1,5,3), 'b' = c(5,6,5), 'c' = c(2,5,10))
#' X_Valid <- data.frame('a' = c(5,5,3), 'b' = c(5,6,5), 'c' = c(2,5,10))
#' scaled_df <- scaler(X_train, X_Valid, X_test, scaler_type='standardization')
#'
scaler <- function(X_train, X_valid, X_test, scaler_type){

# checking if scaling methods are valid
Expand Down
4 changes: 4 additions & 0 deletions man/scaler.Rd

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

0 comments on commit 81016df

Please sign in to comment.