Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

another useless die

  • Loading branch information...
commit 932dea962ae4b647bb023297c3f24ca0c17d4a2f 1 parent cc8ca96
@ogrisel ogrisel authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.