powered by
R6 class of test data set for performance evaluation tools.
R6
An R6 class object.
TestDataB$new()
TestDataB$get_tsname()
TestDataB$get_scores()
TestDataB$get_labels()
TestDataB$get_fg()
TestDataB$get_bg()
TestDataB$get_fname()
TestDataB$del_file()
TestDataB$print()
TestDataB$clone()
new()
Default class initialization method.
TestDataB$new(scores = NULL, labels = NULL, tsname = NA)
scores
A vector of scores.
labels
A vector of labels.
tsname
A dataset name.
get_tsname()
Get the dataset name.
get_scores()
Get a vector of scores.
get_labels()
Get a vector of labels.
get_fg()
Get a vector of positive scores.
get_bg()
Get a vector of negative scores.
get_fname()
Get a file name that contains scores and labels.
del_file()
Delete the file with scores and labels.
print()
Pretty print of the test dataset.
TestDataB$print(...)
...
Not used.
clone()
The objects of this class are cloneable with this method.
TestDataB$clone(deep = FALSE)
deep
Whether to make a deep clone.
TestDataB is a class that contains scores and label for performance evaluation tools. It provides necessary methods for benchmarking.
TestDataB
create_testset for creating a list of test datasets. TestDataC is derived from this class for curve evaluation.
create_testset
TestDataC
## Initialize with scores, labels, and a dataset name testset <- TestDataB$new(c(0.1, 0.2, 0.3), c(0, 1, 1), "m1") testset
Run the code above in your browser using DataLab