as_precrec: Convert to 'precrec' Format

Description Usage Arguments Value References

View source: R/as_precrec.R

Description

Converts to a format which is understood by precrec::evalmod() of package precrec.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_precrec(object)

## S3 method for class 'PredictionClassif'
as_precrec(object)

## S3 method for class 'ResampleResult'
as_precrec(object)

## S3 method for class 'BenchmarkResult'
as_precrec(object)

Arguments

object

(any)
Object to convert.

Value

Object as created by precrec::mmdata().

References

Saito T, Rehmsmeier M (2017). “Precrec: fast and accurate precision-recall and ROC curve calculations in R.” Bioinformatics, 33(1), 145-147. doi: 10.1093/bioinformatics/btw570.


mlr3viz documentation built on July 2, 2021, 1:07 a.m.