Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SurrealAI/surreal
/ functions
Functions
791 in github.com/SurrealAI/surreal
⨍
Functions
791
◇
Types & classes
148
↓ 1 callers
Method
_stack_n_step_experience
Stacks n steps into single numpy arrays Args: experience: (type: dictionary) subtrajectory information
surreal/learner/aggregator.py:207
↓ 1 callers
Method
_step
(self, action)
surreal/env/base.py:69
↓ 1 callers
Method
_target_update
Perform update on target model networks. This update is either 'soft', meaning the target model drifts towards the current model at
surreal/learner/ddpg.py:403
↓ 1 callers
Method
_target_update_init
(self)
surreal/learner/ddpg.py:389
↓ 1 callers
Method
_update_target
(self)
surreal/learner/dqn.py:27
↓ 1 callers
Method
_value_loss
Computes the loss with current data. also returns a dictionary of statistics which includes value loss and explained variance
surreal/learner/ppo.py:311
↓ 1 callers
Method
_value_update
Method that makes baseline function updates. calls _value_loss method Note: self.clip_actor_gradient determines whether gradient is
surreal/learner/ppo.py:334
↓ 1 callers
Method
act
Abstract method for taking actions. You should check `self.agent_mode` in the function and change act() logic with respect to
surreal/agent/base.py:131
↓ 1 callers
Method
action
(self, action)
surreal/env/wrapper.py:130
↓ 1 callers
Method
action_create
Spin up a multi-node distributed Surreal experiment. Put any command line args that pass to the config script after "--"
surreal/subproc/surreal_subproc.py:104
↓ 1 callers
Method
action_spec
(self)
surreal/env/dm_wrapper.py:84
↓ 1 callers
Method
action_spec
(self)
surreal/env/wrapper.py:195
↓ 1 callers
Method
add
qu = _ScoreQueue(3) for i in [1,3,2,4,5,7,3, 8, 2, 2, 1]: print(qu.add(i*10, 'path'+str(i)), qu._queue)
surreal/utils/checkpoint.py:371
↓ 1 callers
Method
add
Args: hash_dict: {obs_hash: [ .. can be nested .. ]} nonhash_dict: {reward: -1.2, done: True, ...}
surreal/distributed/exp_sender.py:18
↓ 1 callers
Method
apply
(self, model)
surreal/agent/param_noise.py:6
↓ 1 callers
Function
assert_metadata_equal
(trainer, trainer_restored)
test-old/test_checkpoint.py:117
↓ 1 callers
Function
atari_name_cap
Capitalize an Atari game name properly
surreal/env/atari_names.py:74
↓ 1 callers
Method
avg
(self)
surreal/utils/common.py:561
↓ 1 callers
Function
build_conv_module
(input_spec, out_channels, kernel_sizes, str
surreal/model/model_builders/torso_builder.py:61
↓ 1 callers
Function
build_mlp_module
(input_spec, sizes, use_dropout=False)
surreal/model/model_builders/torso_builder.py:96
↓ 1 callers
Method
checkpoint_attributes
This function defines what attributes should be serialized when we are saving a checkpoint. See implementations
surreal/learner/base.py:75
↓ 1 callers
Method
clear_critic_grad
Method that clears all gradients from all the parameters from critic, cnn_stem (optional), and rnn_stem (optional)
surreal/model/ppo_net.py:191
↓ 1 callers
Method
compute_action_distance
(self, obs, modified_model_action)
surreal/agent/param_noise.py:42
↓ 1 callers
Method
create_basic
(self, *, settings, experiment_name, algorithm_
surreal/kube/surreal_kube.py:262
↓ 1 callers
Method
create_cluster
(self)
surreal/tmux/surreal_tmux.py:28
↓ 1 callers
Method
create_cluster
(self)
surreal/kube/surreal_kube.py:33
↓ 1 callers
Method
dumps
Dump content into binary Returns: bytes
surreal/distributed/module_dict.py:22
↓ 1 callers
Method
evict
Actively evict old experiences.
surreal/replay/base.py:92
↓ 1 callers
Function
f_join
join file paths and expand special symbols like `~` for home dir
surreal/utils/filesys.py:64
↓ 1 callers
Method
fetch_batch
(self)
surreal/learner/base.py:149
↓ 1 callers
Method
fetch_info
Fetch the metadata of parameters on parameter server Returns: dictionary of metadata
surreal/distributed/parameter_server.py:271
↓ 1 callers
Method
fetch_parameter_with_info
Called by agent to retrieve parameters By default, pulls from PS ONLY WHEN the parameter hash changes to prev
surreal/distributed/parameter_server.py:241
↓ 1 callers
Method
find_prefixsum_idx
Find the highest index `i` in the array such that sum(arr[0] + arr[1] + ... + arr[i - i]) <= prefixsum if array values are probabi
surreal/replay/segment_tree.py:101
↓ 1 callers
Method
flush
Serialized all currenct content of the buffer into binary Returns: binary data of (exp_list, ob_storage)
surreal/distributed/exp_sender.py:33
↓ 1 callers
Method
forward_actor
(self, obs)
surreal/model/ddpg_net.py:63
↓ 1 callers
Method
forward_actor_expose_cells
forward pass critic to generate policy with option to use z-filter also returns an updated LSTM hidden/cell state when necess
surreal/model/ppo_net.py:317
↓ 1 callers
Method
forward_critic
(self, obs, action)
surreal/model/ddpg_net.py:66
↓ 1 callers
Method
get_actor_parameters
(self)
surreal/model/ddpg_net.py:54
↓ 1 callers
Method
get_agent_batch
Returns the agent_ids corresponding to batch_id Args: batch_id: index of batch Returns: agent_i
surreal/launch/launcher.py:234
↓ 1 callers
Function
get_enum
Args: enum_class: option: if the value doesn't belong to Enum, throw error. Can be either the str name or the actual
surreal/utils/common.py:95
↓ 1 callers
Method
get_env
Returns a subclass of EnvBase, created from self.env_config
surreal/agent/base.py:273
↓ 1 callers
Method
get_eval_batch
Returns the eval_ids corresponding to batch_id Args: batch_id: index of batch Returns: eval_ids
surreal/launch/launcher.py:295
↓ 1 callers
Method
get_exploration_schedule
(self)
surreal/agent/q_agent.py:67
↓ 1 callers
Function
get_loader
(train=False)
test-old/test_checkpoint.py:19
↓ 1 callers
Function
get_loader
(train=True)
test-old/test_gpu.py:24
↓ 1 callers
Method
get_remote_experiment_folder
Actual experiment folder will be <mount_path>/<root_subfolder>/<experiment_name>/
surreal/kube/surreal_kube.py:420
↓ 1 callers
Method
get_scores_filepaths
returns score_list, filepath_list
surreal/utils/checkpoint.py:389
↓ 1 callers
Method
get_values
(self, clear=True)
surreal/utils/common.py:644
↓ 1 callers
Function
host_name
Get host name, alias with ``socket.gethostname()``
surreal/utils/filesys.py:35
↓ 1 callers
Function
init
()
docker/build_files/entrypoint-ubuntu.py:8
↓ 1 callers
Function
init
()
docker/build_files/entrypoint-nvidia.py:8
↓ 1 callers
Method
init_dueling
Args: - prelinear_size: size of feature vector before the linear layers, like flattened conv or LSTM features
surreal/model/q_net.py:10
↓ 1 callers
Method
join
(self)
surreal/replay/sharded_replay.py:37
↓ 1 callers
Method
lap
(self)
surreal/utils/common.py:549
↓ 1 callers
Method
launch
Runs load balancing proxy thread and self.shards ParameterServer processes Returns after all threads and proc
surreal/distributed/parameter_server.py:78
↓ 1 callers
Method
launch
(self)
surreal/replay/sharded_replay.py:22
↓ 1 callers
Method
learn
Abstract method runs one step of learning Args: batch_exp: batched experience, format is a list of whatever
surreal/learner/base.py:46
↓ 1 callers
Method
load_config
(self)
surreal/subproc/surreal_subproc.py:38
↓ 1 callers
Method
load_config
(self)
surreal/tmux/surreal_tmux.py:37
↓ 1 callers
Method
load_config
(self)
surreal/kube/surreal_kube.py:50
↓ 1 callers
Method
loglikelihood
Method computes loglikelihood of action (a) given probability (prob)
surreal/model/ppo_net.py:29
↓ 1 callers
Function
main
()
surreal/main/ddpg_configs.py:295
↓ 1 callers
Function
main
()
surreal/main/generate_default_config.py:6
↓ 1 callers
Function
main
()
surreal/main/ppo_configs.py:230
↓ 1 callers
Function
main
()
surreal/main/ppo_configs_cheetah.py:230
↓ 1 callers
Function
main
()
surreal/main/ppo_configs_hopper.py:230
↓ 1 callers
Function
main
()
surreal/subproc/surreal_subproc.py:260
↓ 1 callers
Function
main
()
surreal/tmux/surreal_tmux.py:250
↓ 1 callers
Function
main
()
surreal/kube/surreal_kube.py:555
↓ 1 callers
Method
main
The main function to be called ``` if __name__ == '__main__': launcher = Launcher() launcher.main()
surreal/launch/launcher.py:31
↓ 1 callers
Method
main
(self)
surreal/subproc/surreal_subproc.py:242
↓ 1 callers
Method
main_agent
Main loop ran by the agent script Override if you want to customize agent behavior completely
surreal/agent/base.py:338
↓ 1 callers
Method
main_eval
Main loop ran by the eval script Override if you want to customize eval behavior completely
surreal/agent/base.py:345
↓ 1 callers
Method
main_loop
One loop of learner, runs one learn operation of learner
surreal/learner/base.py:364
↓ 1 callers
Method
main_setup
Setup before constant looping
surreal/learner/base.py:356
↓ 1 callers
Function
make_dm_control
(env_name, env_config)
surreal/env/make_env.py:106
↓ 1 callers
Function
make_gym
(env_name, env_config)
surreal/env/make_env.py:64
↓ 1 callers
Function
make_robosuite
(env_name, env_config)
surreal/env/make_env.py:73
↓ 1 callers
Method
maxprob
Method deterministically sample actions of maximum likelihood
surreal/model/ppo_net.py:85
↓ 1 callers
Method
metadata_name
(self)
surreal/utils/checkpoint.py:215
↓ 1 callers
Method
module_dict
Dict of modules to be broadcasted to the parameter server. MUST be consistent with the agent's `module_dict()`
surreal/learner/base.py:59
↓ 1 callers
Method
module_dict
Returns: a dict of name -> surreal.utils.pytorch.Module
surreal/agent/base.py:146
↓ 1 callers
Method
module_dict
(self, model=None)
surreal/agent/ddpg_agent.py:186
↓ 1 callers
Function
np_cast
(x, dtype)
surreal/utils/numpy_util.py:86
↓ 1 callers
Method
observation
(self, observation)
surreal/env/wrapper.py:106
↓ 1 callers
Method
observation_spec
(self)
surreal/env/wrapper.py:187
↓ 1 callers
Method
on_parameter_fetched
Called when a new parameter is fetched.
surreal/agent/base.py:159
↓ 1 callers
Method
post_action
Called after act is called by agent main script
surreal/agent/base.py:191
↓ 1 callers
Method
post_episode
Called by agent process. Can beused to reset internal states after an episode ends I.e. after the post_action whe
surreal/agent/base.py:212
↓ 1 callers
Method
pre_action
Called before act is called by agent main script
surreal/agent/base.py:182
↓ 1 callers
Method
pre_episode
Called by agent process. Can beused to reset internal states before an episode starts
surreal/agent/base.py:202
↓ 1 callers
Method
prepare_env
Applies custom wrapper to the environment as necessary Args: @env: subclass of EnvBse Returns: @
surreal/agent/base.py:283
↓ 1 callers
Method
prepare_env_agent
Applies custom wrapper to the environment as necessary Only changes agent behavior
surreal/agent/base.py:297
↓ 1 callers
Method
prepare_env_eval
Applies custom wrapper to the environment as necessary Only changes eval behavior
surreal/agent/base.py:314
↓ 1 callers
Method
preprocess_list
(self, exp_list)
surreal/learner/aggregator.py:27
↓ 1 callers
Method
preprocess_obs
(self, obs)
surreal/learner/aggregator.py:20
↓ 1 callers
Function
read
(fname)
setup.py:5
↓ 1 callers
Method
request_generator
(self)
surreal/distributed/data_fetcher.py:71
↓ 1 callers
Method
reset
(self)
surreal/agent/action_noise.py:36
↓ 1 callers
Function
restore_agent
Restores an agent from a model.
surreal/main/rollout.py:31
← previous
next →
201–300 of 791, ranked by callers