rcognita.visualization.vis_grid_world.AnimatorGridWorld
- class rcognita.visualization.vis_grid_world.AnimatorGridWorld(reward_cell_xy, starting_cell_xy, punishment_cells, scenario, N_iterations=50)
- __init__(reward_cell_xy, starting_cell_xy, punishment_cells, scenario, N_iterations=50)
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(reward_cell_xy, starting_cell_xy, …)Initialize self.
animate(k)collect_dashboards(*dashboards)create_grid(ax[, space])get_anm(anm)anmshould be aFuncAnimationobject.get_index(r, c)init_anim()map_action2arrow(action, rectangle)playback()set_sim_data(**kwargs)This function is needed for playback purposes when simulation data were generated elsewhere.
stop_anm()Stops animation, provided that
self.anmwas defined viaget_anm.update_dashboards(update_variant)update_grid(iter)