Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file modified .coverage
Binary file not shown.
65 changes: 65 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
# macOS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini

# IDE files
.vscode/
.idea/
*.swp
*.swo

# Temporary files
*.tmp
*.temp
*~

# Logs
*.log
__pycache__/
.ipynb_checkpoints/
.pytest_cache/
Expand All @@ -13,3 +39,42 @@ runs/
checkpoints/
tutorials/saved_models/

venv/
venv/
cap/venv
.DS_Store
.vscode/

saved_models/*.pth# ignore locally built venv
venv/
# ignore raw data dumps
dataset/electricity/*.csv
dataset/traffic/*.csv

# ignore local venv
venv/

# ignore raw data dumps
dataset/electricity/*.csv
dataset/traffic/*.csv

# local Python env
venv/

# raw data (too big for GitHub)
dataset/electricity/*.csv
dataset/traffic/*.csv

# local Python env
venv/

# raw data (too big)
dataset/electricity/*.csv
dataset/traffic/*.csv

# local Python env
venv/

# raw data (too big)
dataset/electricity/*.csv
dataset/traffic/*.csv
Empty file added WARNING:
Empty file.
Binary file added cap/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion cap/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main():

# Get model dimensions from data
sample_batch = next(iter(train_loader))
if args.model in ['lstm', 'transformer']:
if args.model in ['lstm', 'transformer', 'timesnet']:
input_dim = sample_batch[0].shape[-1]
output_dim = sample_batch[1].shape[-1]
seq_len = sample_batch[0].shape[1]
Expand Down
21 changes: 21 additions & 0 deletions cap/configs/autoformer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dataset:
path: "dataset/ETT-small/ETTm2.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "autoformer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 30
learning_rate: 0.0001
patience: 5
device: "cuda"
21 changes: 21 additions & 0 deletions cap/configs/autoformer_copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dataset:
path: "dataset/exchange_rate/exchange_rate.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "autoformer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 30
learning_rate: 0.0001
patience: 5
device: "cuda"
63 changes: 0 additions & 63 deletions cap/configs/config_catp.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions cap/configs/fedformer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dataset:
path: "dataset/ETT-small/ETTm1.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "fedformer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 30
learning_rate: 0.0001
patience: 5
device: "cuda"
21 changes: 21 additions & 0 deletions cap/configs/informer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dataset:
path: "dataset/ETT-small/ETTm2.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "informer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 30
learning_rate: 0.0001
patience: 5
device: "cuda"
21 changes: 21 additions & 0 deletions cap/configs/informer_copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dataset:
path: "dataset/exchange_rate/exchange_rate.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "informer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 30
learning_rate: 0.0001
patience: 5
device: "cuda"
7 changes: 5 additions & 2 deletions cap/configs/config_bird1.yaml → cap/configs/lstm.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
dataset:
path: "/home/yeqchen/cap/CAP/dataset/BirdMigration/bird_2.txt"
path: "dataset/ETT-small/ETTm1.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "lstm"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 50
epochs: 30
learning_rate: 0.5
patience: 5
device: "cuda"
11 changes: 7 additions & 4 deletions cap/configs/config_et.yaml → cap/configs/timesnet.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
dataset:
path: "cap/dataset/ElectricityTransformer/et_data.txt"
path: "dataset/ETT-small/ETTm1.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "lstm"
type: "timesnet"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 50
learning_rate: 0.001
epochs: 30
learning_rate: 0.1
patience: 5
device: "cuda"
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
dataset:
path: "/home/yeqchen/cap/CAP/dataset/BirdMigration/bird_2.txt"
path: "dataset/ETT-small/ETTm1.csv"
batch_size: 32
train_size: 0.8
valid_size: 0.1
test_size: 0.1
normalization: true

model:
type: "transformer"
hidden_dim: 128
seq_len: 96
pred_len: 96
num_layers: 2
dropout: 0.1

training:
epochs: 50
epochs: 30
learning_rate: 0.5
patience: 5
device: "cuda"
18 changes: 0 additions & 18 deletions cap/configs/transformer/config_bird.yaml

This file was deleted.

Loading
Loading