agent defined
learning: (2, True) <function wakeup at 0x7f227be6a598> (2, False) 0
put it on the q
learning: (2, False) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
learning: (2, True) <function wakeup at 0x7f227be6a598> (2, False) 0
put it on the q
no change in state (2, False) (2, False)
sensing q: 1
learning: (2, False) <function wakeup at 0x7f227be6a598> (1, False) 1
put it on the q
learning: (1, False) <function go_to_sleep at 0x7f227be84f28> (1, True) 0
put it on the q
learning: (1, True) <function wakeup at 0x7f227be6a598> (1, False) 0
put it on the q
no change in state (1, False) (1, False)
sensing q: 1
learning: (1, False) <function wakeup at 0x7f227be6a598> (0, True) -10
put it on the q
learning: (0, True) <function wakeup at 0x7f227be6a598> (0, False) -10
put it on the q
no change in state (0, False) (0, False)
sensing q: 1
learning: (0, False) <function wakeup at 0x7f227be6a598> (0, True) -10
put it on the q
no change in state (0, True) (0, True)
sensing q: 1
learning: (0, True) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
no change in state (2, True) (2, True)
sensing q: 1
learning: (2, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
learning: (4, False) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (2, False) 1
put it on the q
no change in state (2, False) (2, False)
sensing q: 1
learning: (2, False) <function wakeup at 0x7f227be6a598> (0, True) -10
put it on the q
no change in state (0, True) (0, True)
sensing q: 1
learning: (0, True) <function go_to_sleep at 0x7f227be84f28> (1, True) 0
put it on the q
no change in state (1, True) (1, True)
sensing q: 1
learning: (1, True) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
learning: (3, True) <function wakeup at 0x7f227be6a598> (3, False) 0
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (2, False) 1
put it on the q
learning: (2, False) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
learning: (2, True) <function wakeup at 0x7f227be6a598> (2, False) 0
put it on the q
learning: (2, False) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
no change in state (2, True) (2, True)
sensing q: 1
learning: (2, True) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
learning: (3, True) <function wakeup at 0x7f227be6a598> (3, False) 0
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (2, False) 1
put it on the q
learning: (2, False) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
no change in state (2, True) (2, True)
sensing q: 1
learning: (2, True) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (2, False) 1
put it on the q
learning: (2, False) <function go_to_sleep at 0x7f227be84f28> (2, True) 0
put it on the q
no change in state (2, True) (2, True)
sensing q: 1
learning: (2, True) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
learning: (4, False) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (4, False) 1
put it on the q
no change in state (4, False) (4, False)
sensing q: 1
learning: (4, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q: 1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)
sensing q: 1
learning: (5, False) <function wakeup at 0x7f227be6a598> (3, False) 1
put it on the q
learning: (3, False) <function go_to_sleep at 0x7f227be84f28> (3, True) 0
put it on the q
no change in state (3, True) (3, True)
sensing q: 1
learning: (3, True) <function go_to_sleep at 0x7f227be84f28> (4, True) 0
put it on the q
no change in state (4, True) (4, True)
sensing q:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-3-39ad8895081a> in <module>()
110 loop.stop()
111 loop.call_later(100, loop_stopper)
--> 112 loop.run_until_complete(asyncio.wait(tasks))
113 loop.close()
/usr/lib/python3.4/asyncio/base_events.py in run_until_complete(self, future)
312 future.remove_done_callback(_run_until_complete_cb)
313 if not future.done():
--> 314 raise RuntimeError('Event loop stopped before Future completed.')
315
316 return future.result()
RuntimeError: Event loop stopped before Future completed.
1
learning: (4, True) <function go_to_sleep at 0x7f227be84f28> (5, False) 0
put it on the q
no change in state (5, False) (5, False)