-
Notifications
You must be signed in to change notification settings - Fork 0
/
correlation_experiments.py
145 lines (110 loc) · 6.44 KB
/
correlation_experiments.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
from starflow.protocols import Apply, Applies, protocolize
import pythor_protocols as protocols
@protocolize()
def make_various_l1_gabor_models(depends_on='../config/various_l1_gabors.py'):
"""
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def correlation_l1_gabor_polygon(depends_on=('../config/polygon_correlation_tasks.py',
'../config/various_l1_gabors.py',
'../config/polygon_task.py')):
protocols.get_corr_protocol('../config/polygon_correlation_tasks.py',
'../config/various_l1_gabors.py',
'../config/polygon_task.py',
convolve_func_name='numpy', write=True,parallel=True)
@protocolize()
def correlation_l1_gabor_renderman(depends_on=('../config/renderman_correlation_tasks.py',
'../config/various_l1_gabors.py',
'../config/ten_categories_images.py')):
protocols.get_corr_protocol('../config/renderman_correlation_tasks.py',
'../config/various_l1_gabors.py',
'../config/ten_categories_images.py',
convolve_func_name='numpy', write=True,parallel=True)
@protocolize()
def make_ht_l1_gabor_models_for_corr(depends_on='../config/ht_l1_gabor_models_for_corr.py'):
"""
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def correlation_ht_l1_gabor_renderman(depends_on=('../config/renderman_correlation_tasks2.py',
'../config/ht_l1_gabor_models_for_corr.py',
'../config/ten_categories_images.py')):
protocols.get_corr_protocol('../config/renderman_correlation_tasks2.py',
'../config/ht_l1_gabor_models_for_corr.py',
'../config/ten_categories_images.py',
convolve_func_name='numpy', write=True,parallel=True)
@protocolize()
def make_ht_l2_gabor_corr_subset_models(depends_on='../config/ht_l2_gabor_corr_subset_models.py'):
"""
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def ext_eval_ht_l2_gabor_corr_subset_renderman(depends_on=('../config/renderman_tasks_for_ht2.py',
'../config/ht_l2_gabor_corr_subset_models.py',
'../config/ten_categories_images.py')):
"""
basically a failure e.g. no better than random (if anything, slightly worse)
overall: 43.60, 29.20, 36.33, 38.00, 2.65
256 filters: 42.80, 29.20, 35.86, 37.73, 2.72
384: 43.60, 31.20, 36.79, 38.27, 2.50
"""
protocols.extract_and_evaluate_protocol('../config/renderman_tasks_for_ht2.py',
'../config/ht_l2_gabor_corr_subset_models.py',
'../config/ten_categories_images.py',
convolve_func_name='numpy', write=True,parallel=True)
#############
@protocolize()
def make_corr_test_3_model(depends_on='../config/l1_gabor_corr_test_model3.py'):
"""
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def correlation_test_3_model(depends_on=('../config/renderman_correlation_tasks2.py',
'../config/l1_gabor_corr_test_model3.py',
'../config/ten_categories_images.py')):
protocols.get_corr_protocol('../config/renderman_correlation_tasks2.py',
'../config/l1_gabor_corr_test_model3.py',
'../config/ten_categories_images.py',
convolve_func_name='numpy', write=True,parallel=True)
@protocolize()
def make_l2_gabor_corr_test_model_3(depends_on='../config/l2_gabor_corr_test_model3.py'):
"""
trying corr again with different underlying l1 gabor model
with order = 2
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def ext_eval_l2_gabor_corr_test_3_renderman(depends_on=('../config/renderman_tasks_for_ht2.py',
'../config/l2_gabor_corr_test_model3.py',
'../config/ten_categories_images.py')):
"""
result is not different/better than with order 1 ....
"""
protocols.extract_and_evaluate_protocol('../config/renderman_tasks_for_ht2.py',
'../config/l2_gabor_corr_test_model3.py',
'../config/ten_categories_images.py',
convolve_func_name='numpy', write=True,parallel=True)
#############
@protocolize()
def correlation_ht_l1_gabor_polygon(depends_on=('../config/polygon_correlation_tasks2.py',
'../config/ht_l1_gabor_models_for_corr.py',
'../config/polygon_task.py')):
protocols.get_corr_protocol('../config/polygon_correlation_tasks2.py',
'../config/ht_l1_gabor_models_for_corr.py',
'../config/polygon_task.py',)
@protocolize()
def make_ht_l2_gabor_corr_subset_polygon_models(depends_on='../config/ht_l2_gabor_corr_subset_polygon_models.py'):
"""
"""
protocols.model_protocol(depends_on,parallel=False,write=True)
@protocolize()
def ext_eval_ht_l2_gabor_corr_subset_polygon(depends_on=('../config/parallel_polygon_tasks_for_ht.py',
'../config/ht_l2_gabor_corr_subset_polygon_models.py',
'../config/polygon_task.py')):
"""
"""
protocols.extract_and_evaluate_protocol('../config/parallel_polygon_tasks_for_ht.py',
'../config/ht_l2_gabor_corr_subset_polygon_models.py',
'../config/polygon_task.py',
convolve_func_name='numpy', write=True,parallel=True)