Example #1
0
 def agent_init(self, taskSpecification):
     ts = TaskSpecParser(taskSpecification)
     print ts.getIntObservations()
     
     time.sleep(10)
     
     self.window = curses.initscr()
     curses.noecho()
     curses.cbreak()
     self.window.keypad(1)
Example #2
0
    def agent_init(self, taskSpecification):
        ts = TaskSpecParser(taskSpecification)
        print ts.getIntObservations()

        time.sleep(10)

        self.window = curses.initscr()
        curses.noecho()
        curses.cbreak()
        self.window.keypad(1)
Example #3
0
 def agent_init(self, task_spec):
     """Re-initialize the agent for a new training round."""
     
     ts = TaskSpecParser(task_spec)
     
     # Grid size
     intobs = ts.getIntObservations()
     self.size = (intobs[0][1], intobs[1][1])
     
     # Exploration setup
     self.explore_steps = self.size[0] / 10
Example #4
0
    def agent_init(self, task_spec):
        """Re-initialize the agent for a new training round."""

        ts = TaskSpecParser(task_spec)

        # Grid size
        intobs = ts.getIntObservations()
        self.size = (intobs[0][1], intobs[1][1])

        # Exploration setup
        self.explore_steps = self.size[0] / 10