MCPcopy Create free account

hub / github.com/SurrealAI/surreal / functions

Functions791 in github.com/SurrealAI/surreal

↓ 1 callersMethodrestore_checkpoint
(self)
surreal/learner/base.py:298
↓ 1 callersFunctionrestore_config
Loads a config from a file.
surreal/main/rollout.py:24
↓ 1 callersFunctionrestore_model
Loads model from an experiment folder.
surreal/main/rollout.py:15
↓ 1 callersMethodreward
(self, reward)
surreal/env/wrapper.py:118
↓ 1 callersMethodreward_mean
Outputs the current reward mean
surreal/model/reward_filter.py:59
↓ 1 callersMethodrun_agent
Launches an agent process with agent_id Args: agent_id (int): agent's id iterations (int): if not none,
surreal/launch/launcher.py:181
↓ 1 callersMethodrun_agent_batch
Launches multiple agent processes with agent_id in agent_ids Useful when you want agents to share a GPU Args:
surreal/launch/launcher.py:219
↓ 1 callersMethodrun_eval
Launches an eval processes with id eval_id Args: eval_id (int): eval agent's id mode: eval_deterministic
surreal/launch/launcher.py:247
↓ 1 callersMethodrun_eval_batch
Launches multiple eval processes with agent_id in agent_ids Useful when you want agents to share a GPU Args:
surreal/launch/launcher.py:278
↓ 1 callersMethodrun_learner
Launches the learner process. Learner consumes experience from replay and publishes experience to parameter serve
surreal/launch/launcher.py:308
↓ 1 callersMethodrun_loggerplex
Launches a loggerplex server. It helps distributed logging.
surreal/launch/launcher.py:424
↓ 1 callersMethodrun_ps
Lauches the parameter server process. Serves parameters to agents
surreal/launch/launcher.py:334
↓ 1 callersMethodrun_replay
Launches the replay process. Replay collects experience from agents and serve them to learner
surreal/launch/launcher.py:346
↓ 1 callersMethodrun_replay_loadbalancer
Launches the learner and agent facing load balancing proxys for replays
surreal/launch/launcher.py:360
↓ 1 callersMethodrun_replay_worker
Launches a single replay server Args: replay_id: The id of the replay server
surreal/launch/launcher.py:369
↓ 1 callersMethodrun_tensorboard
Launches a tensorboard process
surreal/launch/launcher.py:383
↓ 1 callersMethodrun_tensorplex
Launches a tensorplex process. It receives data from multiple sources and send them to tensorboard.
surreal/launch/launcher.py:394
↓ 1 callersMethodrunning_mean
returning the running obseravtion mean for Tensorplex logging Returns: numpy array of current running observa
surreal/model/z_filter.py:81
↓ 1 callersMethodrunning_square
returning the running square mean for Tensorplex Logging Returns: running square mean
surreal/model/z_filter.py:100
↓ 1 callersMethodrunning_std
returning the running standard deviation for Tensorplex Logging Returns: numpy array of running standard devi
surreal/model/z_filter.py:90
↓ 1 callersMethodsave
save to `<name>.<global_steps>.ckpt` file Args: score: float scalar to be compared, for `keep_best` global_s
surreal/utils/checkpoint.py:248
↓ 1 callersMethodsave_config
Save config into a yaml file in root experiment directory
surreal/learner/base.py:378
↓ 1 callersMethodscale_image
Given uint8 input from the environment, scale to float32 and divide by 255 to scale inputs between 0.0 and 1.0
surreal/model/ddpg_net.py:90
↓ 1 callersMethodsend
Sends the current experiences to distributed replay buffer Args: data: list of sub-trajectories collected
surreal/env/exp_sender_wrapper.py:230
↓ 1 callersFunctionserialize
We can improve this function if we *really* need more memory efficiency
surreal/utils/serializer.py:36
↓ 1 callersMethodset_queue
queue of (score, filepath) tuples
surreal/utils/checkpoint.py:364
↓ 1 callersMethodsetup
Sets up the related states for running components Args: args: A list of commandline arguments provided.
surreal/launch/launcher.py:66
↓ 1 callersMethodsetup
(self)
surreal/tmux/surreal_tmux.py:31
↓ 1 callersMethodshould_publish_parameter
(self)
surreal/learner/base.py:133
↓ 1 callersMethodstart_evict_thread
(self)
surreal/replay/base.py:173
↓ 1 callersMethodstart_sample_condition
Tells the thread to start sampling only when this condition is met. For example, only when the replay memory has > 10K experiences.
surreal/replay/base.py:98
↓ 1 callersMethodstart_tensorplex_thread
(self)
surreal/replay/base.py:185
↓ 1 callersMethodstop_record
stops recording and wait for the video_process to finish writing to file and join First puts a None (End of Video) frame into the fra
surreal/env/video_env.py:149
↓ 1 callersMethodtrain
(self)
test-old/test_gpu.py:61
↓ 1 callersMethodvalue
Value of the schedule at time t
surreal/utils/schedule.py:13
↓ 1 callersMethodz_update
updates Z_filter running obs mean and variance Args: obs: dictionary of batched observations
surreal/model/ppo_net.py:356
FunctionC
()
test-old/test_config.py:7
FunctionC_extended
()
test-old/test_config.py:50
FunctionC_num
()
test-old/test_config.py:32
Method__array__
(self, dtype=None)
surreal/env/atari_wrappers_deprecated.py:168
Method__array__
(self, dtype=None)
surreal/env/atari_wrappers.py:219
Method__call__
(self, *args, **kwargs)
surreal/utils/common.py:270
Method__call__
(self, *args, **kwargs)
surreal/env/base.py:20
Method__call__
(self)
surreal/agent/action_noise.py:14
Method__call__
(self)
surreal/agent/action_noise.py:31
Method__del__
(self)
surreal/env/base.py:136
Method__enter__
(self)
surreal/utils/common.py:189
Method__enter__
(self)
surreal/utils/common.py:298
Method__exit__
(self, *args)
surreal/utils/common.py:193
Method__exit__
(self, exc_type, exc_val, exc_tb)
surreal/utils/common.py:301
Method__float__
Get the current estimate
surreal/session/tracker.py:76
Method__getattr__
delegate any other methods to the underlying parser
surreal/utils/common.py:433
Method__getattr__
(self, key)
surreal/session/config.py:186
Method__getitem__
(self, option)
surreal/utils/common.py:68
Method__getitem__
(self, idx)
surreal/replay/segment_tree.py:84
Method__init__
Value remains constant over time. Parameters ---------- value: float Constant value of the schedule
surreal/utils/schedule.py:19
Method__init__
Piecewise schedule. endpoints: [(int, int)] list of pairs `(time, value)` meanining that schedule should output `valu
surreal/utils/schedule.py:39
Method__init__
Linear interpolation between initial_p and final_p over schedule_timesteps. After this many timesteps pass final_p is returned.
surreal/utils/schedule.py:77
Method__init__
Same signature as Checkpoint Args: period: Only update when the interval counter % period == 0 min_interval:
surreal/utils/checkpoint.py:318
Method__init__
(self, max_size)
surreal/utils/checkpoint.py:360
Method__init__
(self, *args, **kwargs)
surreal/utils/common.py:85
Method__init__
(cls, name, bases, attrs)
surreal/utils/common.py:207
Method__init__
(self, *args, **kwargs)
surreal/utils/common.py:294
Method__init__
(self, decay=0.95)
surreal/utils/common.py:470
Method__init__
(self, decay=0.95)
surreal/utils/common.py:494
Method__init__
Args: decay: Decay factor of smoothed moving average Default is 0.9995, which is approximately moving average
surreal/utils/common.py:511
Method__init__
(self, target, interval=1, args=None, kwargs=None)
surreal/utils/common.py:573
Method__init__
(self, interval)
surreal/utils/common.py:591
Method__init__
(self, initial_value)
surreal/utils/common.py:610
Method__init__
(self)
surreal/utils/common.py:634
Method__init__
Figures out what docker images need to be built Populates self.images_provided which computes {name: identifi
surreal/launch/build_images.py:14
Method__init__
Args: num_agents: number of agents to run num_evals: number of evals to run executable: path to .py execu
surreal/launch/command_generator.py:4
Method__init__
Setup an surreal experiment Args: agent_class: The Agent subclass to run for agents learner_class: The Agent
surreal/launch/launcher.py:80
Method__init__
Args: port: the port connected to the pub socket module_dict: ModuleDict object that exposes model parameters
surreal/distributed/parameter_server.py:25
Method__init__
(self, shards)
surreal/distributed/parameter_server.py:62
Method__init__
Args: publisher_host, publisher_port: where learner publish parameters serving_host, serving_port: where to serve par
surreal/distributed/parameter_server.py:120
Method__init__
Args: host: parameter server host port: parameter server port timeout: how long should the the client wai
surreal/distributed/parameter_server.py:219
Method__init__
(self)
surreal/distributed/exp_sender.py:14
Method__init__
Args: flush_iteration: how many send() calls before we flush the buffer
surreal/distributed/exp_sender.py:68
Method__init__
(self, session_config, batch_size, worker_preprocess=None,
surreal/distributed/data_fetcher.py:17
Method__init__
(self, host, port, exp_handler, load_balanced=True)
surreal/distributed/exp_collector.py:12
Method__init__
(self, module_dict)
surreal/distributed/module_dict.py:14
Method__init__
is_uint8: scale down uint8 image input from Atari by 255.0 You can use atari_wrapper.ScaledFloatFrame, but dividing on GPU is more
surreal/model/q_net.py:69
Method__init__
(self, action_dim)
surreal/model/ppo_net.py:26
Method__init__
(self, obs_spec, action_dim, model_config,
surreal/model/ppo_net.py:110
Method__init__
Constructor for RewardFilter class Args: eps: tolerance value for computing reward filter (whitening)
surreal/model/reward_filter.py:18
Method__init__
Constructor for ZFilter class Args: obs_spec: nested dictionary of observation space spec. see doc eps: toler
surreal/model/z_filter.py:23
Method__init__
(self, obs_spec, action_dim, use_layernorm,
surreal/model/ddpg_net.py:15
Method__init__
(self, output_spec)
surreal/model/model_builders/head_builder.py:8
Method__init__
(self, D_obs, D_out, conv_channels=[16, 32], kernel_sizes=[8, 4], strides=[4,2])
surreal/model/model_builders/builders.py:9
Method__init__
(self, D_in, D_act, hidden_sizes=[400, 300], use_layernorm=True)
surreal/model/model_builders/builders.py:59
Method__init__
Constructor for PPO actor network Args: D_obs: observation space dimension, scalar D_act: ac
surreal/model/model_builders/builders.py:90
Method__init__
Constructor for PPO critic network Args: D_obs: observation space dimension, scalar hidden_s
surreal/model/model_builders/builders.py:139
Method__init__
(self, input_spec, conv_spec=None, mlp_spec=None,
surreal/model/model_builders/torso_builder.py:9
Method__init__
(self)
surreal/main/ddpg_configs.py:231
Method__init__
(self)
surreal/main/ppo_configs.py:179
Method__init__
(self)
surreal/main/ppo_configs_cheetah.py:179
Method__init__
(self)
surreal/main/ppo_configs_hopper.py:179
Method__init__
(self, d=None, **kwargs)
surreal/session/config.py:160
Method__init__
first: if True, triggers at the first time
surreal/session/tracker.py:11
← previousnext →301–400 of 791, ranked by callers