Assignment 2 - possible issues

  • Depending on your TensorFlow version you may get an error about 'truncated_normal', change this to ''normal' in that case.
  • If you don't have matplotlib or have issues with this, you may use PIL instead.  from PIL import Image; img = Image.fromarray(numpy_array); buffer = BytesIO(); img.save(buffer, 'PNG)';
  • Make sure the output of 'next_action' is of dtype 'int' with value between 0 and 3 (including). (Numpy ints cause issue, for this to work you need to change the 'not isinstance(move, int)' to 'isinstance(move, str)' the two places it occurs in simulator.py)
Publisert 3. okt. 2018 13:28 - Sist endret 3. okt. 2018 15:54