Nothing
library(testthat)
test_that("fit.gbtrees works as expected", {
set.seed(123) # for reproducibility
n <- 100 # number of observations
Fsp3 <- rnorm(n); nSmallRings <- rnorm(n); nAromRings <- rnorm(n); noise <- rnorm(n); RT <- Fsp3^2 + sin(nSmallRings) + noise
df <- data.frame(RT, Fsp3, nSmallRings, nAromRings)
result <- fit_gbtree(df, verbose = 0)
expect_true(inherits(result, "xgb.Booster"))
})
test_that("fit.gbtrees works for data from reverse phase column", {
opts <- options(FastRet.mocks = c("preprocess_data"))
on.exit(options(opts), add = TRUE)
df <- preprocess_data(verbose = 0)[1:100, 1:10] # use a smaller dataset to speed up the test
result <- fit_gbtree(df, verbose = 0)
expect_true(inherits(result, "xgb.Booster"))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.