Final Version

This commit is contained in:
didi 2024-10-25 17:12:34 +08:00
parent 95bed6e8e8
commit 92e520ded2
8 changed files with 1 additions and 92 deletions

View file

@ -54,7 +54,7 @@ ## Quick Start
4. When you first run, you can download the datasets and initial rounds by setting `download(["datasets", "initial_rounds"])` in `examples/aflow/optimize.py`
5. (Optional) Add your custom dataset and corresponding evaluation function following the [Custom Datasets](#custom-datasets) section
6. (Optional) If you want to use a portion of the validation data, you can set `va_list` in `examples/aflow/evaluator.py`
6. Run `python examples/aflow/optimize.py` to start the optimization process!
6. Run `python -m examples.aflow.optimize` to start the optimization process!
## Reproduce the Results in the Paper

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(current_path)))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType

View file

@ -3,19 +3,6 @@
# @Author : didi
# @Desc : Entrance of AFlow.
import os
import sys
def setup_environment():
current_path = os.path.abspath(__file__)
root_path = os.path.dirname(os.path.dirname(os.path.dirname(current_path)))
sys.path.insert(0, root_path)
os.chdir(root_path)
setup_environment()
from metagpt.configs.models_config import ModelsConfig
from metagpt.ext.aflow.data.download_data import download
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType