mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-02 01:47:43 +00:00
b662f45021
* feat: add model dump flag and multi-evaluator support * tmp code * refactor: update evaluator feedback and FBWorkspace types * feat: add get_clear_ws_cmd and CPU count in Docker environment * feat: Add model dump check level and enhance evaluator functionality fix data type bug * fix: Ensure required files exist before model dump evaluation * refactor: streamline prompt and file checks in model dump evaluation * fix: add assertions and reorder file reads in model dump evaluator * feat: remove EDA part from evaluation output * docs: update dump_model guidelines and eval prompt to include template * style: reformat multiline dicts and lists in conf and eval files * fix: add DOTALL flag to EDA removal regex
45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
from typing import Literal
|
|
|
|
from pydantic_settings import SettingsConfigDict
|
|
|
|
from rdagent.app.kaggle.conf import KaggleBasePropSetting
|
|
|
|
|
|
class DataScienceBasePropSetting(KaggleBasePropSetting):
|
|
model_config = SettingsConfigDict(env_prefix="DS_", protected_namespaces=())
|
|
|
|
# Main components
|
|
## Scen
|
|
scen: str = "rdagent.scenarios.data_science.scen.KaggleScen"
|
|
"""Scenario class for data mining model"""
|
|
|
|
## Workflow Related
|
|
consecutive_errors: int = 5
|
|
|
|
debug_timeout: int = 600
|
|
"""The timeout limit for running on debugging data"""
|
|
full_timeout: int = 3600
|
|
"""The timeout limit for running on full data"""
|
|
|
|
### specific feature
|
|
|
|
#### enable specification
|
|
spec_enabled: bool = True
|
|
|
|
### proposal related
|
|
proposal_version: str = "v1"
|
|
coder_on_whole_pipeline: bool = False
|
|
max_trace_hist: int = 3
|
|
|
|
coder_max_loop: int = 10
|
|
runner_max_loop: int = 3
|
|
|
|
rule_base_eval: bool = False
|
|
|
|
### model dump
|
|
enable_model_dump: bool = False
|
|
model_dump_check_level: Literal["medium", "high"] = "medium"
|
|
|
|
|
|
DS_RD_SETTING = DataScienceBasePropSetting()
|