khushbookk
/
Deploying-an-end-to-end-keyword-spotting-model-into-cloud-server-by-integrating-CI-CD-pipeline
Public
forked from Jithsaavvy/Deploying-an-end-to-end-keyword-spotting-model-into-cloud-server-by-integrating-CI-CD-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configType.py
38 lines (32 loc) · 648 Bytes
/
configType.py
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
35
36
37
38
"""
@author: Jithin Sasikumar
File to define type hints for all configurations in Hydra.
It is an optional file.
"""
from dataclasses import dataclass
@dataclass
class Paths:
train_dir: str
test_dir: str
mlflow_tracking_uri: str
model_artifactory_dir: str
audio_dir: str
@dataclass
class Params:
epochs: int
learning_rate: float
test_data_split_percent: float
mfcc_length: int
sampling_rate: int
n_mfcc: int
batch_size: int
@dataclass
class Names:
experiment_name: str
audio_file: str
metric_name: str
@dataclass
class KWSConfig:
paths: Paths
params: Params
names: Names