generatePrecisionRecallCurve: Generate a standard Precision/Recall plot

Description Usage Arguments Value See Also Examples

View source: R/binaryClassification.R

Description

Evaluate a model with a Precision vs Recall plot

Usage

1
generatePrecisionRecallCurve(pred, header = "")

Arguments

pred

A prediction object.

header

An optional string to add to the plot title

Value

A ggplot

See Also

binaryClassifierEvaluation

Examples

1
2
3
4
5
set.seed(1234)
probs <- pnorm(rnorm(100,-1,1))
actuals <- rbinom(100,1,probs)
pred <- prediction(probs, actuals)
generatePrecisionRecallCurve(pred, header = "A Model")

ivanliu1989/RQuant documentation built on Sept. 13, 2019, 11:53 a.m.