Mercurial > hg > webaudioevaluationtool
comparison scripts/score_plot.py @ 1051:cabeed51943a
Scripts: evaluation_stats.py added to quickly show a report on tests done so far (to be expanded)
author | Brecht De Man <BrechtDeMan@users.noreply.github.com> |
---|---|
date | Wed, 01 Jul 2015 11:09:17 +0100 |
parents | 1dd209550560 |
children | 4345ba8a1b6e |
comparison
equal
deleted
inserted
replaced
1050:6e97481ae3b1 | 1051:cabeed51943a |
---|---|
9 import scipy.stats | 9 import scipy.stats |
10 | 10 |
11 # CONFIGURATION | 11 # CONFIGURATION |
12 | 12 |
13 # Which type(s) of plot do you want? | 13 # Which type(s) of plot do you want? |
14 enable_boxplot = False # show box plot | 14 enable_boxplot = True # show box plot |
15 enable_confidence = True # show confidence interval | 15 enable_confidence = False # show confidence interval |
16 confidence = 0.90 # confidence value (for confidence interval plot) | 16 confidence = 0.90 # confidence value (for confidence interval plot) |
17 enable_individual = True # show all individual ratings | 17 enable_individual = False # show all individual ratings |
18 show_individual = [] # show specific individuals | 18 show_individual = [] # show specific individuals |
19 show_legend = False # show names of individuals | 19 show_legend = False # show names of individuals |
20 #TODO: Merge, implement this functionality | 20 #TODO: Merge, implement this functionality |
21 #TODO: Control by CLI arguments (plot types, save and/or show, ...) | 21 #TODO: Control by CLI arguments (plot types, save and/or show, ...) |
22 | 22 |
54 converters = {3: lambda s: float(s or 'Nan')}, | 54 converters = {3: lambda s: float(s or 'Nan')}, |
55 usecols=range(1,len(headerrow)+1) | 55 usecols=range(1,len(headerrow)+1) |
56 ) | 56 ) |
57 | 57 |
58 # assert at least 2 subjects (move on to next file if violated) | 58 # assert at least 2 subjects (move on to next file if violated) |
59 if ratings.shape[1]<2: | 59 if ratings.shape[0]<2: |
60 print "WARNING: Just one subject for " + page_name + ". Moving on to next file." | 60 print "WARNING: Just one subject for " + page_name + ". Moving on to next file." |
61 break | 61 break |
62 | 62 |
63 # BOXPLOT | 63 # BOXPLOT |
64 if enable_boxplot: | 64 if enable_boxplot: |