Skip to content

Commit 9c65d7a

Browse files
committed
refactored create_participants to get_participants
1 parent 0c22baa commit 9c65d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llm_cooperation/experiments/dilemma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def compute_freq_pd(choices: List[Choices[DilemmaChoice]]) -> float:
298298

299299

300300
@lru_cache()
301-
def create_participants(num_participant_samples: int) -> List[Participant]:
301+
def get_participants(num_participant_samples: int) -> List[Participant]:
302302
participant_conditions = GROUP_PROMPT_CONDITIONS
303303
random_attributes: Grid = {
304304
CONDITION_CHAIN_OF_THOUGHT: [True, False],
@@ -338,7 +338,7 @@ def run(
338338
compute_freq=compute_freq_pd,
339339
)
340340
return run_experiment(
341-
participants=iter(create_participants(num_participant_samples)),
341+
participants=iter(get_participants(num_participant_samples)),
342342
partner_conditions={
343343
"unconditional cooperate": strategy_cooperate,
344344
"unconditional defect": strategy_defect,

0 commit comments

Comments
 (0)