-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnas.py
More file actions
44 lines (34 loc) · 930 Bytes
/
nas.py
File metadata and controls
44 lines (34 loc) · 930 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
35
36
37
38
39
40
41
42
43
44
"""
"""
from typing import Sequence
# from torch_ecg.torch_ecg.utils.nas import NAS
from torch_ecg_bak.torch_ecg.utils.nas import NAS
from trainer import CINC2021Trainer
from dataset import CINC2021
from model import ECG_CRNN_CINC2021
__all__ = ["CINC2021NAS"]
class CINC2021NAS(NAS):
""" """
__name__ = "CINC2021NAS"
def __init__(
self,
train_config: dict,
model_configs: Sequence[dict],
lazy: bool = False,
) -> None:
"""finished, NOT checked,
Parameters
----------
train_config: dict,
train configurations
model_configs: sequence of dict,
model configurations, each with a different network architecture
"""
super().__init__(
CINC2021Trainer,
ECG_CRNN_CINC2021,
CINC2021,
train_config,
model_configs,
lazy,
)