2024-07-24 16:56:27 +08:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
2024-08-09 13:27:33 +08:00
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
from rdagent.components.workflow.conf import BasePropSetting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PropSetting(BasePropSetting):
|
|
|
|
|
class Config:
|
2024-08-09 13:27:33 +08:00
|
|
|
env_prefix = "DM_"
|
|
|
|
|
"""Use `DM_` as prefix for environment variables"""
|
|
|
|
|
protected_namespaces = ()
|
|
|
|
|
"""Add 'model_' to the 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"""
|
|
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
summarizer: str = "rdagent.scenarios.data_mining.developer.feedback.DMModelHypothesisExperiment2Feedback"
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
PROP_SETTING = PropSetting()
|