confusion {TeachNet}R Documentation

Computes confusion matrix

Description

Computes confusion matrix for a specific threshold

Usage

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


[Package TeachNet version 0.7.1 Index]