Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YeWR/EfficientZero
/ functions
Functions
210 in github.com/YeWR/EfficientZero
⨍
Functions
210
◇
Types & classes
34
↓ 1 callers
Method
representation
(self, obs_history)
core/model.py:75
↓ 1 callers
Method
reward_phi
(self, x)
core/config.py:346
↓ 1 callers
Method
save_game
Save a game history block Parameters ---------- game: Any a game history block end_tag: bool T
core/replay_buffer.py:38
↓ 1 callers
Method
set_config
(self, args)
core/config.py:372
↓ 1 callers
Method
set_delta
core/ctree/cminimax.cpp:13
↓ 1 callers
Method
set_game
(self, env_name)
core/config.py:290
↓ 1 callers
Function
set_seed
(seed)
core/utils.py:243
↓ 1 callers
Method
set_transforms
(self)
config/atari/__init__.py:161
↓ 1 callers
Method
set_weights
(self, weights)
core/storage.py:69
↓ 1 callers
Function
train
training process Parameters ---------- summary_writer: Any logging for tensorboard model_path: str model path for resu
core/train.py:426
↓ 1 callers
Function
update_tree_q
core/ctree/cnode.cpp:256
↓ 1 callers
Method
value_phi
(self, x)
core/config.py:343
↓ 1 callers
Method
visit_softmax_temperature_fn
(self, num_moves, trained_steps)
core/config.py:287
Method
CMinMaxStats
core/ctree/cminimax.cpp:5
Method
CMinMaxStatsList
core/ctree/cminimax.cpp:47
Method
CNode
core/ctree/cnode.cpp:21
Method
CRoots
core/ctree/cnode.cpp:180
Method
CSearchResults
core/ctree/cnode.cpp:6
Method
__init__
(self, min: int, max: int, delta=1.)
core/config.py:11
Method
__init__
Base Config for EfficietnZero Parameters ---------- training_steps: int training steps while collecting data
core/config.py:22
Method
__init__
(self, config=None)
core/replay_buffer.py:12
Method
__init__
Queue storage Parameters ---------- threshold: int if the current size if larger than threshold, the data won't be
core/storage.py:7
Method
__init__
Shared storage for models and others Parameters ---------- model: any models for self-play (update every checkpoin
core/storage.py:35
Method
__init__
Data Worker for collecting data through self-play Parameters ---------- rank: int id of the worker replay_
core/selfplay_worker.py:17
Method
__init__
Linear interpolation between initial_p and final_p over schedule_timesteps. After this many timesteps pass final_p is returned.
core/utils.py:15
Method
__init__
Sample initial states by taking random number of no-ops on reset. No-op is assumed to be action 0.
core/utils.py:62
Method
__init__
Make end-of-life == end-of-episode, but only reset on true game over. Done by DeepMind for the DQN and co. since it helps value estimation.
core/utils.py:92
Method
__init__
Return only every `skip`-th frame
core/utils.py:129
Method
__init__
Warp frames to 84x84 as done in the Nature paper and later work. If the environment uses dictionary observations, `dict_space_key` ca
core/utils.py:171
Method
__init__
(self, augmentation, shift_delta=4, image_shape=(96, 96))
core/dataset.py:12
Method
__init__
(self, scale)
core/dataset.py:52
Method
__init__
(self, config)
core/mcts.py:10
Method
__init__
(self, env, action_space_size: int, discount: float, config=None)
core/game.py:10
Method
__init__
Parameters ---------- action_space: int action space max_length: int max transition number of
core/game.py:37
Method
__init__
CPU Batch Worker for reanalyzing targets, see Appendix. Prepare the context concerning CPU overhead Parameters ----------
core/reanalyze_worker.py:16
Method
__init__
GPU Batch Worker for reanalyzing targets, see Appendix. receive the context from CPU maker and deal with GPU overheads Parameters
core/reanalyze_worker.py:268
Method
__init__
Base Network schedule_timesteps. After this many timesteps pass final_p is returned. Parameters ---------- inv
core/model.py:54
Method
__init__
(self)
config/atari/__init__.py:11
Method
__init__
Atari Wrapper Parameters ---------- env: Any another env wrapper discount: float discount of e
config/atari/env_wrapper.py:7
Method
__init__
(self, in_channels, out_channels, downsample=None, stride=1, momentum=0.1)
config/atari/model.py:60
Method
__init__
Representation network Parameters ---------- observation_shape: tuple or list shape of observations: [C, W, H]
config/atari/model.py:138
Method
__init__
Dynamics network Parameters ---------- num_blocks: int number of res blocks num_channels: int
config/atari/model.py:196
Method
__init__
Prediction network Parameters ---------- action_space_size: int action space num_blocks: int n
config/atari/model.py:293
Method
__init__
EfficientZero network Parameters ---------- observation_shape: tuple or list shape of observations: [C, W, H]
config/atari/model.py:367
Method
_get_max_entropy
(action_space)
core/selfplay_worker.py:114
Function
_test
(config, shared_storage)
core/test.py:17
Method
add_test_log
(self, test_counter, test_dict)
core/storage.py:99
Function
cbatch_back_propagate
core/ctree/cnode.cpp:317
Function
cbatch_traverse
core/ctree/cnode.cpp:380
Method
clear
core/ctree/cminimax.cpp:26
Method
clear_buffer
(self)
core/replay_buffer.py:154
Method
close
(self)
config/atari/env_wrapper.py:45
Method
dynamics
(self, encoded_state, reward_hidden, action)
config/atari/model.py:549
Method
episodes_collected
(self)
core/replay_buffer.py:161
Method
forward
(self, x)
core/dataset.py:56
Method
forward
(self, x)
config/atari/model.py:68
Method
forward
(self, x)
config/atari/model.py:120
Method
forward
(self, x)
config/atari/model.py:174
Method
forward
(self, x, reward_hidden)
config/atari/model.py:247
Method
forward
(self, x)
config/atari/model.py:348
Method
get_batch_size
(self)
core/replay_buffer.py:165
Method
get_counter
(self)
core/storage.py:81
Method
get_game
(self, idx)
core/replay_buffer.py:72
Method
get_gradients
(self)
core/model.py:121
Method
get_max_episode_steps
(self)
config/atari/env_wrapper.py:24
Method
get_priorities
(self)
core/replay_buffer.py:168
Method
get_start_signal
(self)
core/storage.py:63
Method
get_target_weights
(self)
core/storage.py:72
Method
get_targets
(self, i)
core/game.py:164
Method
get_trajectories
core/ctree/cnode.cpp:226
Method
get_uniform_network
(self)
config/atari/__init__.py:107
Method
get_worker_logs
(self)
core/storage.py:106
Method
incr_counter
(self)
core/storage.py:78
Method
legal_actions
(self)
core/game.py:16
Method
legal_actions
(self)
core/game.py:122
Method
legal_actions
(self)
config/atari/env_wrapper.py:21
Method
observation
(self, obs)
core/utils.py:201
Method
prediction
(self, encoded_state)
config/atari/model.py:537
Method
prepare_batch_context
Prepare a batch context that contains: game_lst: a list of game histories game_pos_lst: transition index in ga
core/replay_buffer.py:79
Method
print_out
core/ctree/cnode.cpp:123
Method
remove_to_fit
(self)
core/replay_buffer.py:129
Method
render
(self, mode='human', **kwargs)
core/utils.py:157
Method
representation
(self, observation)
config/atari/model.py:541
Method
reset
Do no-op action for a number of steps in [1, noop_max].
core/utils.py:72
Method
reset
Reset only when lives are exhausted. This way all states are still reachable even though lives are episodic, and the learner need not
core/utils.py:114
Method
reset
(self, **kwargs)
core/utils.py:154
Method
reset
(self, **kwargs)
config/atari/env_wrapper.py:36
Method
run
(self)
core/selfplay_worker.py:104
Method
run
(self)
core/reanalyze_worker.py:230
Method
run
(self)
core/reanalyze_worker.py:499
Method
save_pools
(self, pools, gap_step)
core/replay_buffer.py:30
Method
scalar_loss
(self, prediction, target)
core/config.py:300
Method
set_data_worker_logs
(self, eps_len, eps_len_max, eps_ori_reward, eps_reward, eps_reward_max, temperature, visit_entropy, priority_
core/storage.py:84
Method
set_game
(self, env_name, save_video=False, save_path=None, video_callable=None)
config/atari/__init__.py:96
Method
set_gradients
(self, gradients)
core/model.py:128
Method
set_start_signal
(self)
core/storage.py:60
Method
set_target_weights
(self, weights)
core/storage.py:75
Method
step
(self, ac)
core/utils.py:87
Method
step
(self, action)
core/utils.py:100
Method
step
Repeat action, sum reward, and max over last observations.
core/utils.py:137
← previous
next →
101–200 of 210, ranked by callers