Spaces:
Sleeping
Sleeping
File size: 563 Bytes
f907cd1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from dataclasses import dataclass
from pathlib import Path
@dataclass
class AberConfig:
seq_len: int = 40
batch_size: int = 24
embed_dim: int = 96
hidden_dim: int = 160
num_layers: int = 2
dropout: float = 0.15
learning_rate: float = 2.5e-3
bootstrap_steps: int = 90
cpu_threads: int = 4
seed: int = 42
@property
def root_dir(self) -> Path:
return Path(__file__).resolve().parents[1]
@property
def checkpoint_path(self) -> Path:
return self.root_dir / "artifacts" / "aber_checkpoint.pt"
|