Skip to content

Commit

Permalink
fix valueerror. closes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Jan 24, 2019
1 parent 047db3f commit ee0eae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def plot_classification_report(classification_report, title='Classification repo
else:
lines = classification_report.split('\n')
for line in lines[2 : (len(lines) - 1)]:
t = line.strip().replace('avg / total', 'micro-avg').split()
t = line.strip().replace(' avg', '-avg').split()
if len(t) < 2: continue
classes.append(t[0])
v = [float(x)*100 for x in t[1: len(t) - 1]]
Expand Down

0 comments on commit ee0eae1

Please sign in to comment.