MCPcopy Create free account

hub / github.com/SurrealAI/surreal / functions

Functions791 in github.com/SurrealAI/surreal

↓ 1 callersMethod_stack_n_step_experience
Stacks n steps into single numpy arrays Args: experience: (type: dictionary) subtrajectory information
surreal/learner/aggregator.py:207
↓ 1 callersMethod_step
(self, action)
surreal/env/base.py:69
↓ 1 callersMethod_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 callersMethod_target_update_init
(self)
surreal/learner/ddpg.py:389
↓ 1 callersMethod_update_target
(self)
surreal/learner/dqn.py:27
↓ 1 callersMethod_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 callersMethod_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 callersMethodact
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 callersMethodaction
(self, action)
surreal/env/wrapper.py:130
↓ 1 callersMethodaction_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 callersMethodaction_spec
(self)
surreal/env/dm_wrapper.py:84
↓ 1 callersMethodaction_spec
(self)
surreal/env/wrapper.py:195
↓ 1 callersMethodadd
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 callersMethodadd
Args: hash_dict: {obs_hash: [ .. can be nested .. ]} nonhash_dict: {reward: -1.2, done: True, ...}
surreal/distributed/exp_sender.py:18
↓ 1 callersMethodapply
(self, model)
surreal/agent/param_noise.py:6
↓ 1 callersFunctionassert_metadata_equal
(trainer, trainer_restored)
test-old/test_checkpoint.py:117
↓ 1 callersFunctionatari_name_cap
Capitalize an Atari game name properly
surreal/env/atari_names.py:74
↓ 1 callersMethodavg
(self)
surreal/utils/common.py:561
↓ 1 callersFunctionbuild_conv_module
(input_spec, out_channels, kernel_sizes, str
surreal/model/model_builders/torso_builder.py:61
↓ 1 callersFunctionbuild_mlp_module
(input_spec, sizes, use_dropout=False)
surreal/model/model_builders/torso_builder.py:96
↓ 1 callersMethodcheckpoint_attributes
This function defines what attributes should be serialized when we are saving a checkpoint. See implementations
surreal/learner/base.py:75
↓ 1 callersMethodclear_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 callersMethodcompute_action_distance
(self, obs, modified_model_action)
surreal/agent/param_noise.py:42
↓ 1 callersMethodcreate_basic
(self, *, settings, experiment_name, algorithm_
surreal/kube/surreal_kube.py:262
↓ 1 callersMethodcreate_cluster
(self)
surreal/tmux/surreal_tmux.py:28
↓ 1 callersMethodcreate_cluster
(self)
surreal/kube/surreal_kube.py:33
↓ 1 callersMethoddumps
Dump content into binary Returns: bytes
surreal/distributed/module_dict.py:22
↓ 1 callersMethodevict
Actively evict old experiences.
surreal/replay/base.py:92
↓ 1 callersFunctionf_join
join file paths and expand special symbols like `~` for home dir
surreal/utils/filesys.py:64
↓ 1 callersMethodfetch_batch
(self)
surreal/learner/base.py:149
↓ 1 callersMethodfetch_info
Fetch the metadata of parameters on parameter server Returns: dictionary of metadata
surreal/distributed/parameter_server.py:271
↓ 1 callersMethodfetch_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 callersMethodfind_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 callersMethodflush
Serialized all currenct content of the buffer into binary Returns: binary data of (exp_list, ob_storage)
surreal/distributed/exp_sender.py:33
↓ 1 callersMethodforward_actor
(self, obs)
surreal/model/ddpg_net.py:63
↓ 1 callersMethodforward_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 callersMethodforward_critic
(self, obs, action)
surreal/model/ddpg_net.py:66
↓ 1 callersMethodget_actor_parameters
(self)
surreal/model/ddpg_net.py:54
↓ 1 callersMethodget_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 callersFunctionget_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 callersMethodget_env
Returns a subclass of EnvBase, created from self.env_config
surreal/agent/base.py:273
↓ 1 callersMethodget_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 callersMethodget_exploration_schedule
(self)
surreal/agent/q_agent.py:67
↓ 1 callersFunctionget_loader
(train=False)
test-old/test_checkpoint.py:19
↓ 1 callersFunctionget_loader
(train=True)
test-old/test_gpu.py:24
↓ 1 callersMethodget_remote_experiment_folder
Actual experiment folder will be <mount_path>/<root_subfolder>/<experiment_name>/
surreal/kube/surreal_kube.py:420
↓ 1 callersMethodget_scores_filepaths
returns score_list, filepath_list
surreal/utils/checkpoint.py:389
↓ 1 callersMethodget_values
(self, clear=True)
surreal/utils/common.py:644
↓ 1 callersFunctionhost_name
Get host name, alias with ``socket.gethostname()``
surreal/utils/filesys.py:35
↓ 1 callersFunctioninit
()
docker/build_files/entrypoint-ubuntu.py:8
↓ 1 callersFunctioninit
()
docker/build_files/entrypoint-nvidia.py:8
↓ 1 callersMethodinit_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 callersMethodjoin
(self)
surreal/replay/sharded_replay.py:37
↓ 1 callersMethodlap
(self)
surreal/utils/common.py:549
↓ 1 callersMethodlaunch
Runs load balancing proxy thread and self.shards ParameterServer processes Returns after all threads and proc
surreal/distributed/parameter_server.py:78
↓ 1 callersMethodlaunch
(self)
surreal/replay/sharded_replay.py:22
↓ 1 callersMethodlearn
Abstract method runs one step of learning Args: batch_exp: batched experience, format is a list of whatever
surreal/learner/base.py:46
↓ 1 callersMethodload_config
(self)
surreal/subproc/surreal_subproc.py:38
↓ 1 callersMethodload_config
(self)
surreal/tmux/surreal_tmux.py:37
↓ 1 callersMethodload_config
(self)
surreal/kube/surreal_kube.py:50
↓ 1 callersMethodloglikelihood
Method computes loglikelihood of action (a) given probability (prob)
surreal/model/ppo_net.py:29
↓ 1 callersFunctionmain
()
surreal/main/ddpg_configs.py:295
↓ 1 callersFunctionmain
()
surreal/main/generate_default_config.py:6
↓ 1 callersFunctionmain
()
surreal/main/ppo_configs.py:230
↓ 1 callersFunctionmain
()
surreal/main/ppo_configs_cheetah.py:230
↓ 1 callersFunctionmain
()
surreal/main/ppo_configs_hopper.py:230
↓ 1 callersFunctionmain
()
surreal/subproc/surreal_subproc.py:260
↓ 1 callersFunctionmain
()
surreal/tmux/surreal_tmux.py:250
↓ 1 callersFunctionmain
()
surreal/kube/surreal_kube.py:555
↓ 1 callersMethodmain
The main function to be called ``` if __name__ == '__main__': launcher = Launcher() launcher.main()
surreal/launch/launcher.py:31
↓ 1 callersMethodmain
(self)
surreal/subproc/surreal_subproc.py:242
↓ 1 callersMethodmain_agent
Main loop ran by the agent script Override if you want to customize agent behavior completely
surreal/agent/base.py:338
↓ 1 callersMethodmain_eval
Main loop ran by the eval script Override if you want to customize eval behavior completely
surreal/agent/base.py:345
↓ 1 callersMethodmain_loop
One loop of learner, runs one learn operation of learner
surreal/learner/base.py:364
↓ 1 callersMethodmain_setup
Setup before constant looping
surreal/learner/base.py:356
↓ 1 callersFunctionmake_dm_control
(env_name, env_config)
surreal/env/make_env.py:106
↓ 1 callersFunctionmake_gym
(env_name, env_config)
surreal/env/make_env.py:64
↓ 1 callersFunctionmake_robosuite
(env_name, env_config)
surreal/env/make_env.py:73
↓ 1 callersMethodmaxprob
Method deterministically sample actions of maximum likelihood
surreal/model/ppo_net.py:85
↓ 1 callersMethodmetadata_name
(self)
surreal/utils/checkpoint.py:215
↓ 1 callersMethodmodule_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 callersMethodmodule_dict
Returns: a dict of name -> surreal.utils.pytorch.Module
surreal/agent/base.py:146
↓ 1 callersMethodmodule_dict
(self, model=None)
surreal/agent/ddpg_agent.py:186
↓ 1 callersFunctionnp_cast
(x, dtype)
surreal/utils/numpy_util.py:86
↓ 1 callersMethodobservation
(self, observation)
surreal/env/wrapper.py:106
↓ 1 callersMethodobservation_spec
(self)
surreal/env/wrapper.py:187
↓ 1 callersMethodon_parameter_fetched
Called when a new parameter is fetched.
surreal/agent/base.py:159
↓ 1 callersMethodpost_action
Called after act is called by agent main script
surreal/agent/base.py:191
↓ 1 callersMethodpost_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 callersMethodpre_action
Called before act is called by agent main script
surreal/agent/base.py:182
↓ 1 callersMethodpre_episode
Called by agent process. Can beused to reset internal states before an episode starts
surreal/agent/base.py:202
↓ 1 callersMethodprepare_env
Applies custom wrapper to the environment as necessary Args: @env: subclass of EnvBse Returns: @
surreal/agent/base.py:283
↓ 1 callersMethodprepare_env_agent
Applies custom wrapper to the environment as necessary Only changes agent behavior
surreal/agent/base.py:297
↓ 1 callersMethodprepare_env_eval
Applies custom wrapper to the environment as necessary Only changes eval behavior
surreal/agent/base.py:314
↓ 1 callersMethodpreprocess_list
(self, exp_list)
surreal/learner/aggregator.py:27
↓ 1 callersMethodpreprocess_obs
(self, obs)
surreal/learner/aggregator.py:20
↓ 1 callersFunctionread
(fname)
setup.py:5
↓ 1 callersMethodrequest_generator
(self)
surreal/distributed/data_fetcher.py:71
↓ 1 callersMethodreset
(self)
surreal/agent/action_noise.py:36
↓ 1 callersFunctionrestore_agent
Restores an agent from a model.
surreal/main/rollout.py:31
← previousnext →201–300 of 791, ranked by callers