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
Method
default_config
(self)
surreal/learner/dqn.py:94
Method
default_config
(self)
surreal/agent/ppo_agent.py:161
Method
default_config
(self)
surreal/agent/ddpg_agent.py:196
Method
default_config
(self)
surreal/agent/q_agent.py:55
Function
deprecated
Function/class decorator: designate deprecation. Args: msg: string message. action: string mode - 'warning': (default) pri
surreal/utils/common.py:339
Function
deserialize
We can improve this function if we *really* need more memory efficiency
surreal/utils/serializer.py:43
Method
evict
(self)
surreal/replay/fifo_replay.py:41
Method
evict
(self, evict_size)
surreal/replay/dummy_replay.py:37
Method
evict
(self)
surreal/replay/prioritized_replay.py:145
Method
evict
(self)
surreal/replay/uniform_replay.py:49
Function
exclude_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
Function
extract_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
Function
f_add_ext
Append an extension if not already there Args: ext: will add a preceding `.` if doesn't exist
surreal/utils/filesys.py:108
Function
f_append_before_ext
Append a suffix to file name and retain its extension
surreal/utils/filesys.py:100
Function
f_copy
If exist, remove. Supports both dir and file. Supports glob wildcard.
surreal/utils/filesys.py:138
Function
f_exists
(path)
surreal/utils/filesys.py:60
Function
f_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
Function
f_md5
File md5 signature
surreal/utils/filesys.py:201
Function
f_mkdir
Recursively creates all the subdirs If exist, do nothing.
surreal/utils/filesys.py:71
Function
f_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
Function
f_move
(fsrc, fdst)
surreal/utils/filesys.py:151
Function
f_remove
If exist, remove. Supports both dir and file. Supports glob wildcard.
surreal/utils/filesys.py:122
Function
f_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
Function
f_time
File modification time
surreal/utils/filesys.py:95
Method
fetch_iterator
(self)
surreal/learner/base.py:152
Method
fetch_parameter_info
Fetch information about the parameters currently held by the parameter server
surreal/agent/base.py:365
Function
fformat
https://stackoverflow.com/a/44702621/3453033
surreal/utils/common.py:116
Method
folder
(self)
surreal/subproc/surreal_subproc.py:48
Method
folder
(self)
surreal/tmux/surreal_tmux.py:47
Method
folder
(self)
surreal/kube/surreal_kube.py:64
Method
forward
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
Method
forward
Whiten reward to have zero-mean, unit variance. Also clamps output to be within 5 standard deviations Args:
surreal/model/reward_filter.py:44
Method
forward
Whiten observation (inputs) to have zero-mean, unit variance. Also clamps output to be within 5 standard deviations
surreal/model/z_filter.py:59
Method
forward
(self, obs_in, calculate_value=True, action=None)
surreal/model/ddpg_net.py:81
Method
forward
(self, obs)
surreal/model/model_builders/head_builder.py:16
Method
forward
(self, obs)
surreal/model/model_builders/builders.py:23
Method
forward
(self, obs)
surreal/model/model_builders/builders.py:55
Method
forward
(self, obs, act)
surreal/model/model_builders/builders.py:80
Method
forward
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
Method
forward
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
Method
forward
(self, obs)
surreal/model/model_builders/torso_builder.py:35
Method
forward
(self, x)
test-old/test_checkpoint.py:36
Method
forward
(self, x)
test-old/test_gpu.py:41
Method
generate_tensorplex_report
Generates stats to be reported to tensorplex
surreal/replay/base.py:193
Method
generate_tensorplex_report
Adds core and system level tensorplex stats
surreal/learner/base.py:201
Function
get_config_file
Get the path to
surreal/utils/config_yaml.py:5
Method
get_history
(self)
surreal/session/tracker.py:168
Function
host_id
Returns: first part of hostname up to '.'
surreal/utils/filesys.py:40
Function
include_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
Method
init_args
(self)
surreal/utils/common.py:212
Method
insert
(self, exp_tuple)
surreal/replay/fifo_replay.py:34
Method
insert
(self, exp_dict)
surreal/replay/dummy_replay.py:12
Method
insert
Adds experience to the replay buffer as usual, but also intiialize the priority of the new experience.
surreal/replay/prioritized_replay.py:52
Method
insert
(self, exp_dict)
surreal/replay/uniform_replay.py:36
Function
is_div
Returns: bool - does `a` divide `b`.
surreal/utils/numpy_util.py:39
Function
is_float_array
(L)
surreal/utils/numpy_util.py:63
Function
is_int_array
(L)
surreal/utils/numpy_util.py:67
Function
is_np_float
(x)
surreal/utils/numpy_util.py:82
Function
is_np_int
(x)
surreal/utils/numpy_util.py:78
Function
is_np_scalar
Check np types like np.int64
surreal/utils/numpy_util.py:71
Function
is_txt
Test if file path is a text file
surreal/utils/filesys.py:54
Function
iter_last
For processing the last element differently Yields: (is_last=bool, element)
surreal/utils/common.py:165
Method
launch
Launches a surreal experiment Args: component_name: Allowed components: agent-{*},
surreal/launch/launcher.py:122
Method
launch
(self)
surreal/replay/sharded_replay.py:74
Method
learn
Performs a gradient descent step on 'batch' Arguments: batch: a minibatch sampled from the replay memory, after preproce
surreal/learner/ddpg.py:354
Method
learn
main method for learning, calls _optimize. Also sends update stats to Tensorplex Args: batch: pr
surreal/learner/ppo.py:588
Method
learn
(self, batch_exp)
surreal/learner/dqn.py:75
Function
linear_interpolation
(l, r, alpha)
surreal/utils/schedule.py:34
Method
loads
Load from binary () Args: binary: output of ModuleDict.dumps
surreal/distributed/module_dict.py:37
Method
main
Main function that defines learner process
surreal/learner/base.py:348
Function
make_atari
(name)
surreal/env/atari_wrappers.py:223
Function
max_at
Returns: (max, max_i)
surreal/utils/numpy_util.py:14
Function
mean
(numbers)
surreal/utils/common.py:128
Function
meta_wrap
a decorator decorator, allowing the wrapped decorator to be used as: @decorator(*args, **kwargs) def callable() -- or -- @decor
surreal/utils/common.py:305
Function
min_at
Returns: (min, min_i)
surreal/utils/numpy_util.py:7
Method
module_dict
(self)
surreal/learner/ddpg.py:378
Method
module_dict
returns the corresponding parameters
surreal/learner/ppo.py:615
Method
module_dict
(self)
surreal/learner/dqn.py:123
Method
module_dict
(self)
surreal/agent/ppo_agent.py:156
Method
module_dict
(self)
surreal/agent/q_agent.py:50
Function
move_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
Function
new_decor
(*args, **kwargs)
surreal/utils/common.py:326
Function
np_clip_
In-place clip. Also supports indexing
surreal/utils/numpy_util.py:106
Method
num_episodes
(self)
surreal/env/monitor.py:56
Method
observation_spec
(self)
surreal/env/dm_wrapper.py:29
Method
observation_spec
(self)
surreal/env/dm_wrapper.py:74
Method
observation_spec
(self)
surreal/env/wrapper.py:273
Method
observation_spec
(self)
surreal/env/wrapper.py:322
Method
observation_spec
(self)
surreal/env/wrapper.py:355
Method
observation_spec
(self)
surreal/env/wrapper.py:393
Method
observation_spec
(self)
surreal/env/wrapper.py:508
Method
on_parameter_fetched
(self, params, info)
surreal/agent/ddpg_agent.py:149
Function
owner_name
Returns: file owner name, unix only
surreal/utils/filesys.py:28
Function
pa_deserialize
(binary)
surreal/utils/serializer.py:15
Function
pa_serialize
(obj)
surreal/utils/serializer.py:11
Function
parent_dir
Args: location: current directory or file Returns: parent directory absolute or relative path
surreal/utils/filesys.py:189
Method
parse
(self, *args, **kwargs)
surreal/utils/common.py:430
Method
pre_episode
(self)
surreal/agent/ddpg_agent.py:205
Method
prepare_env_agent
(self, env)
surreal/agent/ppo_agent.py:185
Method
prepare_env_agent
(self, env)
surreal/agent/ddpg_agent.py:210
← previous
next →
601–700 of 791, ranked by callers