jaclearn.rl.proxy#

Classes

Functions

find_proxy(environ, proxy_cls)

manipulate_reward(player, func)

remove_proxies(environ)

Remove all wrapped proxy environs

Class AutoRestartProxy

class AutoRestartProxy[source]#

Bases: ProxyRLEnvBase

__init__(other)#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class HistoryFrameProxy

class HistoryFrameProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, history_length)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
copy_history()[source]#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
restore_history(history)[source]#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class LimitLengthProxy

class LimitLengthProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, limit)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
set_limit(limit)[source]#
property action_space#
property current_state#
property limit#
property proxy#
property stats#
property unwrapped#

Class MapActionProxy

class MapActionProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, mapping)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class MapStateProxy

class MapStateProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, func)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class NOPFillProxy

class NOPFillProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, nr_fill, nop=0)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class RepeatActionProxy

class RepeatActionProxy[source]#

Bases: ProxyRLEnvBase

__init__(other, repeat)[source]#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Class TransparentAttributeProxy

class TransparentAttributeProxy[source]#

Bases: ProxyRLEnvBase

__init__(other)#
__new__(**kwargs)#
action(action)#
append_stat(name, value)#
clear_stats()#
evaluate_one_episode(func)#
finish(*args, **kwargs)#
play_one_episode(func, ret_states=False, ret_actions=False, restart_kwargs=None, finish_kwargs=None, max_steps=10000)#
restart(*args, **kwargs)#
property action_space#
property current_state#
property proxy#
property stats#
property unwrapped#

Functions

find_proxy(environ, proxy_cls)[source]#
manipulate_reward(player, func)[source]#
remove_proxies(environ)[source]#

Remove all wrapped proxy environs