MCPcopy Create free account

hub / github.com/SurrealAI/surreal / functions

Functions791 in github.com/SurrealAI/surreal

Methoddefault_config
(self)
surreal/learner/dqn.py:94
Methoddefault_config
(self)
surreal/agent/ppo_agent.py:161
Methoddefault_config
(self)
surreal/agent/ddpg_agent.py:196
Methoddefault_config
(self)
surreal/agent/q_agent.py:55
Functiondeprecated
Function/class decorator: designate deprecation. Args: msg: string message. action: string mode - 'warning': (default) pri
surreal/utils/common.py:339
Functiondeserialize
We can improve this function if we *really* need more memory efficiency
surreal/utils/serializer.py:43
Methodevict
(self)
surreal/replay/fifo_replay.py:41
Methodevict
(self, evict_size)
surreal/replay/dummy_replay.py:37
Methodevict
(self)
surreal/replay/prioritized_replay.py:145
Methodevict
(self)
surreal/replay/uniform_replay.py:49
Functionexclude_keys
Remove the `exclude` keys from a kwargs dict. Args: exclude: list or set of keys to be excluded d: raw dict that might have irre
surreal/utils/common.py:153
Functionextract_tar
Args: source_tarball: extract members from archive output_dir: default to current working dir members: must be a subset o
surreal/utils/filesys.py:225
Functionf_add_ext
Append an extension if not already there Args: ext: will add a preceding `.` if doesn't exist
surreal/utils/filesys.py:108
Functionf_append_before_ext
Append a suffix to file name and retain its extension
surreal/utils/filesys.py:100
Functionf_copy
If exist, remove. Supports both dir and file. Supports glob wildcard.
surreal/utils/filesys.py:138
Functionf_exists
(path)
surreal/utils/filesys.py:60
Functionf_last_part_in_path
https://stackoverflow.com/questions/3925096/how-to-get-only-the-last-part-of-a-path-in-python
surreal/utils/filesys.py:88
Functionf_md5
File md5 signature
surreal/utils/filesys.py:201
Functionf_mkdir
Recursively creates all the subdirs If exist, do nothing.
surreal/utils/filesys.py:71
Functionf_mkdir_in_path
fpath is a file, recursively creates all the parent dirs that lead to the file If exist, do nothing.
surreal/utils/filesys.py:79
Functionf_move
(fsrc, fdst)
surreal/utils/filesys.py:151
Functionf_remove
If exist, remove. Supports both dir and file. Supports glob wildcard.
surreal/utils/filesys.py:122
Functionf_split_path
Splits path into a list of its component folders Args: normpath: call os.path.normpath to remove redundant '/' and up-le
surreal/utils/filesys.py:157
Functionf_time
File modification time
surreal/utils/filesys.py:95
Methodfetch_iterator
(self)
surreal/learner/base.py:152
Methodfetch_parameter_info
Fetch information about the parameters currently held by the parameter server
surreal/agent/base.py:365
Functionfformat
https://stackoverflow.com/a/44702621/3453033
surreal/utils/common.py:116
Methodfolder
(self)
surreal/subproc/surreal_subproc.py:48
Methodfolder
(self)
surreal/tmux/surreal_tmux.py:47
Methodfolder
(self)
surreal/kube/surreal_kube.py:64
Methodforward
x is the processed tensor from raw states before the dueling layers, its shape should be [batch x prelinear_size]
surreal/model/q_net.py:41
Methodforward
Whiten reward to have zero-mean, unit variance. Also clamps output to be within 5 standard deviations Args:
surreal/model/reward_filter.py:44
Methodforward
Whiten observation (inputs) to have zero-mean, unit variance. Also clamps output to be within 5 standard deviations
surreal/model/z_filter.py:59
Methodforward
(self, obs_in, calculate_value=True, action=None)
surreal/model/ddpg_net.py:81
Methodforward
(self, obs)
surreal/model/model_builders/head_builder.py:16
Methodforward
(self, obs)
surreal/model/model_builders/builders.py:23
Methodforward
(self, obs)
surreal/model/model_builders/builders.py:55
Methodforward
(self, obs, act)
surreal/model/model_builders/builders.py:80
Methodforward
Forward pass of actor network. Input assume to be output of CNN and/or LSTM feature extractor Args:
surreal/model/model_builders/builders.py:114
Methodforward
Forward pass of actor network. Input assume to be output of CNN and/or LSTM feature extractor Args:
surreal/model/model_builders/builders.py:159
Methodforward
(self, obs)
surreal/model/model_builders/torso_builder.py:35
Methodforward
(self, x)
test-old/test_checkpoint.py:36
Methodforward
(self, x)
test-old/test_gpu.py:41
Methodgenerate_tensorplex_report
Generates stats to be reported to tensorplex
surreal/replay/base.py:193
Methodgenerate_tensorplex_report
Adds core and system level tensorplex stats
surreal/learner/base.py:201
Functionget_config_file
Get the path to
surreal/utils/config_yaml.py:5
Methodget_history
(self)
surreal/session/tracker.py:168
Functionhost_id
Returns: first part of hostname up to '.'
surreal/utils/filesys.py:40
Functioninclude_keys
Pick out the `include` keys from a dict Args: include: list or set of keys to be included d: raw dict that might have irrelevant
surreal/utils/common.py:141
Methodinit_args
(self)
surreal/utils/common.py:212
Methodinsert
(self, exp_tuple)
surreal/replay/fifo_replay.py:34
Methodinsert
(self, exp_dict)
surreal/replay/dummy_replay.py:12
Methodinsert
Adds experience to the replay buffer as usual, but also intiialize the priority of the new experience.
surreal/replay/prioritized_replay.py:52
Methodinsert
(self, exp_dict)
surreal/replay/uniform_replay.py:36
Functionis_div
Returns: bool - does `a` divide `b`.
surreal/utils/numpy_util.py:39
Functionis_float_array
(L)
surreal/utils/numpy_util.py:63
Functionis_int_array
(L)
surreal/utils/numpy_util.py:67
Functionis_np_float
(x)
surreal/utils/numpy_util.py:82
Functionis_np_int
(x)
surreal/utils/numpy_util.py:78
Functionis_np_scalar
Check np types like np.int64
surreal/utils/numpy_util.py:71
Functionis_txt
Test if file path is a text file
surreal/utils/filesys.py:54
Functioniter_last
For processing the last element differently Yields: (is_last=bool, element)
surreal/utils/common.py:165
Methodlaunch
Launches a surreal experiment Args: component_name: Allowed components: agent-{*},
surreal/launch/launcher.py:122
Methodlaunch
(self)
surreal/replay/sharded_replay.py:74
Methodlearn
Performs a gradient descent step on 'batch' Arguments: batch: a minibatch sampled from the replay memory, after preproce
surreal/learner/ddpg.py:354
Methodlearn
main method for learning, calls _optimize. Also sends update stats to Tensorplex Args: batch: pr
surreal/learner/ppo.py:588
Methodlearn
(self, batch_exp)
surreal/learner/dqn.py:75
Functionlinear_interpolation
(l, r, alpha)
surreal/utils/schedule.py:34
Methodloads
Load from binary () Args: binary: output of ModuleDict.dumps
surreal/distributed/module_dict.py:37
Methodmain
Main function that defines learner process
surreal/learner/base.py:348
Functionmake_atari
(name)
surreal/env/atari_wrappers.py:223
Functionmax_at
Returns: (max, max_i)
surreal/utils/numpy_util.py:14
Functionmean
(numbers)
surreal/utils/common.py:128
Functionmeta_wrap
a decorator decorator, allowing the wrapped decorator to be used as: @decorator(*args, **kwargs) def callable() -- or -- @decor
surreal/utils/common.py:305
Functionmin_at
Returns: (min, min_i)
surreal/utils/numpy_util.py:7
Methodmodule_dict
(self)
surreal/learner/ddpg.py:378
Methodmodule_dict
returns the corresponding parameters
surreal/learner/ppo.py:615
Methodmodule_dict
(self)
surreal/learner/dqn.py:123
Methodmodule_dict
(self)
surreal/agent/ppo_agent.py:156
Methodmodule_dict
(self)
surreal/agent/q_agent.py:50
Functionmove_with_backup
Ensures that a path is not occupied. If there is a file, rename it by adding @suffix. Resursively backs up everything. Args: pat
surreal/utils/filesys.py:237
Functionnew_decor
(*args, **kwargs)
surreal/utils/common.py:326
Functionnp_clip_
In-place clip. Also supports indexing
surreal/utils/numpy_util.py:106
Methodnum_episodes
(self)
surreal/env/monitor.py:56
Methodobservation_spec
(self)
surreal/env/dm_wrapper.py:29
Methodobservation_spec
(self)
surreal/env/dm_wrapper.py:74
Methodobservation_spec
(self)
surreal/env/wrapper.py:273
Methodobservation_spec
(self)
surreal/env/wrapper.py:322
Methodobservation_spec
(self)
surreal/env/wrapper.py:355
Methodobservation_spec
(self)
surreal/env/wrapper.py:393
Methodobservation_spec
(self)
surreal/env/wrapper.py:508
Methodon_parameter_fetched
(self, params, info)
surreal/agent/ddpg_agent.py:149
Functionowner_name
Returns: file owner name, unix only
surreal/utils/filesys.py:28
Functionpa_deserialize
(binary)
surreal/utils/serializer.py:15
Functionpa_serialize
(obj)
surreal/utils/serializer.py:11
Functionparent_dir
Args: location: current directory or file Returns: parent directory absolute or relative path
surreal/utils/filesys.py:189
Methodparse
(self, *args, **kwargs)
surreal/utils/common.py:430
Methodpre_episode
(self)
surreal/agent/ddpg_agent.py:205
Methodprepare_env_agent
(self, env)
surreal/agent/ppo_agent.py:185
Methodprepare_env_agent
(self, env)
surreal/agent/ddpg_agent.py:210
← previousnext →601–700 of 791, ranked by callers