[735bb5]: / src / ml_models / bilstm / config.py

Download this file

35 lines (28 with data), 676 Bytes

 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
26
27
28
29
30
31
32
33
34
# Base Dependencies
# -----------------
from dataclasses import dataclass
# Configuration Classes
# ---------------------
@dataclass
class LSTMConfig:
hidden_size: int = 128
emb_size: int = 256 # input size
num_layers: int = 2
dropout: float = 0.25
emb_droput: float = 0.25
bidirectional: bool = True
bias: bool = True
batch_first: bool = True
@dataclass
class RDEmbeddingConfig:
input_dim: int = 5
embedding_dim: int = 5
scale: bool = False
freeze: bool = False
@dataclass
class EmbeddingConfig:
embedding_dim: int = 5
vocab_size: int = 2
padding_idx: int = 0
freeze: bool = True
emb_path: str = ""