Files
wehub-resource-sync e64161ec32
Release / release_and_publish (push) Waiting to run
CI / ci (3.11) (push) Has been cancelled
CI / ci (3.10) (push) Has been cancelled
CI / dependabot (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:36:15 +08:00

34 lines
986 B
Python

from dataclasses import field
from pathlib import Path
from typing import Optional
from rdagent.core.conf import ExtendedBaseSettings
DIRNAME = Path("./")
class BenchmarkSettings(ExtendedBaseSettings):
class Config:
env_prefix = "BENCHMARK_"
"""Use `BENCHMARK_` as prefix for environment variables"""
bench_data_path: Path = DIRNAME / "example.json"
"""data for benchmark"""
bench_test_round: int = 10
"""how many rounds to run, each round may cost 10 minutes"""
bench_test_case_n: Optional[int] = None
"""how many test cases to run; If not given, all test cases will be run"""
bench_method_cls: str = "rdagent.components.coder.factor_coder.FactorCoSTEER"
"""method to be used for test cases"""
bench_method_extra_kwargs: dict = field(
default_factory=dict,
)
"""extra kwargs for the method to be tested except the task list"""
bench_result_path: Path = DIRNAME / "result"
"""result save path"""