perf_df {ezplot}R Documentation

perf_df

Description

shows classification performance statistics as a table

Usage

perf_df(fitted, actual, quantiles = NULL)

Arguments

fitted

A character value. Evaluates to a numeric column.

actual

A character value. Evaluates to a logical or binary column.

quantiles

Number of quantiles to show. If NULL, uses distinct values of fitted for the cutoffs rather than showing quantiles.

Value

A data.frame summarizing binary classification performance:

Examples

perf_df(mtcars$mpg, mtcars$am)
perf_df(mtcars$mpg, mtcars$am, quantiles = 4)
perf_df(mtcars$mpg, mtcars$am, quantiles = 8)
perf_df(mtcars$mpg, mtcars$am, quantiles = 10)
perf_df(mtcars$wt, mtcars$am==0)

[Package ezplot version 0.7.13 Index]