Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AboudyKreidieh/h-baselines
/ functions
Functions
825 in github.com/AboudyKreidieh/h-baselines
⨍
Functions
825
◇
Types & classes
109
↓ 1 callers
Method
_store_transition_basic
See store_transition.
hbaselines/multiagent/base.py:439
↓ 1 callers
Method
_store_transition_maddpg
See store_transition.
hbaselines/multiagent/base.py:575
↓ 1 callers
Method
_train
Perform the training operation.
hbaselines/algorithms/rl_algorithm.py:1147
↓ 1 callers
Method
_update_basic
See update.
hbaselines/multiagent/base.py:396
↓ 1 callers
Method
_update_maddpg
See update.
hbaselines/multiagent/base.py:562
↓ 1 callers
Method
action_space
Return the action space.
hbaselines/envs/hac/envs.py:369
↓ 1 callers
Method
all_observation_space
Return the environment's full observation space.
hbaselines/utils/sampler.py:71
↓ 1 callers
Function
can_move_x
Return if an object can be moved in the x-direction. Parameters ---------- movable : int move-ability of the contacting object
hbaselines/envs/efficient_hrl/maze_env_utils.py:35
↓ 1 callers
Function
can_move_y
Return if an object can be moved in the y-direction. Parameters ---------- movable : int move-ability of the contacting object
hbaselines/envs/efficient_hrl/maze_env_utils.py:51
↓ 1 callers
Function
can_move_z
Return if an object can be moved in the z-direction. Parameters ---------- movable : int move-ability of the contacting object
hbaselines/envs/efficient_hrl/maze_env_utils.py:67
↓ 1 callers
Function
check_validity
Ensure environment configurations were properly entered. This is done via a sequence of assertions. Parameters ---------- model_name
hbaselines/envs/hac/env_utils.py:4
↓ 1 callers
Method
clear_memory
Clear internal memory that is used by the replay buffer.
hbaselines/goal_conditioned/base.py:805
↓ 1 callers
Method
collect_sample
Perform the sample collection operation over a single step. This method is responsible for executing a single step of the environment
hbaselines/utils/sampler.py:87
↓ 1 callers
Method
compute_reward
See class definition.
hbaselines/envs/mixed_autonomy/envs/av.py:298
↓ 1 callers
Method
conjugate_gradient
Calculate the conjugate gradient of Ax = b. Based on https://epubs.siam.org/doi/book/10.1137/1.9781611971446 Demmel p 312. P
hbaselines/fcnet/trpo.py:877
↓ 1 callers
Function
construct_maze
Construct the structure of the maze. Parameters ---------- maze_id : str type of environment. This dictates the structure the maz
hbaselines/envs/efficient_hrl/maze_env_utils.py:115
↓ 1 callers
Method
context_space
Return the environment's context space.
hbaselines/utils/sampler.py:67
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:578
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:779
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:842
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:910
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:1053
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/efficient_hrl/envs.py:1128
↓ 1 callers
Method
contextual_reward
(states, goals, next_states)
hbaselines/envs/hac/envs.py:333
↓ 1 callers
Function
create_algorithm_parser
Add the algorithm hyperparameters to the parser.
hbaselines/utils/train.py:254
↓ 1 callers
Function
create_feedforward_parser
Add the feedforward policy hyperparameters to the parser.
hbaselines/utils/train.py:525
↓ 1 callers
Function
create_goal_conditioned_parser
Add the goal-conditioned policy hyperparameters to the parser.
hbaselines/utils/train.py:599
↓ 1 callers
Function
create_multi_feedforward_parser
Add the multi-agent policy hyperparameters to the parser.
hbaselines/utils/train.py:690
↓ 1 callers
Function
create_ppo_parser
Add the PPO hyperparameters to the parser.
hbaselines/utils/train.py:415
↓ 1 callers
Function
create_sac_parser
Add the SAC hyperparameters to the parser.
hbaselines/utils/train.py:367
↓ 1 callers
Function
create_td3_parser
Add the TD3 hyperparameters to the parser.
hbaselines/utils/train.py:306
↓ 1 callers
Function
create_trpo_parser
Add the TRPO hyperparameters to the parser.
hbaselines/utils/train.py:478
↓ 1 callers
Method
display_end_goal
See parent class.
hbaselines/envs/hac/envs.py:444
↓ 1 callers
Method
display_end_goal
See parent class.
hbaselines/envs/hac/envs.py:624
↓ 1 callers
Function
draw_antfourrooms
Draw the trajectory when using the AntFourRooms environment. Parameters ---------- context : [float, float] the (x,y) coordinates
hbaselines/utils/eval.py:366
↓ 1 callers
Function
draw_antgather
Draw the trajectory when using the AntGather environment. Parameters ---------- objects : list of (float, float, int) list of app
hbaselines/utils/eval.py:276
↓ 1 callers
Function
draw_antmaze
Draw the trajectory when using the AntMaze environment. Parameters ---------- context : [float, float] the (x,y) coordinates of t
hbaselines/utils/eval.py:504
↓ 1 callers
Function
gae_returns
Compute the bootstrapped/discounted returns. Parameters ---------- mb_rewards : array_like a minibatch of rewards from a given en
hbaselines/utils/tf_util.py:728
↓ 1 callers
Method
get_action
See parent class.
hbaselines/goal_conditioned/base.py:623
↓ 1 callers
Method
get_action
Call the actor methods to compute policy actions. Parameters ---------- obs : dict of array_like the observations
hbaselines/multiagent/base.py:210
↓ 1 callers
Method
get_context
Collect the contextual term. None if it is not passed.
hbaselines/utils/sampler.py:54
↓ 1 callers
Method
get_current_obs
Return the current position.
hbaselines/envs/snn4hrl/snake_gather.py:34
↓ 1 callers
Function
get_hyperparameters_from_dir
Collect the algorithm-specific hyperparameters from the checkpoint. Parameters ---------- ckpt_path : str the path to the checkpo
hbaselines/utils/eval.py:110
↓ 1 callers
Method
get_init_obs
Return the initial observation from the environment.
hbaselines/utils/sampler.py:50
↓ 1 callers
Function
get_lane
Return a processed lane number.
hbaselines/envs/mixed_autonomy/envs/utils.py:131
↓ 1 callers
Method
get_next_goal
Return an end goal. Returns ------- array_like the end goal
hbaselines/envs/hac/envs.py:216
↓ 1 callers
Method
get_ori
Return the orientation of the humanoid.
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:281
↓ 1 callers
Method
get_ori
Return the orientation.
hbaselines/envs/snn4hrl/snake_gather.py:48
↓ 1 callers
Method
get_range_sensor_obs
Return egocentric range sensor observations of maze.
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:289
↓ 1 callers
Method
get_range_sensor_obs
Return egocentric range sensor observations of maze.
hbaselines/envs/efficient_hrl/ant_maze_env.py:399
↓ 1 callers
Method
get_spaces
Collect the spaces of the environments. Returns ------- gym.spaces.* the action space of the training environment
hbaselines/algorithms/rl_algorithm.py:646
↓ 1 callers
Method
get_state
See parent class.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:589
↓ 1 callers
Method
get_state
See parent class.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:681
↓ 1 callers
Method
get_state
See class definition.
hbaselines/envs/mixed_autonomy/envs/av.py:394
↓ 1 callers
Function
get_target_updates
Get target update operations. Parameters ---------- _vars : list of tf.Tensor the initial variables target_vars : list of tf.
hbaselines/utils/tf_util.py:238
↓ 1 callers
Method
get_td_map
See parent class.
hbaselines/fcnet/td3.py:661
↓ 1 callers
Method
get_td_map
Return dict map for the summary (to be run in the algorithm).
hbaselines/multiagent/base.py:332
↓ 1 callers
Method
get_td_map_from_batch
Convert a batch to a td_map.
hbaselines/fcnet/sac.py:764
↓ 1 callers
Method
get_td_map_from_batch
Convert a batch to a td_map.
hbaselines/fcnet/ppo.py:754
↓ 1 callers
Method
get_td_map_from_batch
Convert a batch to a td_map.
hbaselines/fcnet/trpo.py:791
↓ 1 callers
Method
get_xy
Return the x,y position of the agent.
hbaselines/envs/efficient_hrl/humanoid.py:129
↓ 1 callers
Method
horizon
Return the environment's time horizon.
hbaselines/utils/sampler.py:75
↓ 1 callers
Method
initialize
Initialize the policy. This is used at the beginning of training by the algorithm, after the model parameters have been initialized.
hbaselines/multiagent/base.py:185
↓ 1 callers
Function
is_feedforward_policy
Check whether a policy is a feedforward policy.
hbaselines/algorithms/utils.py:66
↓ 1 callers
Method
iterbatches
Iterate over arrays in batches. Must provide either num_batches or batch_size, the other must be None. Parameters ----------
hbaselines/fcnet/trpo.py:834
↓ 1 callers
Method
load
Load model parameters from a checkpoint. Parameters ---------- load_path : str location of the checkpoint
hbaselines/algorithms/rl_algorithm.py:1024
↓ 1 callers
Method
log_sample
Update the dataset with current step data. Parameters ---------- obs : array_like the current observation
hbaselines/utils/eval.py:203
↓ 1 callers
Function
main
Execute multiple training operations.
experiments/run_multi_hrl.py:13
↓ 1 callers
Function
main
Execute multiple training operations.
experiments/run_hrl.py:13
↓ 1 callers
Function
main
Execute multiple training operations.
experiments/run_multi_fcnet.py:13
↓ 1 callers
Function
main
Execute multiple training operations.
experiments/run_fcnet.py:13
↓ 1 callers
Function
main
Execute multiple training operations.
experiments/run_eval.py:35
↓ 1 callers
Method
make_actor
Create the actor variables. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholde
hbaselines/fcnet/sac.py:307
↓ 1 callers
Method
make_actor
Create an actor tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder
hbaselines/fcnet/ppo.py:297
↓ 1 callers
Method
make_actor
Create the actor variables. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholde
hbaselines/multiagent/sac.py:783
↓ 1 callers
Method
make_critic
Create a critic tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder
hbaselines/fcnet/ppo.py:370
↓ 1 callers
Function
make_session
Return a session that will use <num_cpu> CPU's only. Parameters ---------- num_cpu : int number of CPUs to use for TensorFlow
hbaselines/utils/tf_util.py:11
↓ 1 callers
Method
observation_space
Return the observation space.
hbaselines/envs/hac/envs.py:359
↓ 1 callers
Function
parse_options
Parse plotting options user can specify in command line.
experiments/plot.py:26
↓ 1 callers
Function
parse_options
Parse training options user can specify in command line. Returns ------- argparse.Namespace the output parser object
hbaselines/utils/eval.py:62
↓ 1 callers
Function
point_distance
Return the distance between two points. Parameters ---------- p1 : (float, float) (x,y) values of point 1 p2 : (float, float)
hbaselines/envs/efficient_hrl/maze_env_utils.py:294
↓ 1 callers
Method
project_state_to_end_goal
(sim, *_)
hbaselines/envs/hac/envs.py:324
↓ 1 callers
Function
q_inv
Return the inverse of a quaternion.
hbaselines/envs/efficient_hrl/ant.py:34
↓ 1 callers
Function
q_inv
Return the inverse of a quaternion.
hbaselines/envs/efficient_hrl/humanoid.py:23
↓ 1 callers
Function
ray_segment_intersect
Check ray intersection with segment. Check if the ray originated from (x, y) with direction theta intersects the line segment (x1, y1) -- (x2
hbaselines/envs/efficient_hrl/maze_env_utils.py:264
↓ 1 callers
Method
render
Render the environment.
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:420
↓ 1 callers
Method
render
Render the environment.
hbaselines/envs/efficient_hrl/ant_maze_env.py:532
↓ 1 callers
Method
render
See parent class.
hbaselines/envs/deeploco/envs.py:58
↓ 1 callers
Method
render
Render the environment.
hbaselines/envs/hac/envs.py:226
↓ 1 callers
Method
reset
Reset the environment. If the environment is using the contextual setting, a new context is issued. Returns -------
hbaselines/envs/efficient_hrl/envs.py:212
↓ 1 callers
Method
reset
See parent class.
hbaselines/envs/deeploco/envs.py:54
↓ 1 callers
Method
reset
Reset the environment.
hbaselines/envs/mixed_autonomy/core.py:115
↓ 1 callers
Method
reset
See parent class.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:725
↓ 1 callers
Method
save
Save, and potential plot, the trajectory data. Parameters ---------- fp : str the path to save the data to
hbaselines/utils/eval.py:234
↓ 1 callers
Method
save
Save the parameters of a tensorflow model. Parameters ---------- save_path : str Prefix of filenames created for
hbaselines/algorithms/rl_algorithm.py:1009
↓ 1 callers
Method
set_goal
Set the goal position of the agent. Parameters ---------- goal : array_like the desired position of the agent
hbaselines/envs/efficient_hrl/ant.py:218
↓ 1 callers
Method
set_to_goal
Update the goal position of the goal agent.
hbaselines/envs/efficient_hrl/humanoid.py:119
↓ 1 callers
Method
setup_model
Create the graph, session, policy, and summary objects.
hbaselines/algorithms/rl_algorithm.py:676
↓ 1 callers
Method
setup_sampler
Create the environment and collect the initial observations. Parameters ---------- env : str the name of the envi
hbaselines/algorithms/rl_algorithm.py:583
↓ 1 callers
Method
step
Advance the simulation by one step.
hbaselines/envs/efficient_hrl/ant.py:106
← previous
next →
201–300 of 825, ranked by callers