mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
refactor: move strategy_orchestrator and optuna_optimizer to closed-source (local/)
This commit is contained in:
+1
-1
@@ -140,4 +140,4 @@ pickle_cache/
|
||||
RD-Agent_workspace_run*/
|
||||
AGENTS.md
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
.claude/rdagent/components/coder/strategy_orchestrator.py
|
||||
|
||||
+1
-1
@@ -681,7 +681,7 @@ def generate_strategies_cli(
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
|
||||
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
|
||||
|
||||
all_results = []
|
||||
best_strategy = None
|
||||
|
||||
@@ -293,7 +293,7 @@ class QuantRDLoop(RDLoop):
|
||||
from pathlib import Path
|
||||
|
||||
import yaml
|
||||
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
|
||||
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
|
||||
|
||||
# Load improved prompt
|
||||
project_root = Path(__file__).parent.parent.parent.parent
|
||||
|
||||
@@ -3,8 +3,8 @@ Unified, verifiable backtesting engine.
|
||||
|
||||
Single entry point (`backtest_signal`) used by:
|
||||
- scripts/predix_gen_strategies_real_bt.py
|
||||
- rdagent/components/coder/strategy_orchestrator.py
|
||||
- rdagent/components/coder/optuna_optimizer.py
|
||||
- rdagent/scenarios/qlib/local/strategy_orchestrator.py
|
||||
- rdagent/scenarios/qlib/local/optuna_optimizer.py
|
||||
- rdagent/components/backtesting/backtest_engine.py
|
||||
|
||||
Design goals
|
||||
|
||||
@@ -45,7 +45,7 @@ class TestStrategyOrchestratorSyntax:
|
||||
|
||||
def test_module_imports(self):
|
||||
"""Verify StrategyOrchestrator can be imported after syntax fix."""
|
||||
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
|
||||
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
|
||||
assert StrategyOrchestrator is not None
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ class TestRebacktestBareExcept:
|
||||
class TestAllImportsDontCrash:
|
||||
def test_strategy_orchestrator_imports(self):
|
||||
"""Verify all fixed modules import without errors."""
|
||||
import rdagent.components.coder.strategy_orchestrator # noqa: F401
|
||||
# moved to local/ # noqa: F401
|
||||
|
||||
def test_factor_runner_imports(self):
|
||||
import rdagent.scenarios.qlib.developer.factor_runner # noqa: F401
|
||||
@@ -278,4 +278,4 @@ class TestAllImportsDontCrash:
|
||||
import rdagent.scenarios.qlib.developer.model_runner # noqa: F401
|
||||
|
||||
def test_optuna_optimizer_imports(self):
|
||||
import rdagent.components.coder.optuna_optimizer # noqa: F401
|
||||
# moved to local/ # noqa: F401
|
||||
|
||||
Reference in New Issue
Block a user