How winfredge/eventtsf works
EventTSF is a research framework for probabilistic, event-aware forecasting of non-stationary time series. The user selects a dataset and experiment configuration, then main.py starts training and testing through the sequence experiment, which sets up the data module and forecasting algorithm. The algorithm generates autoregressive predictions using a flow-matching model and a DiT-family network, and validation/test results are evaluated and visualized. The README also describes event-synchronized multimodal representations and event-aware timestep scheduling. Those capabilities are documented, but their exact internal components and wiring are not fully established by the sampled source.
Main entry points: sequence_prediction_experiment.py Sequence experiment · main.py CLI entry · non_stationary_prediction_algorithm.py Forecast algorithm · flow_matching_transition.py Flow matching
Components 17
Experiment control
- CLI entry
main.py - Hydra configs
configs - Sequence experiment
experiments/sequence_prediction_experiment.py - Experiment base
experiments/base_experiment.py - Progress display
myutils/progress_bar.py
Data and events
- Dataset module
data/textandts_custom_datamodule.py - Event-synchronized data
data/textandts_custom_datamodule.py
Forecasting model
- Forecast algorithm
algorithms/non_stationary_prediction_algorithm.py - Flow matching
models/flow_matching_transition.py - DiT / U-DiT
models/timedit.py - Event-aware scheduler
models/flow_matching_transition.py
Evaluation and logging
- Probabilistic metrics
metrics - CRPS calculator
metrics/CRPS.py - Forecast plots
myutils/log_plots.py - WandB logging
myutils/logger.py
Other components
- Experiment user
- Weights & Biases
Connections 18
- Experiment user → CLI entry: runs
README.md - CLI entry → Hydra configs: loads
main.py - CLI entry → Sequence experiment: starts
main.py - CLI entry → WandB logging: finishes logging
main.py - Sequence experiment → Experiment base: extends
experiments/sequence_prediction_experiment.py - Sequence experiment → Dataset module: sets up
experiments/sequence_prediction_experiment.py - Sequence experiment → Forecast algorithm: builds
experiments/sequence_prediction_experiment.py - Sequence experiment → WandB logging: initializes
experiments/sequence_prediction_experiment.py - Sequence experiment → Progress display: configures
experiments/sequence_prediction_experiment.py - Dataset module → Event-synchronized data: loads event data
data/textandts_custom_datamodule.py - Forecast algorithm → Flow matching: creates and samples
algorithms/non_stationary_prediction_algorithm.py - Flow matching → DiT / U-DiT: selects network
models/flow_matching_transition.py - Flow matching → Event-aware scheduler: adapts timesteps
models/flow_matching_transition.py - Forecast algorithm → Probabilistic metrics: evaluates predictions
algorithms/non_stationary_prediction_algorithm.py - Probabilistic metrics → CRPS calculator: uses calculator
metrics/myCRPS.py - Forecast algorithm → Forecast plots: renders forecasts
algorithms/non_stationary_prediction_algorithm.py - Sequence experiment → Weights & Biases: logs runs
README.md - WandB logging → Weights & Biases: initializes
myutils/logger.py