DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to calculate accuracy with two lists in python
sum(1 for x,y in zip(a,b) if x == y) / float(len(a))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#calculate
#accuracy
#lists
#python
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit