perf_df: perf_df

View source: R/performance.R

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

Examples

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

ezplot documentation built on Aug. 12, 2022, 1:07 a.m.