TIME-leaderboard / README.md
zqiao11's picture
Initial release
0b97f6a
---
title: TIME Benchmark Leaderboard
emoji: ๐Ÿฅ‡
colorFrom: green
colorTo: indigo
sdk: docker
pinned: true
license: apache-2.0
short_description: 'TIME: A Benchmark for Time Series Forecasting'
---
# TIME Benchmark Leaderboard
A unified benchmark for time series probabilistic forecasting with multiple granularity evaluation.
## Features
- **Overall Performance**: Aggregated metrics across all datasets and horizons
- **Dataset-level Analysis**: Performance breakdown by individual datasets
- **Window-level Visualization**: Detailed test window analysis with prediction visualization
## Configuration
### Environment Variables
The app reads data from HuggingFace Hub. Configure the following environment variables:
| Variable | Description | Default |
|----------|-------------|---------|
| `HF_TOKEN` | HuggingFace API token (required for private datasets) | None |
| `HF_REPO_ID` | Dataset repository ID | `TIME-benchmark/TIME-1.0` |
| `USE_HF_HUB` | Use HF Hub (`true`) or local files (`false`) | `true` |
| `HF_CACHE_DIR` | Custom cache directory for downloads | `~/.cache/huggingface` |
### For HuggingFace Space Deployment
#### ๅฟซ้€Ÿ้ƒจ็ฝฒ๏ผˆๆŽจ่๏ผ‰
```bash
# 1. ๅคๅˆถ timebench ๆจกๅ—ๅˆฐ leaderboard_app
cd /home/eee/qzz/TIME
cp -r src/timebench leaderboard_app/
# 2. ่ฟ›ๅ…ฅ leaderboard_app ็›ฎๅฝ•
cd leaderboard_app
# 3. ่ฟ่กŒ้ƒจ็ฝฒ่„šๆœฌ
chmod +x deploy.sh
./deploy.sh YOUR_USERNAME YOUR_SPACE_NAME
```
#### ๆ‰‹ๅŠจ้ƒจ็ฝฒ
่ฏฆ็ป†ๆญฅ้ชค่ฏทๅ‚่€ƒ [DEPLOY.md](DEPLOY.md)
**้‡่ฆ**: ้ƒจ็ฝฒๅ‰้œ€่ฆ๏ผš
1. ๅˆ›ๅปบ HuggingFace Space: https://huggingface.co/new-space
2. ๅœจ Space Settings โ†’ Repository secrets ไธญๆทปๅŠ  `HF_TOKEN`
3. ็กฎไฟๆ•ฐๆฎๅทฒไธŠไผ ๅˆฐ `TIME-benchmark/TIME-1.0` Dataset
### For Local Development
Set `USE_HF_HUB=false` to use local data:
```bash
export USE_HF_HUB=false
python app.py
```
## Installation
```bash
pip install -r requirements.txt
python app.py
```
## Data Structure
The app expects the following data structure in the HuggingFace Dataset:
```
HF_REPO/
โ”œโ”€โ”€ data/
โ”‚ โ””โ”€โ”€ hf_dataset/ # Time series datasets
โ”‚ โ”œโ”€โ”€ ECDC_COVID/
โ”‚ โ”œโ”€โ”€ Australia_Solar/
โ”‚ โ””โ”€โ”€ ...
โ”œโ”€โ”€ output/
โ”‚ โ””โ”€โ”€ results/ # Model evaluation results
โ”‚ โ”œโ”€โ”€ moirai_small/
โ”‚ โ”œโ”€โ”€ chronos_base/
โ”‚ โ””โ”€โ”€ ...
โ””โ”€โ”€ config/
โ””โ”€โ”€ datasets.yaml # Dataset configurations
```
## Ethical Considerations
This release is for research purposes only in support of an academic paper. Our models, datasets, and code are not specifically designed or evaluated for all downstream purposes. We strongly recommend users evaluate and address potential concerns related to accuracy, safety, and fairness before deploying this model.