Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EMI-Group/evorl
/ functions
Functions
1,203 in github.com/EMI-Group/evorl
⨍
Functions
1,203
◇
Types & classes
249
↳
Endpoints
1
↓ 2 callers
Function
tree_deepcopy
Deep copy the pytree. Useful for mutable pytree structure like dict. The return also includes a deepcopy of these mutable structures.
evorl/utils/jax_utils.py:292
↓ 1 callers
Method
__init__
Initialize the ECWorkflow instance. Args: config: the config object
evorl/workflows/ec_workflow.py:44
↓ 1 callers
Method
__init__
( self, env_name: str, max_episode_steps: int, num_envs: int, discount
evorl/envs/envpool.py:50
↓ 1 callers
Method
__init__
( self, env_name: str, max_episode_steps: int, num_envs: int, record_o
evorl/envs/gymnasium.py:52
↓ 1 callers
Method
__init__
(self, env: Env, reward_scale: float)
evorl/envs/wrappers/reward_wrapper.py:18
↓ 1 callers
Method
__init__
(self, env: Env)
evorl/envs/wrappers/action_wrapper.py:15
↓ 1 callers
Method
__init__
(self, workflow: RLWorkflow, evaluator: Evaluator, config: DictConfig)
evorl/algorithms/meta/pbt_workflow.py:74
↓ 1 callers
Method
__post_init__
(self)
evorl/ec/optimizers/vanilla_es.py:34
↓ 1 callers
Method
__post_init__
(self)
evorl/ec/optimizers/erl_ga.py:40
↓ 1 callers
Method
_build_from_config
Customize the process of building the workflow instance from the config. Args: config: Config of the workflow. Returns:
evorl/workflows/rl_workflow.py:77
↓ 1 callers
Method
_build_from_config
Customize the process of building the workflow instance from the config. Args: config: Config of the workflow Returns:
evorl/workflows/ec_workflow.py:95
↓ 1 callers
Method
_build_from_config
(cls, config: DictConfig)
evorl/algorithms/erl/erl_workflow.py:98
↓ 1 callers
Method
_build_from_config
(cls, config: DictConfig)
evorl/algorithms/erl/cemrl_workflow.py:89
↓ 1 callers
Method
_build_from_config
(cls, config: DictConfig)
evorl/algorithms/meta/pbt_workflow.py:119
↓ 1 callers
Function
_convert_data
(val: Any)
evorl/recorders/wandb_recorder.py:41
↓ 1 callers
Function
_convert_data
(val)
evorl/recorders/log_recorder.py:53
↓ 1 callers
Function
_create_example_agent_env
(num_envs)
tests/test_a2c.py:24
↓ 1 callers
Method
_customize_optimizer
(self)
evorl/algorithms/meta/pbt_workflow.py:160
↓ 1 callers
Function
_decompose_C
(C)
evorl/ec/evox_algorithm/cmaes.py:220
↓ 1 callers
Method
_ec_sample
(self, ec_opt_state)
evorl/algorithms/erl/cemrl_td3/cemrl_origin.py:91
↓ 1 callers
Method
_ec_update
(self, ec_opt_state, fitnesses)
evorl/algorithms/erl/erl_td3/erl_origin.py:95
↓ 1 callers
Method
_ec_update_with_rl_injection
(self, ec_opt_state, agent_state, fitnesses)
evorl/algorithms/erl/erl_td3/erl_origin.py:98
↓ 1 callers
Method
_env_fn
(_num_envs)
evorl/envs/envpool.py:65
↓ 1 callers
Method
_env_fn
(num_envs)
evorl/envs/gymnasium.py:71
↓ 1 callers
Method
_envpool_autoreset_step
Step for Next-Step mode.
evorl/envs/gymnasium.py:200
↓ 1 callers
Function
_fast_eval
(rewards, dones, rollout_length)
tests/test_evaluator.py:52
↓ 1 callers
Method
_get_pop_center
(self, state: State)
evorl/algorithms/ec/so/es_workflow.py:43
↓ 1 callers
Method
_get_pop_center
(self, state: State)
evorl/algorithms/ec/so/ars.py:157
↓ 1 callers
Method
_metrics_to_fitnesses
Convert the rollout metrics to fitnesses. By default, use the mean of episode_returns over multiple episodes as fitnesses. Args:
evorl/workflows/ec_workflow.py:260
↓ 1 callers
Method
_metrics_to_fitnesses
(self, metrics: MetricBase)
evorl/workflows/ec_workflow.py:364
↓ 1 callers
Function
_multi_steps
(state)
evorl/utils/rl_toolkits.py:245
↓ 1 callers
Method
_multi_steps
(self, state)
evorl/algorithms/offpolicy_utils.py:193
↓ 1 callers
Method
_nested_convert
(cls, obj)
evorl/types.py:99
↓ 1 callers
Method
_normal_autoreset_step
Step for Same-Step mode.
evorl/envs/gymnasium.py:224
↓ 1 callers
Function
_normal_eval
(rewards, dones, max_length)
tests/test_evaluator.py:44
↓ 1 callers
Function
_pad
(z, length)
evorl/utils/ma_utils.py:26
↓ 1 callers
Method
_postsetup
Post-setup state before training. By default, no post-setup is applied
evorl/workflows/ec_workflow.py:226
↓ 1 callers
Method
_postsetup_replaybuffer
Post-setup ReplayBuffer state before training.
evorl/workflows/rl_workflow.py:304
↓ 1 callers
Method
_postsetup_replaybuffer
(self, state: State)
evorl/algorithms/contrib/pop_td3.py:112
↓ 1 callers
Method
_postsetup_replaybuffer
(self, state: State)
evorl/algorithms/erl/erl_workflow.py:164
↓ 1 callers
Method
_postsetup_replaybuffer
(self, state: State)
evorl/algorithms/erl/cemrl_workflow.py:158
↓ 1 callers
Method
_postsetup_replaybuffer
(self, state: State)
evorl/algorithms/meta/pbt_workflow.py:503
↓ 1 callers
Method
_record_callback
(self, state: State, iters: int)
evorl/algorithms/ec/so/es_workflow.py:46
↓ 1 callers
Method
_record_step_metrics
(self, train_metrics, workflow_metrics, iters)
evorl/algorithms/meta/pbt_workflow.py:410
↓ 1 callers
Method
_record_step_metrics
(self, train_metrics, workflow_metrics, iters)
evorl/algorithms/meta/pbt_workflow.py:689
↓ 1 callers
Method
_replace_actor_params
( self, agent_state: AgentState, params: Params )
evorl/algorithms/ec/mo/nsga2_brax.py:135
↓ 1 callers
Method
_rescale_config
Customize the logic of rescaling the config settings when multi-devices training is enabled. When enable_multi_devices=True, rescale config s
evorl/workflows/rl_workflow.py:89
↓ 1 callers
Method
_rescale_config
Customize the logic of rescaling the config settings when multi-devices training is enabled. When enable_multi_devices=True, rescale config s
evorl/workflows/ec_workflow.py:107
↓ 1 callers
Method
_rescale_config
(cls, config: DictConfig)
evorl/algorithms/meta/pbt_workflow.py:83
↓ 1 callers
Method
_reset
(key)
evorl/envs/envpool.py:92
↓ 1 callers
Method
_reset
(key)
evorl/envs/gymnasium.py:108
↓ 1 callers
Method
_rl_injection
(self, ec_opt_state: ECState, agent_state: AgentState)
evorl/algorithms/erl/erl_td3/erl_ga.py:199
↓ 1 callers
Method
_rl_update
(agent_state, opt_state, pop_actor_params)
evorl/algorithms/erl/cemrl_td3/cemrl.py:202
↓ 1 callers
Method
_rl_update
Add num_updates support. Therefore this method cannot be jitted.
evorl/algorithms/erl/cemrl_td3/cemrl_origin.py:94
↓ 1 callers
Method
_rl_update
(self, agent_state, opt_state, replay_buffer_state, key, num_updates)
evorl/algorithms/erl/erl_td3/erl_origin.py:102
↓ 1 callers
Method
_rollout
(agent, agent_state, key, rollout_length)
evorl/algorithms/contrib/pop_td3.py:119
↓ 1 callers
Method
_rollout_and_update
Calculate the fitness and update the replay buffer and ec_optimizer.
evorl/algorithms/erl/cemrl_td3/cemrl_origin.py:128
↓ 1 callers
Method
_setup_agent_and_optimizer
Setup Agent and Optimizer states. Args: key: JAX PRNGKey. Returns: Tuple of (agent_state, opt_state)
evorl/workflows/rl_workflow.py:173
↓ 1 callers
Method
_setup_agent_and_optimizer
Setup Agent and Optimizer states. Args: key: JAX PRNGKey. Returns: Tuple of (agent_state, opt_state).
evorl/workflows/rl_workflow.py:281
↓ 1 callers
Method
_setup_agent_and_optimizer
Setup Agent and ECOptimizer states. Args: key: JAX PRNGKey Returns: Tuple of (agent_state, ec_state)
evorl/workflows/ec_workflow.py:174
↓ 1 callers
Method
_setup_agent_and_optimizer
( self, key: chex.PRNGKey )
evorl/algorithms/contrib/pop_td3.py:93
↓ 1 callers
Method
_setup_agent_and_optimizer
( self, key: chex.PRNGKey )
evorl/algorithms/erl/erl_workflow.py:131
↓ 1 callers
Method
_setup_agent_and_optimizer
( self, key: chex.PRNGKey )
evorl/algorithms/erl/cemrl_workflow.py:125
↓ 1 callers
Method
_setup_agent_and_optimizer
( self, key: chex.PRNGKey )
evorl/algorithms/meta/pbt_sac/param_sac.py:198
↓ 1 callers
Method
_setup_pop_and_pbt_optimizer
( self, key: chex.PRNGKey )
evorl/algorithms/meta/pbt_workflow.py:155
↓ 1 callers
Method
_setup_replaybuffer
Setup ReplayBuffer state.
evorl/workflows/rl_workflow.py:300
↓ 1 callers
Method
_setup_replaybuffer
(self, key: chex.PRNGKey)
evorl/algorithms/erl/cemrl_workflow.py:130
↓ 1 callers
Method
_setup_replaybuffer
(self, key: chex.PRNGKey)
evorl/algorithms/meta/pbt_workflow.py:491
↓ 1 callers
Function
_setup_trajectory1
(max_length=17)
tests/test_evaluator.py:104
↓ 1 callers
Function
_setup_trajectory2
(max_length=13)
tests/test_evaluator.py:118
↓ 1 callers
Function
_setup_trajectory3
(max_length=1000)
tests/test_evaluator.py:135
↓ 1 callers
Method
_setup_workflow_metrics
Define Workflow metrics.
evorl/workflows/rl_workflow.py:188
↓ 1 callers
Method
_setup_workflow_metrics
Define Workflow metrics.
evorl/workflows/rl_workflow.py:296
↓ 1 callers
Method
_setup_workflow_metrics
Define Workflow metrics.
evorl/workflows/ec_workflow.py:187
↓ 1 callers
Method
_setup_workflow_metrics
(self)
evorl/algorithms/erl/erl_workflow.py:128
↓ 1 callers
Method
_setup_workflow_metrics
(self)
evorl/algorithms/erl/cemrl_workflow.py:122
↓ 1 callers
Method
_step
(actions)
evorl/envs/envpool.py:109
↓ 1 callers
Function
_to_local_dict_inner
(obj, dict_factory)
evorl/metrics.py:152
↓ 1 callers
Method
_update_C
(self, C, pc, hsig, y)
evorl/ec/evox_algorithm/cmaes.py:204
↓ 1 callers
Method
_update_C
(self, C, pc, hsig, y)
evorl/ec/evox_algorithm/cmaes.py:283
↓ 1 callers
Method
_update_ps
(self, ps, B, D, y_w)
evorl/ec/evox_algorithm/cmaes.py:192
↓ 1 callers
Method
_update_ps
(self, ps, C, y_w)
evorl/ec/evox_algorithm/cmaes.py:278
↓ 1 callers
Function
_validate_batch_shapes
Verifies shapes of the batch leaves against the reference sample. Checks that batch dimensions are the same in all leaves in the batch. Check
evorl/utils/running_statistics.py:47
↓ 1 callers
Function
_vmap_rng_split
Enhanced version of `jax.random.split` that allows batched keys. Args: key: Key or batched keys with shape (B, 2) num: Number of
evorl/utils/jax_utils.py:219
↓ 1 callers
Method
action_space
(self)
evorl/envs/jaxmarl.py:88
↓ 1 callers
Method
actor_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/ddpg.py:163
↓ 1 callers
Method
actor_loss
Actor loss in TD3. Args: sample_barch: [B, ...] Return: LossDict[ actor_loss critic_loss
evorl/algorithms/td3.py:191
↓ 1 callers
Method
actor_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/sac.py:156
↓ 1 callers
Method
add_recorder
(self, recorder: Recorder)
evorl/recorders/recorder.py:36
↓ 1 callers
Method
alpha_loss
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/sac.py:129
↓ 1 callers
Function
build_cemrl_rl_update_fn
K actors + 1 shared critic.
evorl/algorithms/erl/cemrl_td3/cemrl_td3_workflow.py:182
↓ 1 callers
Function
build_erl_rl_update_fn
K (actor, critic) pairs.
evorl/algorithms/erl/erl_td3/erl_td3_workflow.py:291
↓ 1 callers
Method
build_from_config
( cls, config: DictConfig, enable_multi_devices=True, enable_jit: bool = True )
evorl/algorithms/meta/pbt_workflow.py:95
↓ 1 callers
Function
build_rl_update_fn
( agent: Agent, optimizer: optax.GradientTransformation, config: DictConfig, )
evorl/algorithms/contrib/td3_onpolicy.py:282
↓ 1 callers
Function
build_rl_update_fn
K actors + 1 shared critic.
evorl/algorithms/contrib/pop_episodic_td3.py:290
↓ 1 callers
Function
build_rl_update_fn
( agent: Agent, optimizer: optax.GradientTransformation, config: DictConfig, )
evorl/algorithms/erl/erl_td3/erl_eda.py:440
↓ 1 callers
Method
close
Finalize the recorder.
evorl/recorders/recorder.py:20
↓ 1 callers
Method
compute_actions
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/agent.py:138
↓ 1 callers
Method
compute_actions
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
evorl/algorithms/ec/ec_agent.py:145
↓ 1 callers
Method
compute_actions
( self, agent_state: AgentState, sample_batch: SampleBatch, key: chex.PRNGKey )
tests/utils.py:116
← previous
next →
201–300 of 1,203, ranked by callers