- Refactor Server State: Replace global variables with thread-safe
ModelManagersingleton. - Thread Safety: Implement
std::mutexlocking for all model access and scenario updates. - Lazy Initialization: Models and scenarios are created on-demand to save resources.
- Numeric Precision Unification: Migrate codebase to consistent precision (template-based or unified
float32). CurrentlyNetworkusesdoublewhile SIMD operations usefloat. - Autograd System: Replace manual backpropagation logic with a proper
Tensorclass supporting automatic differentiation (similar to PyTorch).
- Probabilistic Forecasting:
ForecastScenariogenerates P10/P90 quantile bands.- Visualization of uncertainty intervals in
script.js.
- Attention Visualization:
AttentionScenarioimplements time-series attention mechanism.- Interactive heatmap and query-key connection visualization.
- Physics-Informed Neural Networks (PINN):
- Enhance
HeatEquationScenarioto toggle between "pure NN" and "physics-informed" modes. - Visualize stability differences in real-time.
- Enhance
- Interactive Bayesian Regression:
- Upgrade
BayesianScenarioto allow dragging training points. - Visualize predictive variance reacting to data density in real-time.
- Upgrade
- Spatiotemporal Graph Modeling:
- Implement a grid/network map scenario (e.g., energy grid).
- Animate demand shocks propagating through the graph.
- Conditional Generative Models:
- Enhance
GenerativeScenarioto support conditional generation (e.g., demand curves conditioned on temperature).
- Enhance
- Reinforcement Learning (Energy Trading):
- Create a battery arbitrage environment (charge/discharge/hold based on price).
- Visualize policy evolution and cumulative reward.
- Documentation:
Architecture.md: High-level system design.API.md: HTTP endpoint documentation (/run,/train,/scenario/*).
- Frontend Modernization:
- Refactor
script.jsinto ES6 modules (API layer, Charting layer, UI logic). - Consider moving to a lightweight framework (React/Vue) if complexity grows.
- Refactor
- Hyperparameter Tuning UI:
- Add controls for Learning Rate, Batch Size, and Optimizer selection in the web interface.
- CI/CD & Deployment:
- Add
Dockerfilefor containerized deployment. - Set up GitHub Actions for automated testing and build verification.
- Add
- Rolling-Origin Evaluation: Add backtesting capability to the forecasting playground.
- Model Export/Import: Allow saving trained weights to JSON/binary and loading them back.
- WebAssembly (WASM) Port: Compile the C++ core to WASM to run inference entirely in the browser (client-side).