In [1]:
%run local_experiments.py



In [8]:
res.keys()


Out[8]:
['efforts', 'high_statuses', 'ave_effort', 'ave_state']

In [3]:
ave_effort = np.reshape(res['ave_effort'], (10,10))

In [4]:
ave_effort


Out[4]:
array([[ 0.97524752,  0.99306931,  0.99405941,  0.57029703,  0.03069307,
         0.01287129,  0.0039604 ,  0.0029703 ,  0.00792079,  0.11980198],
       [ 0.93564356,  0.9970297 ,  0.96732673,  0.4       ,  0.07623762,
         0.03465347,  0.02574257,  0.01683168,  0.04455446,  0.18019802],
       [ 0.99108911,  0.9960396 ,  0.95445545,  0.51386139,  0.2009901 ,
         0.06633663,  0.03663366,  0.03960396,  0.12574257,  0.55544554],
       [ 0.9950495 ,  0.9950495 ,  0.99405941,  0.64455446,  0.43168317,
         0.22376238,  0.10891089,  0.14554455,  0.52673267,  0.98811881],
       [ 0.9960396 ,  0.9970297 ,  0.99306931,  0.95346535,  0.5950495 ,
         0.47524752,  0.44950495,  0.71980198,  0.98316832,  0.99306931],
       [ 0.9950495 ,  0.99306931,  0.9980198 ,  0.9950495 ,  0.93465347,
         0.9029703 ,  0.93366337,  0.99009901,  0.99306931,  0.99405941],
       [ 0.99405941,  0.9950495 ,  0.99405941,  0.99405941,  0.98910891,
         0.97029703,  0.9950495 ,  0.9970297 ,  0.99306931,  0.9970297 ],
       [ 0.99405941,  0.9950495 ,  0.99207921,  0.96633663,  0.85049505,
         0.76435644,  0.63168317,  0.84554455,  0.98415842,  0.9950495 ],
       [ 0.99405941,  0.99405941,  0.99207921,  0.83762376,  0.73069307,
         0.44752475,  0.3039604 ,  0.28910891,  0.68910891,  0.97029703],
       [ 0.9980198 ,  0.9970297 ,  0.99207921,  0.75148515,  0.36930693,
         0.01287129,  0.00693069,  0.0029703 ,  0.0039604 ,  0.66534653]])

In [9]:
ave_state = np.reshape(res['ave_state'], (10,10))

In [11]:
plt.pcolor(ave_effort)
plt.colorbar()

figure()
plt.pcolor(ave_state)
plt.colorbar()


Out[11]:
<matplotlib.colorbar.Colorbar instance at 0x10887f320>

In [13]:
from IPython.display import HTML
HTML('<iframe src=http://matplotlib.org/gallery.html width=1024 height=500></iframe>')


Out[13]:

In [ ]: