# temporal_fusion_transformer_pytorch **Repository Path**: zongkw/temporal_fusion_transformer_pytorch ## Basic Information - **Project Name**: temporal_fusion_transformer_pytorch - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-06-28 - **Last Updated**: 2023-01-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecasting implemented in Pytorch Authors: Bryan Lim, Sercan Arik, Nicolas Loeff and Tomas Pfister Paper Link: [https://arxiv.org/pdf/1912.09363.pdf](https://arxiv.org/pdf/1912.09363.pdf) # Implementation This repository contains the source code for the Temporal Fusion Transformer reproduced in Pytorch using [Pytorch Lightning](https://github.com/PyTorchLightning/pytorch-lightning) which is used to scale models and write less boilerplate . In the moment, the model is trained with the Electricity dataset from the paper. However, im currently working on the code to allow the use of the other 3 datasets described in the paper and reproduce the results. - **data_formatters**: Stores the main dataset-specific column definitions, along with functions for data transformation and normalization. For compatibility with the TFT, new experiments should implement a unique GenericDataFormatter (see base.py), with examples for the default experiments shown in the other python files. - **data**: Stores the main dataset-specific download procedure, along with the pytorch dataset class ready to use as input to the dataloader and the model. # Training To run the training procedure, open up **training_tft.ipynb** and execute all cells to start training.