safe_predict.C5.0: Safe predictions from a C5 classification tree

Description Usage Arguments

Description

Safe predictions from a C5 classification tree

Usage

1
2
3
## S3 method for class 'C5.0'
safe_predict(object, new_data, type = c("prob", "class"),
  ..., threshold = 0.5)

Arguments

object

A C5.0 object produced by a call to C50::C5.0().

new_data

TODO

type

TODO

...

Unused. safe_predict() checks that all arguments in ... are evaluated via the ellipsis package. The idea is to prevent silent errors when arguments are mispelled. This feature is experimental and feedback is welcome.

threshold

A number between 0 and 1 to use as a threshold for classification. When the class probability for the class corresponding to a positive event is greater than the threshold, the event will be classified as positive. Defaults to 0.5.


alexpghayes/safepredict documentation built on May 29, 2019, 11:02 p.m.