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
↓ 2 callers
Method
_setup_agent_ops
Create the optimizer and logging operations for a single agent. Parameters ---------- scope : str the outer scope
hbaselines/multiagent/td3.py:578
↓ 2 callers
Method
_setup_agent_ops
Create the optimizer and logging operations for a single agent. Parameters ---------- scope : str an outer scope
hbaselines/multiagent/sac.py:649
↓ 2 callers
Method
_setup_cooperative_gradients
Create the cooperative gradients meta-policy optimizer.
hbaselines/goal_conditioned/base.py:1094
↓ 2 callers
Method
_store_transition
Store a transition in the replay buffer. Parameters ---------- obs0 : array_like the last observation act
hbaselines/algorithms/rl_algorithm.py:771
↓ 2 callers
Method
_update_obs_history
Update the storage of observations for individual vehicles. This method performs the following operation: 1. It adds the most recent
hbaselines/envs/mixed_autonomy/envs/av.py:361
↓ 2 callers
Method
_update_state
Update the positions and speeds of all vehicles. Parameters ---------- pos : array_like positions of all vehicles
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:274
↓ 2 callers
Method
add
Add a new transition to the buffer. Parameters ---------- obs_t : array_like the list of environment observations
hbaselines/goal_conditioned/replay_buffer.py:141
↓ 2 callers
Method
can_sample
Check if n_samples samples can be sampled from the buffer. Returns ------- bool True if enough sample exist, Fals
hbaselines/goal_conditioned/replay_buffer.py:87
↓ 2 callers
Function
choose_x
Choice the x array with the smallest number of elements.
experiments/plot.py:163
↓ 2 callers
Method
compute_reward
Compute the environment reward. This is defined by the child classes.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:411
↓ 2 callers
Method
compute_reward
See parent class.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:618
↓ 2 callers
Method
compute_reward
See parent class.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:714
↓ 2 callers
Method
draw
Create the image corresponding to the current state.
hbaselines/envs/point2d.py:364
↓ 2 callers
Function
explained_variance
Compute fraction of variance that ypred explains about y. Returns 1 - Var[y-ypred] / Var[y] interpretation: ev=0 => might as well
hbaselines/utils/tf_util.py:339
↓ 2 callers
Function
flatgrad
Calculate the gradient and flattens it. Parameters ---------- loss : float the loss value var_list : list of tf.Tensor
hbaselines/utils/tf_util.py:148
↓ 2 callers
Function
get_globals_vars
Return the global variables. Parameters ---------- name : str the scope Returns ------- list of tf.Variable
hbaselines/utils/tf_util.py:54
↓ 2 callers
Method
get_goal
See parent class.
hbaselines/envs/point2d.py:306
↓ 2 callers
Method
get_image
Return a black and white image.
hbaselines/envs/point2d.py:341
↓ 2 callers
Method
get_ori
Return the orientation of the ant.
hbaselines/envs/efficient_hrl/ant_maze_env.py:309
↓ 2 callers
Function
get_relative_obs
Return the relative observation of a vehicle. The observation consists of (by index): 1. the ego speed 2. the headway 3. the speed o
hbaselines/envs/mixed_autonomy/envs/utils.py:20
↓ 2 callers
Method
get_state
Get state, which concatenates joint positions and velocities.
hbaselines/envs/hac/envs.py:121
↓ 2 callers
Method
get_td_map_from_batch
Convert a batch to a td_map.
hbaselines/fcnet/td3.py:672
↓ 2 callers
Method
goal_transition_fn
(obs0, goal, obs1)
hbaselines/goal_conditioned/base.py:446
↓ 2 callers
Function
import_flow_env
Import an environment from the flow/examples folder. This method imports the flow_params dict from the exp_configs folders in this directory
hbaselines/utils/env_util.py:963
↓ 2 callers
Function
is_multiagent_policy
Check whether a policy is a multi-agent policy.
hbaselines/algorithms/utils.py:92
↓ 2 callers
Function
line_intersect
Return the intersection of Line(pt1,pt2) and Line(ptA,ptB). Taken from https://www.cs.hmc.edu/ACM/lectures/intersections.html Parameters
hbaselines/envs/efficient_hrl/maze_env_utils.py:201
↓ 2 callers
Method
logp
Return the logp of an action from the old or current policy.
hbaselines/fcnet/trpo.py:812
↓ 2 callers
Method
make_actor
Create an actor tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder
hbaselines/fcnet/td3.py:366
↓ 2 callers
Method
make_actor
Create an actor tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder
hbaselines/fcnet/trpo.py:267
↓ 2 callers
Method
make_actor
Create an actor tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder of
hbaselines/multiagent/td3.py:662
↓ 2 callers
Method
make_critic
Create a critic tensor. Parameters ---------- obs : tf.compat.v1.placeholder the input observation placeholder
hbaselines/fcnet/trpo.py:340
↓ 2 callers
Function
mass_center
Compute the position of the agent's center of mass.
hbaselines/envs/efficient_hrl/humanoid.py:16
↓ 2 callers
Function
mass_center
Compute the position of the agent's center of mass.
hbaselines/envs/mujoco/humanoid_env.py:12
↓ 2 callers
Function
numel
Get TensorFlow Tensor's number of elements. Parameters ---------- tensor : tf.Tensor the input tensor Returns -------
hbaselines/utils/tf_util.py:132
↓ 2 callers
Function
process_minibatch
Process a minibatch of samples. This method re-formats the data to numpy arrays that can be passed to the tensorflow placeholders, and comput
hbaselines/utils/tf_util.py:779
↓ 2 callers
Function
q_mult
Multiply two quaternion.
hbaselines/envs/efficient_hrl/ant.py:39
↓ 2 callers
Function
q_mult
Multiply two quaternion.
hbaselines/envs/efficient_hrl/humanoid.py:28
↓ 2 callers
Method
reset
See parent class. In addition, a few variables that are specific to this class are emptied before they are used by the new rollout.
hbaselines/envs/mixed_autonomy/envs/av.py:450
↓ 2 callers
Method
rl_ids
See parent class.
hbaselines/envs/mixed_autonomy/envs/av_multi.py:175
↓ 2 callers
Method
step
Advance the simulation by one step.
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:418
↓ 2 callers
Function
test_observed
Test that the observed vehicles in the environment are as expected. Parameters ---------- env_class : flow.envs.Env class the env
tests/fast_tests/test_envs.py:2511
↓ 2 callers
Method
true_model
Return the next position by the agent. Parameters ---------- state : array_like the state by the agent ac
hbaselines/envs/point2d.py:430
↓ 2 callers
Method
update_cam
Update the position of the camera.
hbaselines/envs/efficient_hrl/ant.py:184
↓ 2 callers
Function
update_rl_veh
Update the RL lists of controllable, entering, and exiting vehicles. Used by the open environments. Parameters ---------- env : flow
hbaselines/envs/mixed_autonomy/envs/utils.py:66
↓ 2 callers
Method
update_viewer
Update the camera position and orientation.
hbaselines/envs/efficient_hrl/humanoid.py:92
↓ 1 callers
Method
__init__
See parent class.
hbaselines/envs/mixed_autonomy/envs/av_multi.py:146
↓ 1 callers
Method
__init__
Initialize the UR5 environment. Parameters ---------- use_contexts : bool, optional specifies whether to add cont
hbaselines/envs/hac/envs.py:269
↓ 1 callers
Method
__post_install
()
setup.py:32
↓ 1 callers
Method
_add_automated_vehicles
Replace a portion of vehicles with automated vehicles.
hbaselines/envs/mixed_autonomy/envs/av.py:623
↓ 1 callers
Method
_clear_attributes
Clear all AV-related attributes.
hbaselines/envs/mixed_autonomy/envs/av.py:616
↓ 1 callers
Method
_cooperative_gradients_update
Perform the gradient update procedure for the CHER algorithm. This procedure is similar to update_from_batch, expect it runs the self
hbaselines/goal_conditioned/base.py:1098
↓ 1 callers
Method
_encode_sample
Convert the indices to appropriate samples.
hbaselines/multiagent/replay_buffer.py:163
↓ 1 callers
Method
_encode_sample
Convert the indices to appropriate samples.
hbaselines/multiagent/replay_buffer.py:331
↓ 1 callers
Method
_find_all_robots
Return the starting position of all agents. Returns ------- list of (float, float) coordinates that the agen
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:447
↓ 1 callers
Method
_find_all_robots
Return the starting position of all agents. Returns ------- list of (float, float) coordinates that the agents ar
hbaselines/envs/efficient_hrl/ant_maze_env.py:559
↓ 1 callers
Method
_find_robot
Check that there is an agent in the current maze structure.
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:437
↓ 1 callers
Method
_find_robot
Check that there is an agent in the current maze structure.
hbaselines/envs/efficient_hrl/ant_maze_env.py:549
↓ 1 callers
Method
_get_accel
Compute the accelerations of individual vehicles. The acceleration values are dictated by the Intelligent Driver Model (IDM), which c
hbaselines/envs/mixed_autonomy/envs/ring_nonflow.py:311
↓ 1 callers
Method
_get_action_basic
See get_action.
hbaselines/multiagent/base.py:401
↓ 1 callers
Method
_get_action_maddpg
See get_action.
hbaselines/multiagent/base.py:566
↓ 1 callers
Method
_get_td_map_basic
See get_td_map.
hbaselines/multiagent/base.py:482
↓ 1 callers
Method
_get_td_map_maddpg
See get_td_map.
hbaselines/multiagent/base.py:591
↓ 1 callers
Method
_hindsight_actions_goals
Calculate hindsight goal and action transitions. These are then stored in the replay buffer along with the original (non-hindsight) s
hbaselines/goal_conditioned/base.py:1033
↓ 1 callers
Method
_initialize_basic
See initialize.
hbaselines/multiagent/base.py:391
↓ 1 callers
Method
_initialize_maddpg
See initialize.
hbaselines/multiagent/base.py:558
↓ 1 callers
Method
_is_in_collision
Check whether the agent is in a collision location. Parameters ---------- pos : (float, float) (x,y) positio
hbaselines/envs/efficient_hrl/humanoid_maze_env.py:464
↓ 1 callers
Method
_is_in_collision
Check whether the agent is in a collision location. Parameters ---------- pos : (float, float) (x,y) position of
hbaselines/envs/efficient_hrl/ant_maze_env.py:576
↓ 1 callers
Method
_log_probs
Calculate the log probability of the next goal by the meta-policies. Parameters ---------- meta_actions : array_like
hbaselines/goal_conditioned/base.py:1002
↓ 1 callers
Method
_log_training
Log training statistics. Parameters ---------- file_path : str the list of cumulative rewards from every episode
hbaselines/algorithms/rl_algorithm.py:1341
↓ 1 callers
Method
_negative_reward_fn
Return True if the intrinsic reward returns negative values. Intrinsic reward functions with negative rewards incentivize early termi
hbaselines/goal_conditioned/base.py:835
↓ 1 callers
Method
_neglogp
Return the negative-logp of the current policy.
hbaselines/fcnet/trpo.py:819
↓ 1 callers
Method
_old_neglogp
Return the negative-logp of the previous policy.
hbaselines/fcnet/trpo.py:826
↓ 1 callers
Method
_position_inside_wall
Return True if the agent is in a wall.
hbaselines/envs/point2d.py:262
↓ 1 callers
Function
_read_requirements_file
()
setup.py:14
↓ 1 callers
Method
_reset_highway_i210
Reset highway and/or I-210 style environments. New inflow and downstream speed limit conditions are chosen at the start of a new simu
hbaselines/envs/mixed_autonomy/envs/av.py:516
↓ 1 callers
Method
_reset_ring
Reset ring-style environments. If the "ring_length" term is specified, this method will update the network's length to a new value wi
hbaselines/envs/mixed_autonomy/envs/av.py:472
↓ 1 callers
Method
_sample
Sample different goals. The goals are sampled as follows: * The first num_samples-2 goals are acquired from a random Gaussian
hbaselines/goal_conditioned/base.py:931
↓ 1 callers
Method
_sample_best_meta_action
Return meta-actions that approximately maximize low-level log-probs. Parameters ---------- meta_obs0 : array_like
hbaselines/goal_conditioned/base.py:880
↓ 1 callers
Method
_setup_actor_optimizer
Create the actor loss, gradient, and optimizer.
hbaselines/fcnet/td3.py:302
↓ 1 callers
Method
_setup_actor_optimizer
Create minimization operations for policy and entropy. Creates a `tf.optimizer.minimize` operations for updating policy and entropy w
hbaselines/fcnet/sac.py:628
↓ 1 callers
Method
_setup_actor_update
Create the actor loss and optimization process. Parameters ---------- all_obs_ph : tf.compat.v1.placeholder the p
hbaselines/multiagent/td3.py:872
↓ 1 callers
Method
_setup_actor_update
Create the actor and alpha loss and optimization process. Parameters ---------- qf1_pi : tf.Variable the output f
hbaselines/multiagent/sac.py:1062
↓ 1 callers
Method
_setup_basic
Create basic independent learners / shared policy components. In this case, the policy consists of separate (or shared) policies for
hbaselines/multiagent/base.py:343
↓ 1 callers
Method
_setup_critic_optimizer
Create the critic loss, gradient, and optimizer.
hbaselines/fcnet/td3.py:326
↓ 1 callers
Method
_setup_critic_optimizer
Create minimization operation for critic Q-function. Create a `tf.optimizer.minimize` operation for updating critic Q-function with g
hbaselines/fcnet/sac.py:574
↓ 1 callers
Method
_setup_critic_update
Create the critic loss and optimization process. Parameters ---------- critic : tf.Variable the output from the c
hbaselines/multiagent/td3.py:788
↓ 1 callers
Method
_setup_critic_update
Create the critic loss and optimization process. Parameters ---------- qf1_pi : tf.Variable the output from the f
hbaselines/multiagent/sac.py:970
↓ 1 callers
Method
_setup_maddpg
Create algorithmic-variant of MADDPG components. See: https://arxiv.org/pdf/1706.02275.pdf
hbaselines/multiagent/base.py:551
↓ 1 callers
Method
_setup_maddpg_independent
Perform independent form of MADDPG setup.
hbaselines/multiagent/td3.py:373
↓ 1 callers
Method
_setup_maddpg_independent
Perform independent form of MADDPG setup.
hbaselines/multiagent/sac.py:412
↓ 1 callers
Method
_setup_maddpg_shared
Perform shared form of MADDPG setup.
hbaselines/multiagent/td3.py:261
↓ 1 callers
Method
_setup_maddpg_shared
Perform shared form of MADDPG setup.
hbaselines/multiagent/sac.py:284
↓ 1 callers
Method
_setup_optimizers
Create the actor and critic optimizers.
hbaselines/fcnet/ppo.py:434
↓ 1 callers
Method
_setup_optimizers
Create the actor and critic optimizers.
hbaselines/fcnet/trpo.py:396
↓ 1 callers
Method
_setup_stats
Create the running means and std of the model inputs and outputs. This method also adds the same running means and stds as scalars to
hbaselines/fcnet/td3.py:609
↓ 1 callers
Method
_setup_stats
Create the running means and std of the model inputs and outputs. This method also adds the same running means and stds as scalars to
hbaselines/fcnet/sac.py:673
↓ 1 callers
Method
_setup_stats
Create the running means and std of the model inputs and outputs. This method also adds the same running means and stds as scalars to
hbaselines/fcnet/ppo.py:502
↓ 1 callers
Method
_setup_stats
Create the running means and std of the model inputs and outputs. This method also adds the same running means and stds as scalars to
hbaselines/fcnet/trpo.py:494
↓ 1 callers
Method
_setup_stats
Prepare tensorboard logging for attributes of the agent. Parameters ---------- rew_ph : tf.compat.v1.placeholder
hbaselines/multiagent/td3.py:932
↓ 1 callers
Method
_setup_stats
Prepare tensorboard logging for attributes of the agent. Parameters ---------- rew_ph : tf.compat.v1.placeholder
hbaselines/multiagent/sac.py:1141
← previous
next →
101–200 of 825, ranked by callers