-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenotypes.py
46 lines (40 loc) · 1.22 KB
/
genotypes.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
39
40
41
42
43
44
45
46
from collections import namedtuple
Genotype = namedtuple('Genotype', 'recurrent concat')
PRIMITIVES = [
'none',
'tanh',
'relu',
'sigmoid',
'identity'
]
STEPS = 8
CONCAT = 8
ENAS = Genotype(
recurrent=[
('tanh', 0),
('tanh', 1),
('relu', 1),
('tanh', 3),
('tanh', 3),
('relu', 3),
('relu', 4),
('relu', 7),
('relu', 8),
('relu', 8),
('relu', 8),
],
concat=[2, 5, 6, 9, 10, 11]
)
DARTS_V1 = Genotype(
recurrent=[('relu', 0), ('relu', 1), ('tanh', 2), ('relu', 3), ('relu', 4), ('identity', 1), ('relu', 5),
('relu', 1)], concat=range(1, 9))
DARTS_V2 = Genotype(
recurrent=[('sigmoid', 0), ('relu', 1), ('relu', 1), ('identity', 1), ('tanh', 2), ('sigmoid', 5), ('tanh', 3),
('relu', 5)], concat=range(1, 9))
DARTS = DARTS_V2
DARTS_A1 = Genotype(
recurrent=[('relu', 0), ('sigmoid', 0), ('relu', 2), ('relu', 3), ('relu', 4), ('identity', 3), ('relu', 3),
('relu', 3)], concat=range(1, 9))
DARTS_A2 = Genotype(
recurrent=[('relu', 0), ('sigmoid', 0), ('relu', 2), ('relu', 3), ('relu', 4), ('identity', 3), ('relu', 3),
('relu', 3)], concat=range(1, 9))