Official repository for XCTFormer: Cross-Variate-Temporal Transformer with Learnable Causality Masks for Multivariate Time Series Forecasting.
conda create -n xctformer python=3.9.21
conda activate xctformer
pip install -r requirements.txtDownload datasets and place them in the datasets/ directory.
python generate_synthetic_data.pyOutput: datasets/Synthetic/synthetic.csv
# Long-term forecasting
bash scripts/long_term_forecast/XCTFormer_ETTm1.sh
# Imputation
bash scripts/imputation/XCTFormer_ETTm1.sh
# Anomaly detection
bash scripts/anomaly_detection/XCTFormer_PSM.sh