Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKU-MARL/HARL
/ functions
Functions
1,457 in github.com/PKU-MARL/HARL
⨍
Functions
1,457
◇
Types & classes
185
↓ 2 callers
Method
compute_full_state
(self, asymm_obs=False)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_point_cloud.py:877
↓ 2 callers
Method
compute_full_state
Compute the observations of all environment. The observation is composed of three parts: the state values of the left and right hands
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_catch_underarm.py:980
↓ 2 callers
Method
compute_full_state
(self, asymm_obs=False)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_mt1.py:1056
↓ 2 callers
Method
compute_full_state
(self, asymm_obs=False)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_mt4.py:1261
↓ 2 callers
Method
compute_full_state
(self, asymm_obs=False)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_ml1.py:1057
↓ 2 callers
Function
fisher_vector_product
Fisher vector product.
harl/utils/trpo_util.py:132
↓ 2 callers
Function
flat_grad
Flatten the gradients.
harl/utils/trpo_util.py:5
↓ 2 callers
Function
flat_params
Flatten the parameters.
harl/utils/trpo_util.py:27
↓ 2 callers
Method
get_action
(self, env, task)
harl/envs/lag/JSBSim/test/test_baseline_use_env.py:64
↓ 2 callers
Function
get_attr_val_from_sample
Retrieves param value for the given prop and attr from the sample.
harl/envs/dexhands/DexterousHands/bidexhands/tasks/hand_base/base_task.py:508
↓ 2 callers
Method
get_avail_actions
Returns the available actions of all agents in a list.
harl/envs/smac/multiagentenv.py:31
↓ 2 callers
Method
get_avail_actions
(self)
harl/envs/pettingzoo_mpe/pettingzoo_mpe_env.py:75
↓ 2 callers
Method
get_avail_actions
(self)
harl/envs/mamujoco/multiagent_mujoco/mujoco_multi.py:253
↓ 2 callers
Method
get_avail_actions
(self)
harl/envs/gym/gym_env.py:40
↓ 2 callers
Method
get_logits
Get action logits from inputs. Args: x: (torch.Tensor) input to network. available_actions: (torch.Tensor) denotes whi
harl/models/base/act.py:84
↓ 2 callers
Function
get_map_params
(map_name)
harl/envs/smac/smac_maps.py:452
↓ 2 callers
Function
get_num_agents
Get the number of agents in the environment.
harl/utils/envs_tools.py:240
↓ 2 callers
Method
get_obs
Returns all agent observations in a list.
harl/envs/smac/multiagentenv.py:11
↓ 2 callers
Method
get_obs_agent
Returns observation for agent_id. The observation is composed of: - agent movement features (where it can move to, height information and pat
harl/envs/smac/StarCraft2_Env.py:1083
↓ 2 callers
Method
get_obs_ally_feats_size
Returns the dimensions of the matrix containing ally features. Size is n_allies x n_features.
harl/envs/smac/StarCraft2_Env.py:1857
↓ 2 callers
Method
get_obs_enemy_feats_size
Returns the dimensions of the matrix containing enemy features. Size is n_enemies x n_features.
harl/envs/smac/StarCraft2_Env.py:1832
↓ 2 callers
Method
get_obs_own_feats_size
Returns the size of the vector containing the agents' own features.
harl/envs/smac/StarCraft2_Env.py:1888
↓ 2 callers
Method
get_obs_size
Returns the shape of the observation
harl/envs/mamujoco/multiagent_mujoco/mujoco_multi.py:232
↓ 2 callers
Method
get_reward
Aggregate reward functions Args: env: environment instance agent_id: current agent id info: addi
harl/envs/lag/JSBSim/tasks/task_base.py:71
↓ 2 callers
Function
get_shape_from_act_space
Get shape from action space. Args: act_space: (gym.spaces) action space Returns: act_shape: (tuple) action shape
harl/utils/envs_tools.py:31
↓ 2 callers
Method
get_state
Returns the global state.
harl/envs/smac/multiagentenv.py:23
↓ 2 callers
Method
get_state
(self)
harl/envs/football/football_env.py:92
↓ 2 callers
Method
get_state
Returns the global state. NOTE: This functon should not be used during decentralised execution.
harl/envs/lag/JSBSim/envs/env_base.py:161
↓ 2 callers
Method
get_state_ally_feats_size
Returns the dimensions of the matrix containing ally features. Size is n_allies x n_features.
harl/envs/smac/StarCraft2_Env.py:1871
↓ 2 callers
Method
get_state_enemy_feats_size
Returns the dimensions of the matrix containing enemy features. Size is n_enemies x n_features.
harl/envs/smac/StarCraft2_Env.py:1843
↓ 2 callers
Method
get_state_move_feats_size
Returns the size of the vector containing the agents's movement-related features.
harl/envs/smac/StarCraft2_Env.py:1923
↓ 2 callers
Method
get_state_move_feats_size_global
Returns the size of the vector containing the agents's movement-related features. global
harl/envs/smac/StarCraft2_Env.py:1933
↓ 2 callers
Method
get_state_own_feats_size
Returns the size of the vector containing the agents' own features.
harl/envs/smac/StarCraft2_Env.py:1899
↓ 2 callers
Method
get_state_size
Returns the size of the global state.
harl/envs/smac/StarCraft2_Env.py:1975
↓ 2 callers
Method
get_state_size
Returns the shape of the state
harl/envs/mamujoco/multiagent_mujoco/mujoco_multi.py:249
↓ 2 callers
Method
get_surrounding_points
Returns the surrounding points of the unit in 8 directions.
harl/envs/smac/StarCraft2_Env.py:1039
↓ 2 callers
Method
get_target_actions
Get target actor actions for observations. Args: obs: (np.ndarray) observations of target actor, shape is (batch_size, dim)
harl/algorithms/actors/hatd3.py:13
↓ 2 callers
Function
get_task_name
Get task name.
harl/utils/configs_tools.py:48
↓ 2 callers
Method
get_termination
Aggregate termination conditions Args: env: environment instance agent_id: current agent id info
harl/envs/lag/JSBSim/tasks/task_base.py:90
↓ 2 callers
Method
get_viewer
(self)
harl/envs/env_wrappers.py:158
↓ 2 callers
Function
gumbel_softmax
Sample from the Gumbel-Softmax distribution and optionally discretize. Args: logits: [batch_size, n_class] unnormalized log-probs temp
harl/utils/discrete_util.py:44
↓ 2 callers
Function
huber_loss
Huber loss.
harl/utils/models_tools.py:64
↓ 2 callers
Function
in_range_rad
Given an angle in rads, normalises in (-pi, pi]
harl/envs/lag/JSBSim/utils/utils.py:113
↓ 2 callers
Function
init_device
Init device. Args: args: (dict) arguments Returns: device: (torch.device) device
harl/utils/models_tools.py:8
↓ 2 callers
Function
init_dir
Init directory for saving results.
harl/utils/configs_tools.py:72
↓ 2 callers
Method
insert
(self, data)
harl/runners/off_policy_base_runner.py:353
↓ 2 callers
Function
kl_divergence
KL divergence between two distributions.
harl/utils/trpo_util.py:65
↓ 2 callers
Method
load_observation_space
(self)
harl/envs/lag/JSBSim/tasks/singlecombat_with_missle_task.py:27
↓ 2 callers
Function
make_eval_env
Make env for evaluation.
harl/utils/envs_tools.py:110
↓ 2 callers
Function
make_render_env
Make env for rendering.
harl/utils/envs_tools.py:163
↓ 2 callers
Function
make_train_env
Make env for training.
harl/utils/envs_tools.py:49
↓ 2 callers
Method
mode
(self)
harl/models/base/distributions.py:33
↓ 2 callers
Function
mse_loss
MSE loss.
harl/utils/models_tools.py:72
↓ 2 callers
Method
normalize_action
(self, env, agent_id, action)
harl/envs/lag/JSBSim/tasks/singlecombat_with_missle_task.py:182
↓ 2 callers
Method
normalize_action
Normalize action to be consistent with action space.
harl/envs/lag/JSBSim/tasks/task_base.py:119
↓ 2 callers
Function
obtrain_task_info
(task_name)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_mt1_task_info.py:16
↓ 2 callers
Method
only_medivac_left
Check if only Medivac units are left.
harl/envs/smac/StarCraft2_Env.py:2394
↓ 2 callers
Function
plot_ax
( ax, file_lists, legend_pattern=".*", xlabel=None, ylabel=None, title=None, xlim=
harl/envs/dexhands/DexterousHands/bidexhands/utils/logger/plotter.py:86
↓ 2 callers
Method
prep_rollout
Prepare for rollout.
harl/runners/on_policy_base_runner.py:712
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_switch.py:2263
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_bottle_cap.py:2475
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_door_close_inward.py:2318
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_door_close_outward.py:2319
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_catch_over2underarm.py:2038
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_two_catch_underarm.py:2250
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_block_stack.py:2353
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_scissors.py:2302
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/allegro_hand_over.py:1282
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/allegro_hand_catch_underarm.py:1227
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_push_block.py:2283
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_kettle.py:2398
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_catch_abreast.py:2226
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_re_orientation.py:2093
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_grasp_and_place.py:2285
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_door_open_outward.py:2314
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_pen.py:2307
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_over.py:1900
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_lift_underarm.py:2363
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_door_open_inward.py:2316
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_point_cloud.py:1581
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_catch_underarm.py:2051
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_mt1.py:1587
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_mt4.py:1833
↓ 2 callers
Function
randomize_rotation
(rand0, rand1, x_unit_tensor, y_unit_tensor)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/shadow_hand_meta/shadow_hand_meta_ml1.py:1585
↓ 2 callers
Method
render
(self, **kwargs)
harl/envs/mamujoco/multiagent_mujoco/mujoco_multi.py:282
↓ 2 callers
Method
running_mean_var
Get running mean and variance.
harl/common/valuenorm.py:38
↓ 2 callers
Function
save_config
Save the configuration of the program.
harl/utils/configs_tools.py:129
↓ 2 callers
Method
seed
(self, seed)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/hand_base/vec_task_rlgames.py:58
↓ 2 callers
Method
set_property_values
Set the values of the specified properties :param props: list of Properties :param values: list of float
harl/envs/lag/JSBSim/core/simulatior.py:273
↓ 2 callers
Function
set_seed
Seed the program.
harl/utils/envs_tools.py:228
↓ 2 callers
Method
shotdown
(self)
harl/envs/lag/JSBSim/core/simulatior.py:150
↓ 2 callers
Function
smooth
Smooth signal y, where radius is determines the size of the window. mode='twosided': average over the window [max(index - radius, 0), min
harl/envs/dexhands/DexterousHands/bidexhands/utils/logger/plotter.py:13
↓ 2 callers
Method
step
Step the environments synchronously. This is available for backwards compatibility.
harl/envs/env_wrappers.py:125
↓ 2 callers
Method
step
(self, actions)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/hand_base/meta_vec_task.py:65
↓ 2 callers
Method
step
(self, actions)
harl/envs/dexhands/DexterousHands/bidexhands/tasks/hand_base/multi_task_vec_task.py:63
↓ 2 callers
Method
step
A single environment step. Returns reward, terminated, info.
harl/envs/smac/StarCraft2_Env.py:524
↓ 2 callers
Method
train_values
Get values with grad for obs and actions Args: obs: (np.ndarray) observations batch, shape is (batch_size, dim) action
harl/algorithms/actors/had3qn.py:56
↓ 2 callers
Method
update
Update actor network. Args: sample: (Tuple) contains data batch with which to update networks. Returns: policy
harl/algorithms/actors/mappo.py:28
↓ 2 callers
Function
warn_task_name
()
harl/envs/dexhands/DexterousHands/bidexhands/utils/config.py:35
↓ 2 callers
Method
wrap
(self, l)
harl/envs/pettingzoo_mpe/pettingzoo_mpe_env.py:98
← previous
next →
201–300 of 1,457, ranked by callers