File size: 926 Bytes
031a2d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from __future__ import annotations

import logging
from pathlib import Path

from services.scenario_engine import ScenarioEngine, configure_logging


def main() -> None:
    configure_logging(logging.INFO)

    backend_dir = Path(__file__).resolve().parent
    input_path = backend_dir / "data" / "features" / "features_monthly_full_history.csv"
    output_dir = backend_dir / "data" / "scenarios"

    engine = ScenarioEngine(
        input_path=input_path,
        output_dir=output_dir,
    )

    scenario_dataset, scenario_summary = engine.run()

    print("\n✅ Phase 4 completed successfully.")
    print(f"Scenario dataset shape: {scenario_dataset.shape}")
    print(f"Scenario summary shape: {scenario_summary.shape}")
    print(f"Scenario dataset saved to: {output_dir / 'scenario_dataset.csv'}")
    print(f"Scenario summary saved to: {output_dir / 'scenario_summary.csv'}")


if __name__ == "__main__":
    main()