Skip to content

Commit 7c7b501

Browse files
committed
Modify optimizer prompt
1 parent 0e2bb08 commit 7c7b501

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synalinks/src/optimizers/omega.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def mutation_instructions(variables_keys):
4444
4545
Guidelines:
4646
- Ensure the new variable is generalizable and performs well across various inputs of the same kind.
47+
- If you have to optimize a variable containing code, don't hardcode solutions but use a generalizable code.
4748
- Include all specified keys: {variables_keys}.
4849
- Justify each change with clear reasoning, referencing the variable's purpose and the desired output.
4950
- If no ground truth is provided, the goal is to critically enhance the predicted output.
@@ -86,6 +87,7 @@ def crossover_instructions(variables_keys):
8687
- Analyze both the current variable and the other high-performing variable, identifying their respective strengths and weaknesses.
8788
- Pay close attention to the variable's description, its intended use, and the broader context of the computation graph.
8889
- Ensure the new variable is generalizable and performs well across various inputs of the same kind.
90+
- If you have to optimize a variable containing code, don't hardcode solutions but use a generalizable code.
8991
- Include all specified keys: {variables_keys}.
9092
- Justify each feature you incorporate, explaining how it contributes to better performance or alignment with the ground truth.
9193
- If no ground truth is provided, the goal is to critically enhance the predicted output.

0 commit comments

Comments
 (0)