Learn R Programming

BinarybalancedCut (version 0.2)

Binary_threshold: This Supports the datascientist to determine the optimal threshold for binary classifier problem by visuallizing the sensitivity, specificity and accurarcy of the given model

Description

Prints 'Chart of sensitivity & specificity'.

Usage

Binary_threshold(probability,class)

Arguments

probability

Probability Obtained from the model

class

Actual Class of the datasets

Examples

Run this code
# NOT RUN {
set.seed(100);disease <- sample(c("yes","no"), 1000, replace=TRUE);
Probabilities<-sample(seq(0,1,by=0.01),1000,replace=TRUE);
Binary_threshold(Probabilities,disease)
# }

Run the code above in your browser using DataLab