Files
NexQuant/rdagent/app/data_mining/conf.py
T

50 lines
1.5 KiB
Python
Raw Normal View History

2024-07-24 16:56:27 +08:00
from pathlib import Path
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:
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"
"""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"
"""Hypothesis generation class"""
2024-07-24 16:56:27 +08:00
hypothesis2experiment: str = "rdagent.scenarios.data_mining.proposal.model_proposal.DMModelHypothesis2Experiment"
"""Hypothesis to experiment class"""
2024-07-24 16:56:27 +08:00
coder: str = "rdagent.scenarios.data_mining.developer.model_coder.DMModelCoSTEER"
"""Coder class"""
2024-07-24 16:56:27 +08:00
runner: str = "rdagent.scenarios.data_mining.developer.model_runner.DMModelRunner"
"""Runner class"""
2024-07-24 16:56:27 +08:00
summarizer: str = "rdagent.scenarios.data_mining.developer.feedback.DMModelHypothesisExperiment2Feedback"
"""Summarizer class"""
evolving_n: int = 10
"""Number of evolutions"""
2024-07-24 16:56:27 +08:00
evolving_n: int = 10
# 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/
username: str = ""
"""Physionet account username"""
password: str = ""
"""Physionet account password"""
2024-07-24 16:56:27 +08:00
PROP_SETTING = PropSetting()