Skip to content

Commit 8bc7f8a

Browse files
committed
updated classifiers benchmarking plot
1 parent d53c4fb commit 8bc7f8a

File tree

9 files changed

+636
-13
lines changed

9 files changed

+636
-13
lines changed

.idea/finding_donors.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 305 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.ipynb_checkpoints/finding_donors-checkpoint.ipynb

Lines changed: 144 additions & 4 deletions
Large diffs are not rendered by default.

classifiers_benchmark.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,25 @@ def nEnc(x):
141141
plt.ylabel('F-Score Test ')
142142
plt.title('Classifier F-Score on Test Data Set')
143143
plt.xticks(index, clf_lnames[j])
144-
plt.bar(index, impdata1, bar_width, alpha=opacity, color='k')
145-
plt.legend()
144+
145+
bar1 = plt.bar(index, impdata1, bar_width, alpha=opacity, color='k')
146+
for rect in bar1:
147+
height = rect.get_height()
148+
plt.text(rect.get_x() + rect.get_width()/2.0, height, '%f' % height, ha='center', va='top',color='b')
149+
146150

147151
plt.subplot(2, 3, j+4)
148152

149153
plt.xlabel('Classifier')
150154
plt.ylabel('Train Times ')
151155
plt.title('Classifier Training Data Set Times')
152156
plt.xticks(index, clf_lnames[j])
153-
plt.bar(index, impdata2, bar_width, alpha=opacity, color='g')
154-
plt.legend()
157+
158+
bar2 = plt.bar(index, impdata2, bar_width, alpha=opacity, color='g')
159+
for rect in bar2:
160+
height = rect.get_height()
161+
plt.text(rect.get_x() + rect.get_width()/2.0, height, '%f' % height, ha='center', va='top',color='b')
162+
155163

156164
plt.tight_layout()
157-
plt.show()
165+
plt.show()

finding_donors.ipynb

Lines changed: 144 additions & 4 deletions
Large diffs are not rendered by default.

trainPredict.pyc

1.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)