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

35 lines
1.7 KiB
Python
Raw Normal View History

2024-07-11 08:49:37 +00:00
from pathlib import Path
2024-07-04 15:56:14 +08:00
2024-07-17 15:00:13 +08:00
from pydantic_settings import BaseSettings
2024-07-04 15:56:14 +08:00
class PropSetting(BaseSettings):
2024-07-17 15:00:13 +08:00
class Config:
env_prefix = "QLIB_" # Use MODEL_CODER_ as prefix for environment variables
protected_namespaces = () # Add 'model_' to the protected namespaces
factor_scen: str = "rdagent.scenarios.qlib.experiment.factor_experiment.QlibFactorScenario"
factor_hypothesis_gen: str = "rdagent.scenarios.qlib.proposal.factor_proposal.QlibFactorHypothesisGen"
factor_hypothesis2experiment: str = (
"rdagent.scenarios.qlib.proposal.factor_proposal.QlibFactorHypothesis2Experiment"
)
2024-07-17 15:00:13 +08:00
factor_coder: str = "rdagent.scenarios.qlib.developer.factor_coder.QlibFactorCoSTEER"
factor_runner: str = "rdagent.scenarios.qlib.developer.factor_runner.QlibFactorRunner"
factor_summarizer: str = "rdagent.scenarios.qlib.developer.feedback.QlibFactorHypothesisExperiment2Feedback"
# TODO: model part is not finished yet
2024-07-17 15:00:13 +08:00
model_scen: str = "rdagent.scenarios.qlib.experiment.model_experiment.QlibModelScenario"
model_hypothesis_gen: str = "rdagent.scenarios.qlib.proposal.model_proposal.QlibModelHypothesisGen"
model_hypothesis2experiment: str = "rdagent.scenarios.qlib.proposal.model_proposal.QlibModelHypothesis2Experiment"
model_coder: str = "rdagent.scenarios.qlib.developer.model_coder.QlibModelCoSTEER"
model_runner: str = "rdagent.scenarios.qlib.developer.model_runner.QlibModelRunner"
model_summarizer: str = "rdagent.scenarios.qlib.developer.feedback.QlibModelHypothesisExperiment2Feedback"
2024-07-04 15:56:14 +08:00
evolving_n: int = 10
2024-07-17 15:00:13 +08:00
2024-07-11 08:49:37 +00:00
py_bin: str = "/usr/bin/python"
2024-07-11 11:24:41 +00:00
local_qlib_folder: Path = Path("/home/rdagent/qlib")
2024-07-17 15:00:13 +08:00
2024-07-04 15:56:14 +08:00
PROP_SETTING = PropSetting()