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
preprocess
Override for learner/base/preprocess. Before learn() is called, preprocess() takes the batch and converts the numpy arrays to pytorc
surreal/learner/ddpg.py:186
Method
preprocess
Perform algorithm-specific preprocessing tasks on a given batch, overridden in subclasses This operation occurs asynchronousl
surreal/learner/base.py:318
Function
print_
Args: *objs: objects to be pretty-printed h: header string **kwargs: other kwargs to pass on to ``pprint()``
surreal/utils/common.py:48
Method
process
(frame)
surreal/env/atari_wrappers_deprecated.py:242
Method
publish_parameter
Learner publishes latest parameters to the parameter server only when accumulated enough experiences specified by learn
surreal/learner/ppo.py:623
Function
pyobj_hash
(obj)
surreal/utils/serializer.py:69
Function
recursive_print
(D)
test-old/test_config.py:145
Function
report_exitcode
Given exit code of a process, throw error / print result as desired
surreal/utils/common.py:15
Method
reset
(self)
surreal/agent/action_noise.py:5
Method
reset_period
Set period counter to 0
surreal/utils/checkpoint.py:349
Method
restore_full_name
Args: ckpt_file: full name of the ckpt_file in self.folder. check_ckpt_exists: raise FileNotFoundError if the checkpo
surreal/utils/checkpoint.py:195
Method
reverse_action
(self, action)
surreal/env/wrapper.py:136
Method
run
(self)
surreal/utils/common.py:580
Method
run
Run relative threads and wait until they finish (due to error)
surreal/distributed/parameter_server.py:148
Method
run
(self)
surreal/distributed/data_fetcher.py:47
Method
run
Starts the server loop
surreal/distributed/exp_collector.py:22
Method
sample
Method samples actions from probability distribution
surreal/model/ppo_net.py:74
Method
sample
(self, batch_size)
surreal/replay/fifo_replay.py:37
Method
sample
(self, batch_size, batch_i)
surreal/replay/dummy_replay.py:24
Method
sample
WARNING: This function does not make deep copies of the tuple experiences. This means that if any objects in the experiences
surreal/replay/prioritized_replay.py:68
Method
sample
(self, batch_size)
surreal/replay/uniform_replay.py:43
Method
save
Same as Checkpoint.save() except that it only runs every `period` number of calls. Returns: True if actually sav
surreal/utils/checkpoint.py:333
Function
save_video
Target function for video process. Opens up file with path and uses library imageio Args: frame_queue: a queue of frames to be store.
surreal/env/video_env.py:12
Function
script_dir
Returns: the dir of current script
surreal/utils/filesys.py:182
Method
send
Args: hash_dict: Large/Heavy data that should be deduplicated by the caching mekanism nonhash_
surreal/distributed/exp_sender.py:82
Method
send
(self, data, obs_next)
surreal/env/exp_sender_wrapper.py:127
Method
set_agent_mode
Args: agent_mode: 'training', 'eval_deterministic', or 'eval_stochastic'
surreal/agent/base.py:371
Function
set_global_serializer
Call at the start of a script
surreal/utils/serializer.py:26
Method
setup
The function name must be `generate`. Will be called by `surreal.main_scripts.runner`
surreal/main/ddpg_configs.py:245
Method
setup
(self, argv)
surreal/main/ppo_configs.py:193
Method
setup
(self, argv)
surreal/main/ppo_configs_cheetah.py:193
Method
setup
(self, argv)
surreal/main/ppo_configs_hopper.py:193
Method
setup
(self)
surreal/kube/surreal_kube.py:36
Method
spec_format
(self)
surreal/env/dm_wrapper.py:26
Method
spec_format
(self)
surreal/env/dm_wrapper.py:71
Method
spec_format
(self)
surreal/env/wrapper.py:212
Method
spec_format
(self)
surreal/env/wrapper.py:270
Method
spec_format
(self)
surreal/env/wrapper.py:319
Method
spec_format
(self)
surreal/env/wrapper.py:390
Method
spec_format
(self)
surreal/env/wrapper.py:456
Method
spec_format
(self)
surreal/env/wrapper.py:505
Method
start_replay
(self, index)
surreal/replay/sharded_replay.py:97
Method
start_sample_condition
(self)
surreal/replay/fifo_replay.py:44
Method
start_sample_condition
(self)
surreal/replay/dummy_replay.py:48
Method
start_sample_condition
(self)
surreal/replay/prioritized_replay.py:166
Method
start_sample_condition
(self)
surreal/replay/uniform_replay.py:70
Function
start_thread
(func, daemon=True, args=None, kwargs=None)
surreal/utils/common.py:684
Method
stop
(self)
surreal/utils/common.py:540
Function
str2bytes
(string)
surreal/utils/serializer.py:80
Function
string_hash
(s)
surreal/utils/serializer.py:50
Function
sum_pow
Power summation, N inclusive. \sum_{n=N_begin}^{N_end} p^n
surreal/utils/numpy_util.py:21
Function
test_abstract_extend
where the extended dict may also contain _special_
test-old/test_config.py:318
Function
test_access_key
(C)
test-old/test_config.py:58
Function
test_all_types
(C_num)
test-old/test_config.py:198
Function
test_bad_dict
(C)
test-old/test_config.py:127
Function
test_bad_key
(C)
test-old/test_config.py:66
Function
test_bad_req_dict
(C)
test-old/test_config.py:90
Function
test_bad_req_list
(C)
test-old/test_config.py:99
Function
test_bad_req_single
(C)
test-old/test_config.py:108
Function
test_bad_single
(C)
test-old/test_config.py:117
Function
test_default_dict
(C, C_extended)
test-old/test_config.py:71
Function
test_default_dict_extend
(C, C_extended)
test-old/test_config.py:80
Function
test_enum
()
test-old/test_utils.py:6
Function
test_enum_options
()
test-old/test_config.py:217
Function
test_int_error
(C_num)
test-old/test_config.py:180
Function
test_json
(C)
test-old/test_config.py:152
Function
test_missing_req
(C)
test-old/test_config.py:137
Function
test_num_error
(C_num)
test-old/test_config.py:162
Function
test_override_keyword
()
test-old/test_config.py:254
Function
test_ps
()
test-old/test_redis.py:19
Function
test_subdict_extend
()
test-old/test_config.py:236
Function
test_vanilla
()
test-old/test_config.py:264
Function
test_yaml
(C)
test-old/test_config.py:157
Method
track_absolute
Returns: True if we enter the next period
surreal/session/tracker.py:38
Method
unwrapped
Completely unwrap this env. Returns: gym.Env: The base non-wrapped gym.Env instance
surreal/env/base.py:128
Method
unwrapped
(self)
surreal/env/wrapper.py:90
Method
update
Count x into historical average, updates running sums and count Accepts batched input Args: x: in
surreal/model/reward_filter.py:33
Method
update
Update the estimate. Parameters ---------- new_val: float new observated value of estimated quantity.
surreal/session/tracker.py:63
Method
update_priorities
Update priorities of sampled transitions. sets priority of transition at index indices[i] in buffer to priorities[i].
surreal/replay/prioritized_replay.py:124
Method
update_target_z_filter
updates kept z-filter to that of another model Args: net: another PPO_Model instance
surreal/model/ppo_net.py:244
Method
username
(self)
surreal/subproc/surreal_subproc.py:54
Method
username
(self)
surreal/tmux/surreal_tmux.py:53
Method
username
(self)
surreal/kube/surreal_kube.py:68
Function
utf_open
Wrapper for codecs.open
surreal/utils/filesys.py:47
Method
value
See Schedule.value
surreal/utils/schedule.py:29
Method
value
See Schedule.value
surreal/utils/schedule.py:64
Method
value
See Schedule.value
surreal/utils/schedule.py:96
Function
wait_for_popen
Wait for some processes, terminate all if one of them fails Args: processes: A list of Popen verbose (bool, default True):
surreal/utils/common.py:651
Function
wrap_deepmind
Configure environment for DeepMind-style Atari.
surreal/env/atari_wrappers.py:228
Function
wrap_dqn
Apply a common set of wrappers for Atari games.
surreal/env/atari_wrappers_deprecated.py:215
Method
z_update
Count x into historical average, updates running sums and count Accepts batched input Args: x: in
surreal/model/z_filter.py:44
← previous
701–791 of 791, ranked by callers