This repository is the official implementation of the RFN, from Recurrent Flow Networks: A Latent Variable Model for Spatio-Temporal Density Modelling.
Full paper is available here
Real Data | Samples from model |
![]() |
![]() |
This repository contains:
model.py
: RFN model codeutil.py
: utility coderfn_saved
,transforms_saved
,bns_saved
: pre-trained version of the modules characterizing the RFN/data
: folder containing data used for the NYC-P experiment
A working Jupyter Notebook is provided in rfn_nyp.ipynb
, showing a basic usage of the proposed RFN for the NYC-P task (more details in Section 3 of the paper).
The notebook contains:
- Loading and processing of data
- Building RFN object
- Training/Loading pre-trained model code
- Evaluation code
- Basic visualizations