Add simple matplotlib bar plots per run

This commit is contained in:
LSaldyt
2017-09-26 21:16:20 -06:00
parent bc848e8f2d
commit 4348554fa7
4 changed files with 54225 additions and 1 deletions

View File

@ -2,7 +2,7 @@
import argparse
import logging
from copycat import Copycat, Reporter
from copycat import Copycat, Reporter, plot_answers
class SimpleReporter(Reporter):
def report_answer(self, answer):
@ -27,5 +27,7 @@ def main():
for answer, d in sorted(iter(answers.items()), key=lambda kv: kv[1]['avgtemp']):
print('%s: %d (avg time %.1f, avg temp %.1f)' % (answer, d['count'], d['avgtime'], d['avgtemp']))
plot_answers(answers)
if __name__ == '__main__':
main()