2024-07-24 16:56:27 +08:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
2025-03-05 18:30:02 +08:00
|
|
|
from pydantic_settings import SettingsConfigDict
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
from rdagent.components.workflow.conf import BasePropSetting
|
|
|
|
|
|
|
|
|
|
|
2024-09-12 00:30:16 +08:00
|
|
|
class MedBasePropSetting(BasePropSetting):
|
2025-03-05 18:30:02 +08:00
|
|
|
model_config = SettingsConfigDict(env_prefix="DM_", protected_namespaces=())
|
2024-07-24 16:56:27 +08:00
|
|
|
|
|
|
|
|
# 1) overriding the default
|
|
|
|
|
scen: str = "rdagent.scenarios.data_mining.experiment.model_experiment.DMModelScenario"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Scenario class for data mining model"""
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
hypothesis_gen: str = "rdagent.scenarios.data_mining.proposal.model_proposal.DMModelHypothesisGen"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Hypothesis generation class"""
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
hypothesis2experiment: str = "rdagent.scenarios.data_mining.proposal.model_proposal.DMModelHypothesis2Experiment"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Hypothesis to experiment class"""
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
coder: str = "rdagent.scenarios.data_mining.developer.model_coder.DMModelCoSTEER"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Coder class"""
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
runner: str = "rdagent.scenarios.data_mining.developer.model_runner.DMModelRunner"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Runner class"""
|
|
|
|
|
|
2025-01-17 22:53:05 +08:00
|
|
|
summarizer: str = "rdagent.scenarios.data_mining.developer.feedback.DMModelExperiment2Feedback"
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Summarizer class"""
|
|
|
|
|
|
|
|
|
|
evolving_n: int = 10
|
|
|
|
|
"""Number of evolutions"""
|
2024-07-24 16:56:27 +08:00
|
|
|
|
|
|
|
|
evolving_n: int = 10
|
|
|
|
|
|
2024-07-26 12:12:16 +08:00
|
|
|
# 2) Extra config for the scenario
|
2024-07-24 16:56:27 +08:00
|
|
|
# physionet account
|
|
|
|
|
# NOTE: You should apply the account in https://physionet.org/
|
2024-07-26 12:12:16 +08:00
|
|
|
username: str = ""
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Physionet account username"""
|
|
|
|
|
|
2024-07-26 12:12:16 +08:00
|
|
|
password: str = ""
|
2024-08-09 13:27:33 +08:00
|
|
|
"""Physionet account password"""
|
2024-07-24 16:56:27 +08:00
|
|
|
|
|
|
|
|
|
2024-09-12 00:30:16 +08:00
|
|
|
MED_PROP_SETTING = MedBasePropSetting()
|