Learn R Programming

prcbench (version 0.3.2)

create_testset: Create a list of test datasets

Description

The create_testset function creates test datasets either for benchmarking or curve evaluation.

Usage

create_testset(test_type, set_names = NULL)

Arguments

test_type
A single string to specify the type of dataset generated by this function.

[object Object],[object Object]

set_names
A character vector to specify the names of test datasets.

  1. For benchmarking (test_type = "bench")

This function uses a naming convention for randomly generated data for benchmarking. The format is a prefix ('i' or 'b') followed

Value

  • A list of R6 test dataset objects.

See Also

run_benchmark and run_evalcurve require the list of the datasets generated by this function. TestDataB for benchmarking test data. TestDataC, C1DATA, C2DATA, and C3DATA for curve evaluation test data. create_usrdata for creating a user-defined test set.

Examples

Run this code
## Create a balanced data set with 50 positives and 50 negatives
tset1 <- create_testset("bench", "b100")

## Create an imbalanced data set with 25 positives and 75 negatives
tset2 <- create_testset("bench", "i100")

## Create P1 dataset
tset3 <- create_testset("curve", "c1")

## Create P1 dataset
tset4 <- create_testset("curve", c("c1", "c2"))

Run the code above in your browser using DataLab