R6
class of test data set for performance evaluation tools.
An R6
class object.
TestDataB
is a class that contains scores and label for performance
evaluation tools. It provides necessary methods for benchmarking.
create_testset
for creating a list of test datasets.
TestDataC
is derived from this class for curve evaluation.
new()
Default class initialization method.
TestDataB$new(scores = NULL, labels = NULL, tsname = NA)
## Initialize with scores, labels, and a dataset name
testset <- TestDataB$new(c(0.1, 0.2, 0.3), c(0, 1, 1), "m1")
testset
#>
#> === Test dataset for prcbench functions ===
#>
#> Testset name: m1
#> # of positives: 2
#> # of negatives: 1
#> Scores: 0.1 (min)
#> 0.2 (mean)
#> 0.3 (max)
#> Labels: 0 (neg), 1 (pos)
#>