| TestDataC | R Documentation |
R6 class of test dataset for Precision-Recall curve evaluation.
An R6 class object.
TestDataC is a class that contains scores and label for performance
evaluation tools. It provides necessary methods for curve evaluation.
prcbench::TestDataB -> TestDataC
set_basepoints_x()Set pre-calculated recall values for curve evaluation.
TestDataC$set_basepoints_x(x)
xA recall value.
set_basepoints_y()Set pre-calculated precision values for curve evaluation.
TestDataC$set_basepoints_y(y)
yA precision value.
get_basepoints_x()Get pre-calculated recall values for curve evaluation.
TestDataC$get_basepoints_x()
get_basepoints_y()Get pre-calculated precision values for curve evaluation.
TestDataC$get_basepoints_y()
set_textpos_x()Set the position x for displaying the test result in a plot.
TestDataC$set_textpos_x(x)
xPosition x of the test result.
set_textpos_y()Set the y position for displaying the test result in a plot.
TestDataC$set_textpos_y(y)
yPosition y of the test result.
set_textpos_x2()Set the x position for displaying the test result in a plot.
TestDataC$set_textpos_x2(x)
xPosition x of the test result.
set_textpos_y2()Set the y position for displaying the test result in a plot.
TestDataC$set_textpos_y2(y)
yPosition y of the test result.
get_textpos_x()Get the position x for displaying the test result in a plot.
TestDataC$get_textpos_x()
get_textpos_y()Get the position y for displaying the test result in a plot.
TestDataC$get_textpos_y()
get_textpos_x2()Get the x position for displaying the test result in a plot.
TestDataC$get_textpos_x2()
get_textpos_y2()Get the y position for displaying the test result in a plot.
TestDataC$get_textpos_y2()
clone()The objects of this class are cloneable with this method.
TestDataC$clone(deep = FALSE)
deepWhether to make a deep clone.
create_testset for creating a list of test datasets.
It is derived from TestDataB.
## Initialize with scores, labels, and a dataset name
testset <- TestDataC$new(c(0.1, 0.2), c(1, 0), "c4")
testset
## Set base points
testset$set_basepoints_x(c(0.13, 0.2))
testset$set_basepoints_y(c(0.5, 0.6))
testset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.