In [ ]:
%matplotlib inline
import os
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
from collections import defaultdict
sns.set(style="darkgrid")

In [93]:
#from exp_utils import collect_experiment_data, summarize_experiment_data
import exp_utils
#source1 = '/home/ruben/playground/HFO/experiments/EVAL/2016_09_12-14.38.02_SARSA_1_5'

source1 = '/home/leno/HFO/predator_prey/results/AdHocTD'
#source2 = '/home/leno/HFO/experiments/agentData/FilesWithTrainedAgent/AdHocVisitLoading'
#source2 = '/home/leno/HFO/experiments/results/AdHocVisitAction'
source2 = '/home/leno/HFO/predator_prey/results/AdHocVisit'
#source3 = '/home/leno/HFO/log/Torrey'
source3 = '/home/leno/HFO/predator_prey/results/Torrey'

#source5 = '/home/leno/HFO/experiments/agentData/FilesWithTrainedAgent/SARSATileLoading'
source4 = '/home/leno/HFO/predator_prey/results/QLearning'
source5 = '/home/leno/HFO/predator_prey/results/QLearning'
source6 = '/home/leno/HFO/predator_prey/results/Dummy'
name1 = 'AdHocTD'
name2 = 'AdHocVisit'
name3 = 'Torrey'
name4 = 'EpisodeSharing'
name5 = 'NoAdvice'
name6 = 'Random'

exp_utils.collect_experiment_data(source1, runs = 1000, hfo=False)
exp_utils.summarize_experiment_data(source1, hfo=False)
exp_utils.collect_experiment_data(source2, runs = 1000, hfo=False)
exp_utils.summarize_experiment_data(source2, hfo=False)
exp_utils.collect_experiment_data(source3, runs = 1000, hfo=False)
exp_utils.summarize_experiment_data(source3, hfo=False)
exp_utils.collect_experiment_data(source4, runs = 1000, hfo=False)
exp_utils.summarize_experiment_data(source4, hfo=False)
exp_utils.collect_experiment_data(source5, runs = 1000, hfo=False)
exp_utils.summarize_experiment_data(source5, hfo=False)
#exp_utils.collect_experiment_data(source6, runs = 1000, hfo=False)
#exp_utils.summarize_experiment_data(source6, hfo=False)


xMinStep = 0
xMaxStep = 400
yMinStep = None
yMaxStep = None

printCI = False
exp_utils.draw_graph(source1=source1, source2=source2, source3=source3,source4 = source4,source5=source5,source6=source6,
                     name5=name5,name4=name4, name3=name3, name1=name1, name2=name2,name6=name6, ci=printCI,what="__SUMMARY_stepscaptured")

exp_utils.draw_graph(source1=source1, source2=source2, source3=source3,source4 = source4,source5=source5,source6=source6,
                     name5=name5,name4=name4, name3=name3, name1=name1, name2=name2,name6=name6, ci=printCI,what="__SUMMARY_stepscaptured",
                    xMin = xMinStep, xMax = xMaxStep)

exp_utils.draw_graph(source1=source1, source2=source2,  source3=source3,source4=source4,name4=name4,
                     name3=name3,name1=name1, name2=name2,what="__SUMMARY_budgets",ci=printCI)


#exp_utils.draw_graph(source1=source1, source2=source2, source3=source3, source4=source4,ci=False)
#exp_utils.draw_graph(source1=source1, source2=source2,source3=source3,source4=source4, what="__SUMMARY_goaltimes",ci=False)
#exp_utils.draw_graph(source1=source1, source2=source2,source3=source3,source4=source4, what="__SUMMARY_budgets",ci=False)


Could use 1000 runs from expected 1000
len(evalUsedBudgets) 303 --> <type 'list'> 1000
Could use 1000 runs from expected 1000
len(evalUsedBudgets) 303 --> <type 'list'> 1000
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_9_AGENT_1_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_134_AGENT_1_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_9_AGENT_2_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_134_AGENT_2_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_9_AGENT_3_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
/home/leno/.conda/envs/leno/lib/python2.7/site-packages/numpy/lib/npyio.py:893: UserWarning: loadtxt: Empty input file: "<open file '/home/leno/HFO/predator_prey/results/Torrey/_0_134_AGENT_3_RESULTS_eval', mode 'rb' at 0x7f86d489e390>"
  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
Error 258 - 93 , 101
Error 384 - 5 , 101
Error 509 - 6 , 101
Error 634 - 8 , 101
Error 759 - 0 , 101
Error 884 - 17 , 101
Error 258 - 93 , 101
Error 384 - 5 , 101
Error 509 - 6 , 101
Error 634 - 8 , 101
Error 759 - 0 , 101
Error 884 - 17 , 101
Error 258 - 93 , 101
Error 384 - 5 , 101
Error 509 - 6 , 101
Error 634 - 9 , 101
Error 759 - 0 , 101
Error 884 - 17 , 101
Could use 63 runs from expected 1000
len(evalUsedBudgets) 303 --> <type 'list'> 63
Could use 1000 runs from expected 1000
len(evalUsedBudgets) 303 --> <type 'list'> 1000
Could use 1000 runs from expected 1000
len(evalUsedBudgets) 303 --> <type 'list'> 1000

In [ ]:


In [ ]: