Beispiel #1
0
                '    NOTE: Sum of Action Probability=%g  WILL BE NORMALIZED TO 1.0'
                % sum_a_prob)


if __name__ == "__main__":  # pragma: no cover

    from introrl.environments.env_baseline import EnvBaseline

    IO = DefineStateMoves('State_1')
    #IO.summ_print()

    #print('_'*55)
    IO.add_action('U', .5)
    IO.add_action('D', .51)
    #IO.summ_print()

    #print('_'*55)
    IO.add_transition('U', (2, 2), 0.2, 0.0)
    IO.add_transition('U', (2, 0), 0.79, 1.0)
    #IO.summ_print()

    #print('_'*55)
    IO.add_transition('D', (2, 0), 1.0, 1.0)
    IO.summ_print()

    print('_' * 55)

    env = EnvBaseline()
    IO.add_to_environment(env)
    env.summ_print()
Beispiel #2
0
#import introrl
#print(introrl.__file__)

from introrl.environments.env_baseline import EnvBaseline
grid_world = EnvBaseline(mdp_file='Simple_Grid_World')
grid_world.summ_print()

#car_rental = EnvBaseline( mdp_file='Jacks_Car_Rental_(var_rtn)' )
#car_rental = EnvBaseline( mdp_file='Jacks_Car_Rental_(const_rtn)' )
#car_rental.summ_print()