How lixixibj/deeptvar-data-code works
DeepTVAR is a research implementation for estimating and forecasting time-varying VAR models, with an LSTM generating coefficients and a causality-preserving transformation. Its principal workflows are simulation fitting and real-data forecasting, with benchmark implementations for comparison. The graph also preserves documented plotting, accuracy evaluation, and benchmark branches. Some source is unsampled, so only documented or indexed relationships are linked; benchmark internals beyond the excerpts are represented at their existing directory paths.
Main entry points: _main_for_para_estimation.py Simulation Fitting · _main_make_predictions_for_real_data.py Real Forecasting · _model_fitting_for_real_data.py Model Fitting · DeepAR_EU_3_prices.py DeepAR Benchmark
Components 16
DeepTVAR Core
- LSTM Parameter Model
lstm_network.py - VAR Likelihood
custom_loss_float.py - Seed Control
seed.py - Forecast Metrics
forecasting_accuracy.py
Simulation Study
- Simulation Fitting
_main_for_para_estimation.py - Simulation Outputs
simulation-res/res - Simulation Summaries
quick_plot_simu_res.py
Real Data Forecasting
- Real Forecasting
_main_make_predictions_for_real_data.py - Model Fitting
_model_fitting_for_real_data.py - Real Forecast Outputs
real-data-forecasting-res
Benchmark Models
- DeepAR Benchmark
benchmarks-code-data/DeepAR/DeepAR_EU_3_prices.py - DeepState Benchmark
benchmarks-code-data/DeepState/DeepState_EU_3_prices.py - QBLL Benchmark
benchmarks-code-data/QBLL - VAR Benchmark
benchmarks-code-data/VAR - Benchmark Forecasts
benchmarks-code-data
Other components
- Researcher
Connections 22
- Researcher → Simulation Fitting: runs fitting
README.md - Researcher → Real Forecasting: runs forecasts
README.md - Simulation Fitting → LSTM Parameter Model: generates parameters
_main_for_para_estimation.py - Simulation Fitting → VAR Likelihood: computes likelihood
_main_for_para_estimation.py - Simulation Fitting → Seed Control: sets randomness
_main_for_para_estimation.py - Simulation Fitting → Simulation Outputs: saves estimates
README.md - Simulation Summaries → Simulation Outputs: reads runs
README.md - Researcher → Simulation Summaries: plots summaries
README.md - Real Forecasting → Model Fitting: fits model
_main_make_predictions_for_real_data.py - Model Fitting → LSTM Parameter Model: constructs network
_model_fitting_for_real_data.py - Model Fitting → VAR Likelihood: trains against
_model_fitting_for_real_data.py - Model Fitting → Seed Control: sets randomness
_model_fitting_for_real_data.py - Real Forecasting → Forecast Metrics: calculates metrics
_main_make_predictions_for_real_data.py - Real Forecasting → Real Forecast Outputs: saves forecasts
README.md - Researcher → DeepAR Benchmark: runs benchmark
README.md - Researcher → DeepState Benchmark: runs benchmark
README.md - DeepAR Benchmark → Forecast Metrics: imports metrics
benchmarks-code-data/DeepAR/DeepAR_EU_3_prices.py - DeepState Benchmark → Forecast Metrics: imports metrics
benchmarks-code-data/DeepState/DeepState_EU_3_prices.py - DeepAR Benchmark → Benchmark Forecasts: writes forecasts
benchmarks-code-data/DeepAR/DeepAR_EU_3_prices.py - DeepState Benchmark → Benchmark Forecasts: writes forecasts
benchmarks-code-data/DeepState/DeepState_EU_3_prices.py - Researcher → QBLL Benchmark: uses benchmark
README.md - Researcher → VAR Benchmark: uses benchmark
README.md