memorax.algorithms.PQN#

class memorax.algorithms.PQN[source]#

Bases: object

PQN(cfg: memorax.algorithms.pqn.PQNConfig, env: gymnax.environments.environment.Environment, env_params: gymnax.environments.environment.EnvParams, q_network: flax.linen.module.Module, optimizer: optax._src.base.GradientTransformation, epsilon_schedule: collections.abc.Callable[[typing.Union[jax.Array, numpy.ndarray, numpy.bool, numpy.number, bool, int, float, complex]], typing.Union[jax.Array, numpy.ndarray, numpy.bool, numpy.number, bool, int, float, complex]])

cfg: PQNConfig#
env: Environment#
env_params: EnvParams#
q_network: Module#
optimizer: GradientTransformation#
epsilon_schedule: Callable[[Array | ndarray | bool | number | bool | int | float | complex], Array | ndarray | bool | number | bool | int | float | complex]#
init(key)[source]#
Return type:

PQNState

Parameters:

key (Array)

warmup(key, state, num_steps)[source]#
Return type:

PQNState

Parameters:
train(key, state, num_steps)[source]#
Return type:

PQNState

Parameters:
evaluate(key, state, num_steps)[source]#
Return type:

PQNState

Parameters:
__init__(cfg, env, env_params, q_network, optimizer, epsilon_schedule)#
Parameters:
Return type:

None