MCPcopy Create free account

hub / github.com/EMI-Group/evorl / functions

Functions1,203 in github.com/EMI-Group/evorl

↓ 1 callersFunctioncompute_centered_ranks
(x)
evorl/ec/evox_algorithm/openes.py:29
↓ 1 callersFunctioncompute_gae_with_horizon
( rewards: jax.Array, # [T, B] values: jax.Array, # [T+1, B] dones: jax.Array, # [T, B] ter
evorl/utils/rl_toolkits.py:118
↓ 1 callersFunctioncompute_pg_advantage
( vtrace, v_t, v_t_plus_1, rewards, terminations, discount=0.99, lambda_=1.0,
evorl/algorithms/impala.py:577
↓ 1 callersFunctioncompute_ranks
Returns ranks in [0, len(x)-1]. Note: This is different from scipy.stats.rankdata, which returns ranks in [1, len(x)].
evorl/ec/evox_algorithm/openes.py:19
↓ 1 callersFunctioncompute_ranks
Get ranks in [0, len(x)-1]. This is different from `scipy.stats.rankdata`, which returns ranks in [1, len(x)].
evorl/ec/optimizers/openes.py:17
↓ 1 callersMethodcompute_values
( self, agent_state: AgentState, sample_batch: SampleBatch )
evorl/algorithms/ppo.py:204
↓ 1 callersMethodcontains
(self, x: chex.Array)
evorl/envs/space.py:59
↓ 1 callersFunctioncreate_dummy_td3_trainmetric
(num: int)
evorl/algorithms/erl/erl_td3/erl_td3_workflow.py:245
↓ 1 callersFunctioncreate_envpool_env
Create an EnvPool environment with Gymnasium API. Unlike other jax-based env, most wrappers are handled inside the envpool.
evorl/envs/envpool.py:226
↓ 1 callersFunctioncreate_gymnasium_env
Create a gym env based on Gymnasium. Unlike other jax-based env, most wrappers are handled inside the gymnasium.
evorl/envs/gymnasium.py:295
↓ 1 callersFunctioncreate_gymnax_env
( env_name: str, flatten_obs: bool = True, **kwargs )
evorl/envs/gymnax.py:114
↓ 1 callersFunctioncreate_jumanji_env
(env_name: str, **kwargs)
evorl/envs/jumanji.py:70
↓ 1 callersFunctioncreate_wrapped_gymnax_env
( env_name: str, flatten_obs: bool = True, episode_length: int = 1000, parallel: int = 1,
evorl/envs/gymnax.py:136
↓ 1 callersMethodcritic_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/ddpg.py:130
↓ 1 callersMethodcritic_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/td7.py:300
↓ 1 callersMethodcritic_loss
Critic loss in TD3. Args: sample_barch: [B, ...] Return: LossDict[ actor_loss critic_loss
evorl/algorithms/td3.py:137
↓ 1 callersMethodcritic_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/sac.py:179
↓ 1 callersFunctiondecentralized_env_step
Collect one-step data.
evorl/rollout_ma.py:26
↓ 1 callersFunctiondecentralized_env_step_with_shared_model
Collect one-step data.
evorl/rollout_ma.py:114
↓ 1 callersFunctiondisable_gpu_preallocation
()
tests/conftest.py:9
↓ 1 callersFunctionenable_deterministic_mode
()
tests/conftest.py:17
↓ 1 callersMethodenable_jit
Define which methods should be jitted. By default, the workflow's `step()` and `evaluate()` methods are jitted.
evorl/workflows/rl_workflow.py:119
↓ 1 callersMethodenable_jit
(cls)
evorl/algorithms/erl/erl_workflow.py:242
↓ 1 callersMethodenable_jit
(cls)
evorl/algorithms/erl/cemrl_workflow.py:234
↓ 1 callersFunctionenable_nan_inf_check
()
tests/conftest.py:13
↓ 1 callersMethodenable_shmap
Define which methods should be shmaped. This method defines the multi-device behavior. By default, the workflow's `step()` and `evaluate()` m
evorl/workflows/rl_workflow.py:128
↓ 1 callersMethodencoder_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/td7.py:272
↓ 1 callersFunctionenv_step
Collect one-step data.
evorl/rollout.py:39
↓ 1 callersFunctionenv_step
( env_fn: EnvStepFn, action_fn: AgentActionFn, env_state: EnvState, agent_state: AgentState,
evorl/evaluators/ec_evaluator.py:15
↓ 1 callersFunctioneval_metrics
( env_fn: Callable[[EnvState, Action], EnvState], action_fn: Callable[ [AgentState, SampleBatc
evorl/evaluators/mo_brax_evaluator.py:201
↓ 1 callersFunctioneval_rollout_episode
Evaulate a batch of episodic trajectories. The retruned metrics are defined by `metric_names`.
evorl/evaluators/mo_brax_evaluator.py:151
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/random_agent.py:89
↓ 1 callersMethodevaluate
(self, state)
evorl/algorithms/contrib/pop_ppo.py:47
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/contrib/pop_episodic_td3.py:215
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/erl/erl_td3/erl_eda.py:362
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/erl/erl_td3/erl_es.py:310
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/erl/erl_td3/erl_ga.py:303
↓ 1 callersMethodevaluate
(self, state: State)
evorl/algorithms/meta/pbt_openes/pbt_param_openes.py:55
↓ 1 callersMethodevaluate
Evaluate the policy with the mean of ES.
evorl/algorithms/ec/so/es_workflow.py:49
↓ 1 callersFunctionfast_eval_metrics
Fast evaulate a batch of episodic trajectories. The retruned metrics are defined by `metric_names`.
evorl/evaluators/mo_brax_evaluator.py:243
↓ 1 callersFunctionfast_eval_rollout_episode
Fast evaulate a batch of episodic trajectories. A even faster implementation than `eval_rollout_episode()`. It achieves early termination when it
evorl/rollout.py:201
↓ 1 callersFunctionflatten_pop_rollout_trajectory
Flatten the trajectory from [#pop, T, B, ...] to [#pop*T*B, ...].
evorl/algorithms/contrib/pop_td3.py:496
↓ 1 callersFunctionfold_multi_steps
Fold multiple steps into a single step function.
evorl/utils/rl_toolkits.py:242
↓ 1 callersFunctiong
(carry)
evorl/distributed/sharding.py:35
↓ 1 callersFunctionget_global_ranks
Return the global rank for each device. Returns: The sharded ranks across devices. Each device has a unique rank.
evorl/distributed/comm.py:69
↓ 1 callersFunctionget_gpus_info
()
scripts/train_dist.py:24
↓ 1 callersFunctionget_process_id
Return the node id in multi-node distributed env.
evorl/distributed/comm.py:61
↓ 1 callersFunctionget_random_actions
(env: MultiAgentEnv)
evorl/envs/jaxmarl.py:28
↓ 1 callersFunctionget_std_statistics
(variance)
evorl/algorithms/erl/cemrl_td3/cemrl.py:396
↓ 1 callersFunctionget_train_episode_return
Handle episode return array with MISSING_REWARD, i.e., returned from multiple call of average_episode_discount_return.
evorl/algorithms/contrib/a2c_v2.py:65
↓ 1 callersMethodinit
Initialize the recorder.
evorl/recorders/recorder.py:10
↓ 1 callersMethodinit
(self, mean: Params, key: chex.PRNGKey)
evorl/ec/optimizers/openes.py:69
↓ 1 callersFunctioninit_obs_preprocessor_with_random_timesteps
( obs_preprocessor_state: Any, timesteps: int, env: Env, key: chex.PRNGKey, dp_axis_name:
evorl/algorithms/ec/obs_utils.py:54
↓ 1 callersFunctionis_dist_initialized
Whether the JAX's distributed setting is initialized.
evorl/distributed/comm.py:55
↓ 1 callersMethodloss
IMPALA loss. Args: trajectory: [T, B, ...] a sequence of transitions, not shuffled timesteps
evorl/algorithms/impala.py:140
↓ 1 callersMethodloss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/a2c.py:133
↓ 1 callersMethodloss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/ppo.py:142
↓ 1 callersMethodloss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/dqn.py:129
↓ 1 callersMethodloss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/meta/pbt_ppo/param_ppo.py:45
↓ 1 callersFunctionloss_and_pgrad
( loss_fn: Callable[..., float], dp_axis_name: str | None, has_aux: bool = False )
evorl/distributed/gradients.py:13
↓ 1 callersFunctionloss_fn
(loc, scale)
tests/test_distribution.py:38
↓ 1 callersFunctionmake_deterministic_ec_agent
( action_space: Space, actor_hidden_layer_sizes: tuple[int] = (256, 256), use_bias: bool = True,
evorl/algorithms/contrib/ars_linear.py:56
↓ 1 callersFunctionmake_mabrax_env
(env_id: str, **env_kwargs)
evorl/envs/jaxmarl_envs/mabrax.py:148
↓ 1 callersFunctionmake_mlp_ddpg_agent
( action_space: Space, critic_hidden_layer_sizes: tuple[int] = (256, 256), actor_hidden_layer_size
evorl/algorithms/ddpg.py:180
↓ 1 callersFunctionmake_mlp_discrete_dqn_agent
( action_space: Space, discount: float = 0.99, target_type: str = "DDQN", q_hidden_layer_sizes
evorl/algorithms/dqn.py:169
↓ 1 callersFunctionmake_mlp_ppo_agent
( action_space: Space, clip_epsilon: float = 0.2, actor_hidden_layer_sizes: tuple[int] = (256, 256
evorl/algorithms/ppo.py:214
↓ 1 callersFunctionmake_mlp_ppo_agent
( action_space: Space, clip_epsilon: float = 0.2, actor_hidden_layer_sizes: tuple[int] = (256, 256
evorl/algorithms/meta/pbt_ppo/param_ppo.py:113
↓ 1 callersFunctionmake_mlp_sac_agent
( action_space: Space, num_critics: int = 2, critic_hidden_layer_sizes: tuple[int] = (256, 256),
evorl/algorithms/sac.py:381
↓ 1 callersFunctionmake_mlp_sac_agent
( action_space: Space, critic_hidden_layer_sizes: tuple[int] = (256, 256), actor_hidden_layer_size
evorl/algorithms/meta/pbt_sac/param_sac.py:92
↓ 1 callersFunctionmake_mlp_td3_agent
( action_space: Space, norm_layer_type: str = "none", num_critics: int = 2, critic_hidden_laye
evorl/algorithms/td3.py:230
↓ 1 callersFunctionmake_policy_network
Creates a policy network.
evorl/algorithms/contrib/ars_linear.py:28
↓ 1 callersFunctionmake_td7_agent
( action_space: Space, z_s_dim: int = 256, z_sa_dim: int = 256, f_layer_sizes: Sequence[int] =
evorl/algorithms/td7.py:423
↓ 1 callersFunctionmlp_crossover
( x1: chex.ArrayTree, x2: chex.ArrayTree, key: chex.PRNGKey, *, num_crossover_frac: float
evorl/ec/operators/crossover/mlp_crossover.py:12
↓ 1 callersFunctionmlp_mutate
Mutation for MLP. Args: key: PRNGKey x: single individual, vec_relative_prob: probability of mutating a vector(1-d) param
evorl/ec/operators/mutation/mlp_mutation.py:12
↓ 1 callersMethodreset
(self, key: chex.PRNGKey)
evorl/envs/mujoco_playground.py:47
↓ 1 callersMethodreset
(self, key: chex.PRNGKey)
evorl/envs/jaxmarl.py:147
↓ 1 callersMethodreset
Reset the vmapped env. Args: key: support batched keys [B,2] or single key [2]
evorl/envs/wrappers/training_wrapper.py:314
↓ 1 callersMethodreset
(self, key: chex.PRNGKey)
evorl/envs/wrappers/reward_wrapper.py:22
↓ 1 callersMethodreset_max_priority
Recompute max_priority from current buffer entries.
evorl/replay_buffers/prioritized_replay_buffer.py:180
↓ 1 callersMethodrestore
(self, step, items, **kwargs)
evorl/utils/orbax_utils.py:136
↓ 1 callersFunctionrollout_episode
( agent_state: AgentState, replay_buffer_state, key, *, collector, replay_buffer,
evorl/algorithms/erl/cemrl_td3/cemrl_td3_workflow.py:148
↓ 1 callersFunctionrollout_obs
( env_fn: EnvStepFn, action_fn: AgentActionFn, env_state: EnvState, agent_state: AgentState,
evorl/algorithms/ec/obs_utils.py:90
↓ 1 callersFunctionsave
Save state to a file. Args: path: Checkpoint path. state: The state to be saved.
evorl/utils/orbax_utils.py:15
↓ 1 callersFunctionselect
Select parents to replace worse individuals.
evorl/algorithms/meta/pbt_operations.py:36
↓ 1 callersFunctionset_default_device_cpu
()
tests/conftest.py:4
↓ 1 callersMethodset_frozen_attr
Force set attribute after __init__ of the dataclass.
evorl/types.py:275
↓ 1 callersFunctionset_gpu_id
()
scripts/train_dist.py:31
↓ 1 callersMethodsetup
(self, key: chex.PRNGKey)
evorl/workflows/workflow.py:84
↓ 1 callersMethodsetup
(self, key: chex.PRNGKey)
evorl/algorithms/meta/pbt_workflow.py:163
↓ 1 callersFunctionsetup_a2c
()
tests/test_a2c.py:8
↓ 1 callersFunctionsetup_checkpoint_manager
Setup checkpoint manager.
evorl/utils/orbax_utils.py:145
↓ 1 callersMethodsetup_env_callback
(self)
evorl/envs/envpool.py:78
↓ 1 callersMethodsetup_env_callback
(self)
evorl/envs/gymnasium.py:89
↓ 1 callersFunctionsetup_recorders
(config: DictConfig, workflow_name: str)
scripts/train.py:17
↓ 1 callersFunctionsetup_recorders
(config: DictConfig, workflow_name: str)
scripts/train_dist.py:54
↓ 1 callersFunctionsetup_trajectory
()
tests/test_impala.py:12
↓ 1 callersFunctionsliding_window
Slide a window over the fist axis of the array. Change shape from [T, ...] to [L, W, ...], where W = (T - L) // S + 1 is the number of windows.
evorl/utils/jax_utils.py:316
↓ 1 callersMethodstep
(self, state: EnvState, action: jax.Array)
evorl/envs/wrappers/training_wrapper.py:163
↓ 1 callersMethodstep
(self, state: EnvState, action: Action)
evorl/envs/wrappers/wrapper.py:22
↓ 1 callersMethodstep
(self, state: EnvState, action: Action)
evorl/envs/wrappers/reward_wrapper.py:30
← previousnext →301–400 of 1,203, ranked by callers