View source: R/data_interface.R
create_testset | R Documentation |
The create_testset
function creates test datasets either for
benchmarking or curve evaluation.
create_testset(test_type, set_names = NULL)
test_type |
A single string to specify the type of dataset generated by this function.
| |||||||||||||||
set_names |
A character vector to specify the names of test datasets.
|
A list of R6
test dataset objects.
run_benchmark
and run_evalcurve
require
the list of the datasets generated by this function.
TestDataB
for benchmarking test data.
TestDataC
, C1DATA
, C2DATA
,
C3DATA
, and C4DATA
for curve evaluation
test data.
create_usrdata
for creating a user-defined test set.
## Create a balanced data set with 50 positives and 50 negatives
tset1 <- create_testset("bench", "b100")
tset1
## Create an imbalanced data set with 25 positives and 75 negatives
tset2 <- create_testset("bench", "i100")
tset2
## Create P1 dataset
tset3 <- create_testset("curve", "c1")
tset3
## Create P1 dataset
tset4 <- create_testset("curve", c("c1", "c2"))
tset4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.