confusion: Computes confusion matrix

Description Usage Arguments Value Author(s)

Description

Computes confusion matrix for a specific threshold

Usage

1
confusion(pred, obs, threshold = 0.5)

Arguments

pred

the prediction

obs

the observation

threshold

A threshold up to which a prediction is class 0 or 1. A value from 0 to 1

Value

Returns a confusion matrix

Author(s)

Georg Steinbuss


TeachNet documentation built on May 2, 2019, 7 a.m.