Permalink
Browse files

another useless die

  • Loading branch information...
1 parent cc8ca96 commit 932dea962ae4b647bb023297c3f24ca0c17d4a2f @ogrisel ogrisel committed Nov 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 score.py
View
4 score.py
@@ -5,7 +5,7 @@
# Takes in a CSV file that starts with a header row, and returns an array of
# dictionaries, with the keys set by the names in the header.
def load_csv(filename):
- reader = csv.reader(open(filename)) or die('Couldn\'t open '+filename)
+ reader = csv.reader(open(filename))
line = 0
output = {}
for input_row in reader:
@@ -49,4 +49,4 @@ def load_csv(filename):
false_positives_percentage = round((false_positives*1000.0)/total)/10
false_negatives_percentage = round((false_negatives*1000.0)/total)/10
-print str(true_positives_percentage)+'% true positives, '+str(false_positives_percentage)+'% false positives, '+str(true_negatives_percentage)+'% true negatives, '+str(false_negatives_percentage)+'% false negatives'
+print str(true_positives_percentage)+'% true positives, '+str(false_positives_percentage)+'% false positives, '+str(true_negatives_percentage)+'% true negatives, '+str(false_negatives_percentage)+'% false negatives'

0 comments on commit 932dea9

Please sign in to comment.