tests/testthat/test-train_frm-gbtree.R

library(testthat)

test_that("train_frm works", {
    opts <- options(FastRet.mocks = c("preprocess_data"))
    on.exit(options(opts), add = TRUE)
    model <- train_frm(df = RP, method = "gbtree", nfolds = 2, nw = 2, verbose = 0)
    expect_equal(names(model), c("model", "df", "cv", "seed", "version"))
})

Try the FastRet package in your browser

Any scripts or data that you put into this service are public.

FastRet documentation built on June 25, 2024, 5:07 p.m.