# SPMformer Code

## 1. Software Environment

1. python: 3.7.12

2. torch: 2.0.1

3. other package:
   ```
   pip install -r requirements.txt
   ```
## 2. Reproduce scores

you can check scripts for six datasets of long-term forecasting in the script folder. (ETTh1, ETTh2, ETTm1, ETTm2, Weather, Electricity, Traffic)

For example, if you want to run SPMformer on Traffic, $\tau$=336, you can train SPMformer with this command.

```
sh scripts/Traffic/336.sh 
```

