threshold_misclass: Threshold misclassification

Description Usage Arguments Details Value Warning

Description

Compute the misclassification rate, sensitivity, and specificity of probability predictions to a binary classification problem from a random forest learner based on a given threshold.

Usage

1
threshold_misclass(i = 0.5, in_preds)

Arguments

i

(numeric) Threshold to be used for converting probabilities predictions to binary predictions, limits=[0,1].

in_preds

Either:

  1. a PredictionClassif or

  2. a data.table of predictions for a set of CV repetitions as formatted by analyze_benchmark. The column of the predicted probability of getting a 'positive' must be called prob.1.

Details


See https://en.wikipedia.org/wiki/Sensitivity_and_specificity

Value

A single-row data.table with four columns:

Warning

This function was only tested for the outputs of a probability random forest (using a classification framework) and a regression forest (using 0 or 1 as dummy continuous variables)


messamat/globalIRmap documentation built on July 4, 2021, 10:48 a.m.