Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llm4ad/method/eoh/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_prompt_e2(cls, task_prompt: str, indivs: List[Function], template_functi
prompt_content = f'''{task_prompt}
I have {len(indivs)} existing algorithms with their codes as follows:
{indivs_prompt}
Please help me create a new algorithm that has a totally different form from the given ones but can be motivated from them.
Please help me create a new algorithm that has a different form from the given ones but can be motivated from them.
1. Firstly, identify the common backbone idea in the provided algorithms.
2. Secondly, based on the backbone idea describe your new algorithm in one sentence. The description must be inside within boxed {{}}.
3. Thirdly, implement the following Python function:
Expand Down Expand Up @@ -112,7 +112,7 @@ def get_prompt_m2(cls, task_prompt: str, indi: Function, template_function: Func
{indi.algorithm}
Code:
{str(indi)}
Please identify the main algorithm parameters and assist me in creating a new algorithm that has a different parameter settings of the score function provided.
Please identify the main algorithm parameters and assist me in creating a new algorithm that has a different parameter settings.
1. First, describe your new algorithm and main steps in one sentence. The description must be inside within boxed {{}}.
2. Next, implement the following Python function:
{str(temp_func)}
Expand Down