Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NeuralMMO/baselines
/ functions
Functions
176 in github.com/NeuralMMO/baselines
⨍
Functions
176
◇
Types & classes
43
Method
__init__
(self, input_size, hidden_size)
agent_zoo/takeru/policy.py:118
Method
__init__
(self, input_size, hidden_size)
agent_zoo/takeru/policy.py:216
Method
__init__
(self, input_size, hidden_size)
agent_zoo/takeru/policy.py:262
Method
__init__
(self, input_size, hidden_size)
agent_zoo/takeru/policy.py:273
Method
__init__
(self, input_size, hidden_size, task_size)
agent_zoo/takeru/policy.py:282
Method
__init__
(self, input_size, hidden_size)
agent_zoo/takeru/policy.py:291
Method
__init__
( # BaseStatWrapper args self, env, eval_mode=False, early_stop_agent_
agent_zoo/takeru/reward_wrapper.py:5
Method
__init__
Initialize the TaskEncoder. Args: checkpoint: Path to the pretrained model. context: Python module context in which
curriculum_generation/task_encoder.py:27
Method
__init__
(self, task_spec: List[ts.TaskSpec], average_window=50)
curriculum_generation/task_sampler.py:9
Method
_create_testing_task_list
Manually generate a list of tasks used for testing.
syllabus_wrapper.py:209
Method
_debug
(self, agents)
agent_zoo/takeru/policy.py:209
Method
action
Called before actions are passed from the model to the environment
agent_zoo/neurips23_start_kit/reward_wrapper.py:56
Method
action_space
Implement Neural MMO's action_space method.
syllabus_wrapper.py:163
Method
add_tasks
(self, task_spec: List[ts.TaskSpec])
curriculum_generation/task_sampler.py:18
Function
agent_creator
(env, args)
train.py:67
Function
agent_creator
(env, args=None)
evaluate.py:102
Method
agents
(self)
reinforcement_learning/stat_wrapper.py:45
Function
close
(data)
reinforcement_learning/clean_pufferl.py:562
Function
create
( self: object = None, config: pufferlib.namespace = None, exp_name: str = None, track: bool =
reinforcement_learning/clean_pufferl.py:68
Method
create_manual_task_list
(self)
syllabus_wrapper.py:179
Method
create_original_task_list
(self)
syllabus_wrapper.py:167
Method
decode_actions
(self, hidden, lookup)
agent_zoo/neurips23_start_kit/baseline_policy.py:79
Method
decode_actions
(self, hidden, lookup)
agent_zoo/yaofeng/policy.py:68
Method
decode_actions
(self, hidden, lookup)
agent_zoo/takeru/policy.py:74
Method
encode_observations
(self, flat_observations)
agent_zoo/neurips23_start_kit/baseline_policy.py:40
Method
encode_observations
(self, flat_observations)
agent_zoo/yaofeng/policy.py:41
Method
encode_observations
(self, flat_observations)
agent_zoo/takeru/policy.py:39
Function
env_creator
(*args, **kwargs)
evaluate.py:81
Function
env_creator
Create an environment.
reinforcement_learning/environment.py:55
Function
evaluate
(data)
reinforcement_learning/clean_pufferl.py:254
Method
forward
(self, tile)
agent_zoo/neurips23_start_kit/baseline_policy.py:95
Method
forward
(self, agents, my_id)
agent_zoo/neurips23_start_kit/baseline_policy.py:123
Method
forward
(self, items)
agent_zoo/neurips23_start_kit/baseline_policy.py:157
Method
forward
(self, inventory)
agent_zoo/neurips23_start_kit/baseline_policy.py:178
Method
forward
(self, market)
agent_zoo/neurips23_start_kit/baseline_policy.py:189
Method
forward
(self, task)
agent_zoo/neurips23_start_kit/baseline_policy.py:198
Method
forward
(self, hidden, lookup)
agent_zoo/neurips23_start_kit/baseline_policy.py:232
Method
forward
(self, x)
agent_zoo/yaofeng/policy.py:85
Method
forward
(self, tile)
agent_zoo/yaofeng/policy.py:103
Method
forward
(self, x)
agent_zoo/yaofeng/policy.py:133
Method
forward
(self, agents, my_id)
agent_zoo/yaofeng/policy.py:163
Method
forward
(self, items)
agent_zoo/yaofeng/policy.py:214
Method
forward
(self, inventory)
agent_zoo/yaofeng/policy.py:239
Method
forward
(self, market)
agent_zoo/yaofeng/policy.py:252
Method
forward
(self, task)
agent_zoo/yaofeng/policy.py:263
Method
forward
(self, hidden, lookup)
agent_zoo/yaofeng/policy.py:298
Method
forward
(self, tile)
agent_zoo/takeru/policy.py:94
Method
forward
(self, agents, my_id)
agent_zoo/takeru/policy.py:173
Method
forward
(self, items)
agent_zoo/takeru/policy.py:243
Method
forward
(self, inventory)
agent_zoo/takeru/policy.py:266
Method
forward
(self, market)
agent_zoo/takeru/policy.py:277
Method
forward
(self, task)
agent_zoo/takeru/policy.py:286
Method
forward
(self, hidden, lookup)
agent_zoo/takeru/policy.py:351
Function
main
()
train_helper.py:75
Function
make_env_creator
( reward_wrapper_cls: BaseParallelWrapper, syllabus_wrapper=False, syllabus=None )
reinforcement_learning/environment.py:52
Function
make_syllabus_env_creator
(args, agent_module)
syllabus_wrapper.py:20
Method
observation
Called before observations are returned from the environment Use this to define custom featurizers. Changing the space itself requires you to
agent_zoo/neurips23_start_kit/reward_wrapper.py:46
Method
observation
Called before observations are returned from the environment Use this to define custom featurizers. Changing the space itself requires you to
agent_zoo/yaofeng/reward_wrapper.py:65
Method
reset
Called at the start of each episode
reinforcement_learning/stat_wrapper.py:48
Method
reset
Called at the start of each episode
agent_zoo/neurips23_start_kit/reward_wrapper.py:25
Method
reset
Called at the start of each episode
agent_zoo/yaofeng/reward_wrapper.py:48
Method
reset
(self)
curriculum_generation/task_sampler.py:15
Method
reward_terminated_truncated_info
(self, agent_id, reward, terminated, truncated, info)
agent_zoo/neurips23_start_kit/reward_wrapper.py:63
Method
reward_terminated_truncated_info
(self, agent_id, reward, terminated, truncated, info)
agent_zoo/yaofeng/reward_wrapper.py:84
Method
reward_terminated_truncated_info
(self, agent_id, reward, terminated, truncated, info)
agent_zoo/takeru/reward_wrapper.py:39
Method
sample_tasks
( self, num_tasks, random_ratio=0.5, reset_sampling_weight=True, )
curriculum_generation/task_sampler.py:66
Method
setUpClass
(cls)
tests/test_task_encoder.py:16
Method
set_debug
(self, debug)
evaluate.py:116
Method
step
(self, action)
syllabus_wrapper.py:158
Method
tearDownClass
(cls)
tests/test_task_encoder.py:22
Method
test_contruct_prompt
(self)
tests/test_task_encoder.py:48
Method
test_embed_dim
(self)
tests/test_task_encoder.py:25
Method
test_get_task_deps_src
(self)
tests/test_task_encoder.py:36
Method
test_task_encoder_api
(self)
tests/test_task_encoder.py:28
Function
train
(data)
reinforcement_learning/clean_pufferl.py:399
Method
update_context
Update the module context, extracting function dictionary.
curriculum_generation/task_encoder.py:62
← previous
101–176 of 176, ranked by callers