TestDataB | R Documentation |
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.
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.
TestDataB$get_tsname()
get_scores()
Get a vector of scores.
TestDataB$get_scores()
get_labels()
Get a vector of labels.
TestDataB$get_labels()
get_fg()
Get a vector of positive scores.
TestDataB$get_fg()
get_bg()
Get a vector of negative scores.
TestDataB$get_bg()
get_fname()
Get a file name that contains scores and labels.
TestDataB$get_fname()
del_file()
Delete the file with scores and labels.
TestDataB$del_file()
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.
create_testset
for creating a list of test datasets.
TestDataC
is derived from this class for curve evaluation.
## Initialize with scores, labels, and a dataset name
testset <- TestDataB$new(c(0.1, 0.2, 0.3), c(0, 1, 1), "m1")
testset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.