0.0 of 500 , lr: 0.5
8.0 of 500 , lr: 0.4
8.0 of 500 , lr: 0.333333333333
14.0 of 500 , lr: 0.285714285714
12.0 of 500 , lr: 0.25
19.0 of 500 , lr: 0.222222222222
26.0 of 500 , lr: 0.2
32.0 of 500 , lr: 0.181818181818
36.0 of 500 , lr: 0.166666666667
71.0 of 500 , lr: 0.153846153846
95.0 of 500 , lr: 0.142857142857
109.0 of 500 , lr: 0.133333333333
153.0 of 500 , lr: 0.125
184.0 of 500 , lr: 0.117647058824
208.0 of 500 , lr: 0.111111111111
261.0 of 500 , lr: 0.105263157895
311.0 of 500 , lr: 0.1
332.0 of 500 , lr: 0.0952380952381
359.0 of 500 , lr: 0.0909090909091
352.0 of 500 , lr: 0.0869565217391
369.0 of 500 , lr: 0.0833333333333
353.0 of 500 , lr: 0.08
369.0 of 500 , lr: 0.0769230769231
368.0 of 500 , lr: 0.0740740740741
357.0 of 500 , lr: 0.0714285714286
361.0 of 500 , lr: 0.0689655172414
375.0 of 500 , lr: 0.0666666666667
359.0 of 500 , lr: 0.0645161290323
379.0 of 500 , lr: 0.0625
366.0 of 500 , lr: 0.0606060606061
KeyboardInterruptTraceback (most recent call last)
<ipython-input-12-3c88868f2b63> in <module>()
17 while not done:
18 #next action
---> 19 a = model.next_action(s)
20
21 #take step
<ipython-input-11-106bfd9fce64> in next_action(self, state)
50
51 def next_action(self, state):
---> 52 actions = self.sess.run(self.Ps, feed_dict={self.s: [state]})[0]
53 n = len(actions)
54
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)
764 try:
765 result = self._run(None, fetches, feed_dict, options_ptr,
--> 766 run_metadata_ptr)
767 if run_metadata:
768 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)
962 if final_fetches or final_targets:
963 results = self._do_run(handle, final_targets, final_fetches,
--> 964 feed_dict_string, options, run_metadata)
965 else:
966 results = []
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
1012 if handle is None:
1013 return self._do_call(_run_fn, self._session, feed_dict, fetch_list,
-> 1014 target_list, options, run_metadata)
1015 else:
1016 return self._do_call(_prun_fn, self._session, handle, feed_dict,
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)
1019 def _do_call(self, fn, *args):
1020 try:
-> 1021 return fn(*args)
1022 except errors.OpError as e:
1023 message = compat.as_text(e.message)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata)
1001 return tf_session.TF_Run(session, options,
1002 feed_dict, fetch_list, target_list,
-> 1003 status, run_metadata)
1004
1005 def _prun_fn(session, handle, feed_dict, fetch_list):
KeyboardInterrupt: