MCPcopy Create free account

hub / github.com/SurrealAI/surreal / functions

Functions791 in github.com/SurrealAI/surreal

Methodpreprocess
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
Methodpreprocess
Perform algorithm-specific preprocessing tasks on a given batch, overridden in subclasses This operation occurs asynchronousl
surreal/learner/base.py:318
Functionprint_
Args: *objs: objects to be pretty-printed h: header string **kwargs: other kwargs to pass on to ``pprint()``
surreal/utils/common.py:48
Methodprocess
(frame)
surreal/env/atari_wrappers_deprecated.py:242
Methodpublish_parameter
Learner publishes latest parameters to the parameter server only when accumulated enough experiences specified by learn
surreal/learner/ppo.py:623
Functionpyobj_hash
(obj)
surreal/utils/serializer.py:69
Functionrecursive_print
(D)
test-old/test_config.py:145
Functionreport_exitcode
Given exit code of a process, throw error / print result as desired
surreal/utils/common.py:15
Methodreset
(self)
surreal/agent/action_noise.py:5
Methodreset_period
Set period counter to 0
surreal/utils/checkpoint.py:349
Methodrestore_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
Methodreverse_action
(self, action)
surreal/env/wrapper.py:136
Methodrun
(self)
surreal/utils/common.py:580
Methodrun
Run relative threads and wait until they finish (due to error)
surreal/distributed/parameter_server.py:148
Methodrun
(self)
surreal/distributed/data_fetcher.py:47
Methodrun
Starts the server loop
surreal/distributed/exp_collector.py:22
Methodsample
Method samples actions from probability distribution
surreal/model/ppo_net.py:74
Methodsample
(self, batch_size)
surreal/replay/fifo_replay.py:37
Methodsample
(self, batch_size, batch_i)
surreal/replay/dummy_replay.py:24
Methodsample
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
Methodsample
(self, batch_size)
surreal/replay/uniform_replay.py:43
Methodsave
Same as Checkpoint.save() except that it only runs every `period` number of calls. Returns: True if actually sav
surreal/utils/checkpoint.py:333
Functionsave_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
Functionscript_dir
Returns: the dir of current script
surreal/utils/filesys.py:182
Methodsend
Args: hash_dict: Large/Heavy data that should be deduplicated by the caching mekanism nonhash_
surreal/distributed/exp_sender.py:82
Methodsend
(self, data, obs_next)
surreal/env/exp_sender_wrapper.py:127
Methodset_agent_mode
Args: agent_mode: 'training', 'eval_deterministic', or 'eval_stochastic'
surreal/agent/base.py:371
Functionset_global_serializer
Call at the start of a script
surreal/utils/serializer.py:26
Methodsetup
The function name must be `generate`. Will be called by `surreal.main_scripts.runner`
surreal/main/ddpg_configs.py:245
Methodsetup
(self, argv)
surreal/main/ppo_configs.py:193
Methodsetup
(self, argv)
surreal/main/ppo_configs_cheetah.py:193
Methodsetup
(self, argv)
surreal/main/ppo_configs_hopper.py:193
Methodsetup
(self)
surreal/kube/surreal_kube.py:36
Methodspec_format
(self)
surreal/env/dm_wrapper.py:26
Methodspec_format
(self)
surreal/env/dm_wrapper.py:71
Methodspec_format
(self)
surreal/env/wrapper.py:212
Methodspec_format
(self)
surreal/env/wrapper.py:270
Methodspec_format
(self)
surreal/env/wrapper.py:319
Methodspec_format
(self)
surreal/env/wrapper.py:390
Methodspec_format
(self)
surreal/env/wrapper.py:456
Methodspec_format
(self)
surreal/env/wrapper.py:505
Methodstart_replay
(self, index)
surreal/replay/sharded_replay.py:97
Methodstart_sample_condition
(self)
surreal/replay/fifo_replay.py:44
Methodstart_sample_condition
(self)
surreal/replay/dummy_replay.py:48
Methodstart_sample_condition
(self)
surreal/replay/prioritized_replay.py:166
Methodstart_sample_condition
(self)
surreal/replay/uniform_replay.py:70
Functionstart_thread
(func, daemon=True, args=None, kwargs=None)
surreal/utils/common.py:684
Methodstop
(self)
surreal/utils/common.py:540
Functionstr2bytes
(string)
surreal/utils/serializer.py:80
Functionstring_hash
(s)
surreal/utils/serializer.py:50
Functionsum_pow
Power summation, N inclusive. \sum_{n=N_begin}^{N_end} p^n
surreal/utils/numpy_util.py:21
Functiontest_abstract_extend
where the extended dict may also contain _special_
test-old/test_config.py:318
Functiontest_access_key
(C)
test-old/test_config.py:58
Functiontest_all_types
(C_num)
test-old/test_config.py:198
Functiontest_bad_dict
(C)
test-old/test_config.py:127
Functiontest_bad_key
(C)
test-old/test_config.py:66
Functiontest_bad_req_dict
(C)
test-old/test_config.py:90
Functiontest_bad_req_list
(C)
test-old/test_config.py:99
Functiontest_bad_req_single
(C)
test-old/test_config.py:108
Functiontest_bad_single
(C)
test-old/test_config.py:117
Functiontest_default_dict
(C, C_extended)
test-old/test_config.py:71
Functiontest_default_dict_extend
(C, C_extended)
test-old/test_config.py:80
Functiontest_enum
()
test-old/test_utils.py:6
Functiontest_enum_options
()
test-old/test_config.py:217
Functiontest_int_error
(C_num)
test-old/test_config.py:180
Functiontest_json
(C)
test-old/test_config.py:152
Functiontest_missing_req
(C)
test-old/test_config.py:137
Functiontest_num_error
(C_num)
test-old/test_config.py:162
Functiontest_override_keyword
()
test-old/test_config.py:254
Functiontest_ps
()
test-old/test_redis.py:19
Functiontest_subdict_extend
()
test-old/test_config.py:236
Functiontest_vanilla
()
test-old/test_config.py:264
Functiontest_yaml
(C)
test-old/test_config.py:157
Methodtrack_absolute
Returns: True if we enter the next period
surreal/session/tracker.py:38
Methodunwrapped
Completely unwrap this env. Returns: gym.Env: The base non-wrapped gym.Env instance
surreal/env/base.py:128
Methodunwrapped
(self)
surreal/env/wrapper.py:90
Methodupdate
Count x into historical average, updates running sums and count Accepts batched input Args: x: in
surreal/model/reward_filter.py:33
Methodupdate
Update the estimate. Parameters ---------- new_val: float new observated value of estimated quantity.
surreal/session/tracker.py:63
Methodupdate_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
Methodupdate_target_z_filter
updates kept z-filter to that of another model Args: net: another PPO_Model instance
surreal/model/ppo_net.py:244
Methodusername
(self)
surreal/subproc/surreal_subproc.py:54
Methodusername
(self)
surreal/tmux/surreal_tmux.py:53
Methodusername
(self)
surreal/kube/surreal_kube.py:68
Functionutf_open
Wrapper for codecs.open
surreal/utils/filesys.py:47
Methodvalue
See Schedule.value
surreal/utils/schedule.py:29
Methodvalue
See Schedule.value
surreal/utils/schedule.py:64
Methodvalue
See Schedule.value
surreal/utils/schedule.py:96
Functionwait_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
Functionwrap_deepmind
Configure environment for DeepMind-style Atari.
surreal/env/atari_wrappers.py:228
Functionwrap_dqn
Apply a common set of wrappers for Atari games.
surreal/env/atari_wrappers_deprecated.py:215
Methodz_update
Count x into historical average, updates running sums and count Accepts batched input Args: x: in
surreal/model/z_filter.py:44
← previous701–791 of 791, ranked by callers