git://git.onelab.eu
/
nepi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
faf87f9
)
small modification to th experiment runner
author
Alina Quereilhac
<alina.quereilhac@inria.fr>
Mon, 6 Oct 2014 18:57:10 +0000
(20:57 +0200)
committer
Alina Quereilhac
<alina.quereilhac@inria.fr>
Mon, 6 Oct 2014 18:57:10 +0000
(20:57 +0200)
src/nepi/execution/runner.py
patch
|
blob
|
history
diff --git
a/src/nepi/execution/runner.py
b/src/nepi/execution/runner.py
index
0afc730
..
2a78be0
100644
(file)
--- a/
src/nepi/execution/runner.py
+++ b/
src/nepi/execution/runner.py
@@
-130,12
+130,15
@@
class ExperimentRunner(object):
std = x.std()
se = std / math.sqrt(n)
m = x.mean()
std = x.std()
se = std / math.sqrt(n)
m = x.mean()
- se95 = se * 2
+
+ # confidence interval for 95% confidence level.
+ # Asuming samples are normally distributed
+ ci95 = se * 2
- ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f
SE95%%
%.2f \n" % (
- run, n, m, std,
se
95 ) )
+ ec.logger.info(" RUN %d - SAMPLES %d MEAN %.2f STD %.2f
CI (95%%)
%.2f \n" % (
+ run, n, m, std,
ci
95 ) )
- return m * 0.05 >=
se
95
+ return m * 0.05 >=
ci
95
def run_experiment(self, filepath, wait_time, wait_guids):
ec = ExperimentController.load(filepath)
def run_experiment(self, filepath, wait_time, wait_guids):
ec = ExperimentController.load(filepath)