diff --git a/NEWS.md b/NEWS.md index 9d3a26d..c4704ec 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,10 +3,6 @@ ## Planned Changes * Add folder generation function -* Remove warnings: - -1: `as_data_frame()` is deprecated as of tibble 2.0.0. Please use `as_tibble()` instead. -2: `data_frame()` is deprecated as of tibble 1.1.0. Please use `tibble()` instead. # lazytrade 0.4.1 @@ -19,9 +15,10 @@ * added option to balance classes in mt_make_model function * add and delete depricated functions * change names of functions to reflect the purpose: mt - market type, rl- reinforcement learning, util - utility +* change example methods to unify them across functions +* align names of the variables across several functions * remove warnings caused by new dplyr functionalities .groups - - +* remove tidyr from imports to solve Note # lazytrade 0.4.0 diff --git a/R/aml_make_model.R b/R/aml_make_model.R index e3675cf..08342a5 100644 --- a/R/aml_make_model.R +++ b/R/aml_make_model.R @@ -53,8 +53,8 @@ #' #' # dataset will be written to the temp directory #' -#' # start h2o engine (using all CPU's by default) -#' h2o.init() +#' # start h2o engine +#' h2o.init(nthreads = 2) #' #' #' # performing Deep Learning Regression using the custom function diff --git a/R/aml_score_data.R b/R/aml_score_data.R index 8860355..d027da9 100644 --- a/R/aml_score_data.R +++ b/R/aml_score_data.R @@ -48,7 +48,7 @@ #' path_data = path_data) #' # start h2o engine (using all CPU's by default) #' -#' h2o.init() +#' h2o.init(nthreads = 2) #' #' #' # performing Deep Learning Regression using the custom function diff --git a/R/aml_test_model.R b/R/aml_test_model.R index 63e8bb9..8e3de6b 100644 --- a/R/aml_test_model.R +++ b/R/aml_test_model.R @@ -54,8 +54,8 @@ #' path_data = path_data) #' #' -#' # start h2o engine (using all CPU's by default) -#' h2o.init() +#' # start h2o engine +#' h2o.init(nthreads = 2) #' #' #' # performing Deep Learning Regression using the custom function diff --git a/R/mt_make_model.R b/R/mt_make_model.R index be83d01..775581a 100644 --- a/R/mt_make_model.R +++ b/R/mt_make_model.R @@ -46,8 +46,8 @@ #' #' Sys.sleep(5) #' -#' # start h2o engine (using all CPU's by default) -#' h2o.init() +#' # start h2o engine +#' h2o.init(nthreads = 2) #' #' #' # performing Deep Learning Regression using the custom function diff --git a/R/self_learn_ai_R.R b/R/self_learn_ai_R.R index 3c2a4e5..897a2a1 100644 --- a/R/self_learn_ai_R.R +++ b/R/self_learn_ai_R.R @@ -35,8 +35,8 @@ #' library(magrittr) #' library(h2o) #' library(lazytrade) -#' # start h2o engine (using all CPU's by default) -#' h2o.init() +#' # start h2o engine +#' h2o.init(nthreads = 2) #' #' path_model <- normalizePath(tempdir(),winslash = "/") #' path_data <- normalizePath(tempdir(),winslash = "/") diff --git a/man/aml_make_model.Rd b/man/aml_make_model.Rd index 2c4fffb..2b8ec7d 100644 --- a/man/aml_make_model.Rd +++ b/man/aml_make_model.Rd @@ -64,8 +64,8 @@ aml_collect_data(indicator_dataset = ind, # dataset will be written to the temp directory -# start h2o engine (using all CPU's by default) -h2o.init() +# start h2o engine +h2o.init(nthreads = 2) # performing Deep Learning Regression using the custom function diff --git a/man/aml_score_data.Rd b/man/aml_score_data.Rd index b5ded90..8b0e40b 100644 --- a/man/aml_score_data.Rd +++ b/man/aml_score_data.Rd @@ -59,7 +59,7 @@ aml_collect_data(indicator_dataset = ind, path_data = path_data) # start h2o engine (using all CPU's by default) -h2o.init() +h2o.init(nthreads = 2) # performing Deep Learning Regression using the custom function diff --git a/man/aml_test_model.Rd b/man/aml_test_model.Rd index b32ce77..fa40956 100644 --- a/man/aml_test_model.Rd +++ b/man/aml_test_model.Rd @@ -75,8 +75,8 @@ aml_collect_data(indicator_dataset = ind, path_data = path_data) -# start h2o engine (using all CPU's by default) -h2o.init() +# start h2o engine +h2o.init(nthreads = 2) # performing Deep Learning Regression using the custom function diff --git a/man/mt_make_model.Rd b/man/mt_make_model.Rd index a4f823d..63d58ab 100644 --- a/man/mt_make_model.Rd +++ b/man/mt_make_model.Rd @@ -64,8 +64,8 @@ data(macd_ML60M) Sys.sleep(5) -# start h2o engine (using all CPU's by default) -h2o.init() +# start h2o engine +h2o.init(nthreads = 2) # performing Deep Learning Regression using the custom function diff --git a/man/self_learn_ai_R.Rd b/man/self_learn_ai_R.Rd index cc270e1..36c3eb1 100644 --- a/man/self_learn_ai_R.Rd +++ b/man/self_learn_ai_R.Rd @@ -58,8 +58,8 @@ library(readr) library(magrittr) library(h2o) library(lazytrade) -# start h2o engine (using all CPU's by default) -h2o.init() +# start h2o engine +h2o.init(nthreads = 2) path_model <- normalizePath(tempdir(),winslash = "/") path_data <- normalizePath(tempdir(),winslash = "/")