Learn R Programming

prcbench (version 0.3.1)

TestDataB: R6 class of test dataset for performance evaluation tools

Description

TestDataB is a class that contains scores and label for performance evaluation tools. It provides necessary methods for benchmarking.

Usage

TestDataB

Arguments

format

An R6 class object.

Methods

  • 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.

See Also

create_testset for creating a list of test datasets. TestDataC is derived from this class for curve evaluation.

Examples

Run this code
## Initialize with scores, labels, and a dataset name
testset <- TestDataB$new(c(0.1, 0.2, 0.3), c(0, 1, 1), "m1")

Run the code above in your browser using DataLab