@@ -30,7 +30,7 @@ def wrapper(*args, **kwargs):
3030
3131def brainstorm_init_questions (lm , args ) -> List [str ]:
3232 PROMPT = f"""
33- You are a scientific agent tasked with generating useful questions for linearly predicting fMRI responses to natural language stimuli .
33+ You are a scientific agent tasked with generating useful questions for linearly predicting fMRI responses to natural language sentences .
3434{ f'Specifically, you are predicting fMRI responses to the { args .predict_subset } cortex.' if not args .predict_subset == 'all' else '' }
3535
3636Brainstorm some questions that could be useful.
@@ -40,6 +40,7 @@ def brainstorm_init_questions(lm, args) -> List[str]:
4040Each question should not contain many examples.
4141Each question should ask about one concept rather than joining together unrelated concepts.
4242Each question must start with "Does the input" and end with "?".
43+ The input to each question will be a single sentence from a narrative story.
4344Example: ["Does the input mention a location?", "Does the input mention time?", "Does the input contain a proper noun?"]
4445""" .strip ()
4546 questions_list_str = lm (PROMPT , max_completion_tokens = None , temperature = 0 , seed = args .seed , reasoning_effort = 'high' )
@@ -74,7 +75,7 @@ def update_questions(lm, args, questions_list: List[str], r) -> List[str]:
7475
7576 PROMPT = f"""
7677# Main instructions
77- You are a scientific agent tasked with generating useful questions for linearly predicting fMRI responses to natural language stimuli .
78+ You are a scientific agent tasked with generating useful questions for linearly predicting fMRI responses to natural language sentences .
7879{ f'Specifically, you are predicting fMRI responses to the { args .predict_subset } cortex.' if not args .predict_subset == 'all' else '' }
7980
8081Here is the original list of questions that have been previously tested, along with their feature importance (higher is more important):
@@ -107,6 +108,7 @@ def update_questions(lm, args, questions_list: List[str], r) -> List[str]:
107108Each question should not contain many examples.
108109Each question should ask about one concept rather than joining together unrelated concepts.
109110Each question must start with "Does the input" and end with "?". It is very important that every question starts with "Does the input".
111+ The input to each question will be a single sentence from a narrative story.
110112Example output: ["Does the input mention a location?", "Does the input mention time?", "Does the input contain a proper noun?"]
111113""" .strip ()
112114 questions_list_str = lm (PROMPT , temperature = 0 , max_completion_tokens = None , seed = args .seed , reasoning_effort = 'high' )
0 commit comments