ks_table: Get KS statistics

Description Usage Arguments Value Examples

View source: R/ks.R

Description

Output a data.frame with inputs (y, yhat) and tpr, fpr and ks.

Usage

1
ks_table(yhat, y)

Arguments

yhat

numeric the value predicted by your model.

y

numeric the target values.

Value

The data frame containing tpr, fpr and ks.

Examples

1
2
data("two_class_example_edited")
max(ks_table(two_class_example_edited$yhat, two_class_example_edited$y)$ks)

JiaxiangBU/rawKS documentation built on Feb. 22, 2020, 10:27 a.m.