#NEWLINE# def accuracy( classify = ( lambda document : False ) , documents = [ ] , average = None ) : #NEWLINE# #INDENT# ' Returns the percentage of correct classifications (true positives + true negatives).\n    ' #NEWLINE# return test ( classify , documents , classify ) [ 0 ]