MCPcopy Create free account
hub / github.com/NeuralMMO/baselines / get_task_embedding

Method get_task_embedding

curriculum_generation/task_encoder.py:137–165  ·  view source on GitHub ↗

Compute embeddings for given task specifications and save them to file. Args: task_spec_list: List of task specifications. save_to_file: Name of the file where the results should be saved. Returns: Updated task specifications with embeddings.

(self, task_spec_list: List[ts.TaskSpec], save_to_file: str = None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

_construct_promptMethod · 0.95
_get_embeddingMethod · 0.95

Tested by 1

test_task_encoder_apiMethod · 0.64