MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / downsampling

Function downsampling

eval_heldout/science-world/data_utils/data_utils.py:60–74  ·  view source on GitHub ↗
(task_idx_real, curr_task_seq)

Source from the content-addressed store, hash-verified

58 return s
59
60def downsampling(task_idx_real, curr_task_seq):
61 # Downsampling Task 26 and 29
62 if task_idx_real.startswith('9-'):
63 random.seed(1)
64 random.shuffle(curr_task_seq)
65 curr_task_seq = curr_task_seq[:50]
66 elif task_idx_real.startswith('10-'):
67 random.seed(1)
68 random.shuffle(curr_task_seq)
69 curr_task_seq = curr_task_seq[:50]
70 elif task_idx_real.startswith('3-3'):
71 random.seed(1)
72 random.shuffle(curr_task_seq)
73 curr_task_seq = curr_task_seq[:100]
74 return curr_task_seq
75
76# def downsampling_lite_v2(task_idx_real, curr_task_seq):
77# # Downsampling Task 26 and 29

Callers 1

data_convert.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected