-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
89 lines (75 loc) · 2.16 KB
/
models.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import network
def get_all():
models = []
models.append({
'name': 'No context NN - 1 hidden.',
'network': network.fc,
'feature_set': 'nocontext',
'options': {'n_layers': 1},
})
models.append({
'name': 'With peers NN - 2 hidden.',
'network': network.fc,
'feature_set': 'withpeers',
'options': {'n_layers': 2},
})
models.append({
'name': 'All features NN - 2 hidden.',
'network': network.fc,
'feature_set': 'all',
'options': {'n_layers': 2},
})
models.append({
'name': 'Activity features trained with context.',
'network': network.inctx,
'feature_set': 'all',
'options': {'reg': False},
})
models.append({
'name': 'Activity features trained with context + original ' +
'activity features.',
'network': network.inctx_extra,
'feature_set': 'all',
'options': {'reg': False},
})
models.append({
'name': 'Separate no-context / 1 context inputs.',
'network': network.simple_separate,
'feature_set': 'all',
'options': {
'reg': True,
'n_ctx_units': 1,
'context_includes_peers': True,
},
})
models.append({
'name': 'Separate no-context / all context inputs.',
'network': network.simple_separate,
'feature_set': 'all',
'options': {
'reg': True,
'context_includes_peers': True,
},
})
models.append({
'name': 'Separate activity & peers / course inputs.',
'network': network.simple_separate,
'feature_set': 'all',
'options': {
'reg': True,
'n_ctx_units': 1,
'context_includes_peers': False,
},
})
models.append({
'name': 'Separate activity / course / peers.',
'network': network.complex_separate,
'feature_set': 'all',
})
#models.append({
#'name': 'Combinations of features in pairs.',
#'network': network.comb,
#'feature_set': 'all',
#'options': {'reg': False},
#})
return models