Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

specificity formula python

# tn = True Negative
# fp = False Positive
# fn = False Negative
# tp = True Positive

tn, fp, fn, tp = confusion_matrix(y_test,y_pred).ravel()

#Specificity
specificity = tn/(tn+fp)

# Recall
recall = tp/(tp+fn)
Comment

PREVIOUS NEXT
Code Example
Python :: python youtube view bot 
Python :: onetoone vs foreign key django 
Python :: float python precision 
Python :: declare array with given size python 
Python :: organize order columns dataframe 
Python :: pyglet on close 
Python :: Python Print Variable Using the + operator to join variables 
Python :: flask lazy response style with `make_response` 
Python :: open file rw python 
Python :: update cell in sheet by column name using pandas 
Python :: print a box like the ones below 
Python :: how to play mp3 file form pygame module 
Python :: timeplanner-1 
Python :: python use orange 
Python :: copy a 2d list python 
Python :: numpy split to chunks of equal size 
Python :: how to check if a dictionary is empty in python 
Python :: python remove middle of string 
Python :: Finding the Sum of a Symmetrical Sub-List 
Python :: pip install matplotlib.pyplot 
Python :: check if a string is a palindrome python 
Python :: pafy python documentation 
Python :: matruzen rechner python 
Python :: python average function program 
Python :: xpath h4 contains text 
Python :: python open application 
Python :: python 1.0 
Python :: print list vertically python 
Python :: break continue pass in python 
Python :: pygame buttons 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =