Ejemplo n.º 1
0
 def visualize_policy(self, policy):
     from simple_rl.utils import mdp_visualizer as mdpv
     from simple_rl.tasks.ltl_amdp.cleanup_visualizer import draw_state
     mdpv.visualize_policy(self,
                           policy=policy,
                           draw_state=draw_state,
                           action_char_dict={})
     input("Press anything to quit ")
Ejemplo n.º 2
0
    def visualize_policy(self, policy):
        from simple_rl.utils import mdp_visualizer as mdpv
        from simple_rl.tasks.grid_world.grid_visualizer import _draw_state

        action_char_dict = {
            "up":"^",       #u"\u2191",
            "down":"v",     #u"\u2193",
            "left":"<",     #u"\u2190",
            "right":">",    #u"\u2192"
        }

        mdpv.visualize_policy(self, policy, _draw_state, action_char_dict)
Ejemplo n.º 3
0
    def visualize_policy(self, policy):
        from simple_rl.utils import mdp_visualizer as mdpv
        from grid_visualizer import _draw_state
        ["up", "down", "left", "right"]

        action_char_dict = {
            "up": u"\u2191",
            "down": u"\u2193",
            "left": u"\u2190",
            "right": u"\u2192"
        }

        mdpv.visualize_policy(self, policy, _draw_state, action_char_dict)
        raw_input("Press anything to quit ")
        quit()
    def visualize_policy(self,
                         policy,
                         width_scr_scale=180,
                         height_scr_scale=180):
        from simple_rl.utils.mdp_visualizer import visualize_policy
        from .cookie_crumb_visualizer import _draw_state

        action_char_dict = {
            "up": "^",  #u"\u2191",
            "down": "v",  #u"\u2193",
            "left": "<",  #u"\u2190",
            "right": ">",  # u"\u2192"
            "pickup": "pk",  # u"\u2192"
            "dropoff": "dp",  # u"\u2192"
            "refuel": "rf",  # u"\u2192"
        }
        visualize_policy(self,
                         policy,
                         _draw_state,
                         action_char_dict,
                         scr_width=self.width * width_scr_scale,
                         scr_height=self.height * height_scr_scale)
Ejemplo n.º 5
0
 def visualize_policy(self, policy):
     from simple_rl.utils import mdp_visualizer as mdpv
     from simple_rl.tasks.cleanup.cleanup_visualizer import draw_state
     mdpv.visualize_policy(self, policy=policy, draw_state=draw_state, action_char_dict={})
     input("Press anything to quit ")