Skip to content
Snippets Groups Projects
Commit c8c28e2a authored by s183897's avatar s183897 :ice_skate:
Browse files

Added 384 dataset, deactivated prediction indicator to prevent placebo, fixed...

Added 384 dataset, deactivated prediction indicator to prevent placebo, fixed bug in nc prediction only and added better counter for both predictors
parent 4047c609
No related branches found
No related tags found
No related merge requests found
File added
1000000 1000000 1000000
123 113 22
150 43 196
41 106 32
56 133 110
45 96 119
146 58 150
227 134 26
112 143 13
60 141 183
87 26 21
132 66 255
178 97 132
95 107 12
79 169 143
190 5 55
2 8 88
156 65 133
114 35 162
49 20 59
200 124 39
34 65 126
162 75 225
160 120 122
74 85 67
19 29 159
136 83 2
46 51 240
34 166 66
64 150 111
161 10 183
144 100 138
81 152 102
34 70 121
191 42 182
23 32 29
108 127 68
185 142 55
113 17 210
123 154 114
151 39 187
2 147 121
67 117 176
54 83 236
184 43 208
213 87 60
114 113 188
113 43 200
7 34 132
89 152 167
166 138 157
220 118 107
95 109 177
164 36 222
51 1 226
108 18 27
77 164 167
118 22 140
202 115 45
180 40 236
117 50 222
163 57 150
122 17 202
91 113 196
104 100 145
83 93 103
95 131 168
171 76 73
104 48 220
205 50 55
193 75 187
41 90 34
113 6 141
45 74 12
125 157 95
51 83 52
107 128 184
62 18 176
69 66 157
173 30 117
76 114 83
94 153 171
37 109 100
69 139 185
134 136 83
45 61 190
219 11 16
28 110 136
123 16 209
71 125 193
77 94 4
228 44 14
8 30 196
106 116 169
58 57 0
173 21 141
97 79 180
88 87 6
188 52 109
36 125 247
60 66 23
165 63 238
234 7 72
209 78 2
86 77 4
39 55 207
177 4 86
62 135 20
185 43 34
39 37 99
10 109 117
45 18 236
21 85 32
235 31 1
23 88 218
96 30 140
3 8 252
102 133 135
48 4 97
102 104 76
175 10 205
34 102 165
86 149 3
180 134 65
80 78 184
167 64 238
40 42 228
73 120 120
118 24 75
15 81 10
96 7 221
41 124 26
168 102 13
38 20 136
5 68 133
1 110 166
7 40 178
47 86 32
170 51 122
158 79 171
209 27 81
86 98 161
143 100 19
73 118 45
79 113 17
221 12 77
176 66 82
41 15 46
83 25 226
66 62 73
63 97 16
41 131 43
183 85 65
182 74 94
193 59 141
212 123 29
32 101 149
61 54 24
107 48 115
145 72 183
184 40 176
31 20 16
54 46 254
95 83 248
172 53 102
85 84 174
141 22 230
63 122 180
171 32 101
87 129 99
41 78 181
58 80 46
135 93 132
90 131 189
55 65 22
18 16 237
186 165 241
164 134 80
118 238 128
218 162 118
148 150 78
17 183 23
34 160 22
142 134 156
58 189 73
192 18 138
220 140 167
241 125 70
191 142 199
167 239 203
196 171 51
231 113 167
27 219 201
199 190 46
189 100 249
218 148 26
219 54 188
247 51 107
231 5 252
241 162 71
122 109 186
48 249 44
87 105 217
68 219 236
250 165 238
85 154 227
171 232 118
212 41 158
182 135 249
52 191 250
224 94 91
233 243 127
17 237 68
30 189 228
198 119 136
151 208 37
10 141 216
185 213 42
158 225 241
92 206 21
127 240 130
146 187 184
192 207 234
71 232 40
229 186 75
78 191 136
37 165 91
236 62 248
227 73 191
58 130 237
210 175 161
199 174 45
1 174 155
182 250 225
252 92 214
124 202 60
192 19 248
123 233 153
252 180 152
177 244 19
33 198 161
253 83 12
124 232 59
18 231 119
130 221 92
231 158 220
241 65 250
35 246 211
230 41 193
81 253 60
82 253 15
255 186 174
79 241 85
45 112 254
249 123 77
14 220 50
249 2 125
253 199 74
250 239 142
2 145 240
148 190 234
44 161 208
236 249 225
226 167 192
212 204 217
44 255 7
107 162 26
0 191 150
55 224 22
131 130 232
217 217 177
212 111 54
245 217 193
54 174 231
6 190 146
70 245 150
49 192 124
196 110 159
202 172 218
35 218 1
46 187 153
254 9 66
114 189 145
175 143 160
113 149 97
141 154 15
2 157 90
105 135 230
202 132 228
53 194 58
163 195 15
43 175 132
174 155 254
231 14 210
236 98 56
184 187 49
189 65 252
194 130 136
248 30 185
196 160 231
125 181 224
174 211 253
101 165 36
38 208 137
184 195 121
94 251 27
241 248 134
83 186 113
103 239 208
247 181 91
154 147 40
82 148 9
213 186 14
187 114 176
31 221 155
98 192 96
223 109 128
224 150 38
145 186 48
204 164 31
95 237 158
67 191 219
252 141 150
228 200 189
197 219 158
88 228 158
198 255 214
201 248 183
172 188 129
236 54 170
235 91 166
185 166 221
145 130 12
199 40 255
204 117 188
53 233 197
193 175 73
125 246 131
238 145 24
103 171 99
54 226 151
120 235 141
239 230 109
69 213 136
49 210 173
117 147 92
227 204 115
89 168 157
228 95 224
172 141 248
16 212 119
243 105 86
226 225 188
50 235 100
1 190 134
248 65 131
22 240 53
195 252 82
114 234 117
238 111 91
235 52 181
110 205 74
64 236 226
49 185 210
64 213 161
99 215 174
81 192 235
167 105 247
42 222 52
101 177 249
59 245 4
120 189 50
238 76 156
251 69 186
0 225 241
187 217 115
167 255 195
191 171 141
40 239 165
114 249 214
161 251 161
255 186 66
107 187 44
172 150 75
176 218 205
1000000 1000000 1000000
186 165 241
123 113 22
164 134 80
118 238 128
150 43 196
218 162 118
148 150 78
17 183 23
34 160 22
41 106 32
56 133 110
142 134 156
58 189 73
45 96 119
192 18 138
146 58 150
220 140 167
241 125 70
191 142 199
167 239 203
227 134 26
196 171 51
231 113 167
112 143 13
60 141 183
27 219 201
87 26 21
199 190 46
189 100 249
132 66 255
218 148 26
219 54 188
247 51 107
178 97 132
231 5 252
95 107 12
241 162 71
122 109 186
48 249 44
79 169 143
190 5 55
2 8 88
87 105 217
156 65 133
68 219 236
250 165 238
114 35 162
85 154 227
171 232 118
212 41 158
49 20 59
182 135 249
52 191 250
224 94 91
233 243 127
17 237 68
200 124 39
30 189 228
198 119 136
34 65 126
162 75 225
160 120 122
151 208 37
74 85 67
10 141 216
185 213 42
158 225 241
92 206 21
127 240 130
146 187 184
19 29 159
136 83 2
192 207 234
46 51 240
71 232 40
34 166 66
64 150 111
229 186 75
161 10 183
144 100 138
81 152 102
34 70 121
191 42 182
78 191 136
37 165 91
236 62 248
227 73 191
58 130 237
210 175 161
23 32 29
108 127 68
199 174 45
1 174 155
185 142 55
113 17 210
182 250 225
252 92 214
124 202 60
123 154 114
151 39 187
192 19 248
2 147 121
123 233 153
67 117 176
54 83 236
252 180 152
184 43 208
177 244 19
33 198 161
213 87 60
114 113 188
253 83 12
113 43 200
124 232 59
7 34 132
18 231 119
130 221 92
89 152 167
231 158 220
241 65 250
35 246 211
230 41 193
166 138 157
220 118 107
81 253 60
95 109 177
82 253 15
164 36 222
51 1 226
108 18 27
255 186 174
79 241 85
45 112 254
77 164 167
118 22 140
249 123 77
202 115 45
180 40 236
117 50 222
163 57 150
122 17 202
91 113 196
104 100 145
83 93 103
95 131 168
171 76 73
104 48 220
14 220 50
249 2 125
253 199 74
205 50 55
250 239 142
193 75 187
2 145 240
41 90 34
148 190 234
44 161 208
236 249 225
113 6 141
45 74 12
226 167 192
212 204 217
125 157 95
44 255 7
51 83 52
107 162 26
0 191 150
55 224 22
107 128 184
62 18 176
131 130 232
217 217 177
69 66 157
173 30 117
76 114 83
94 153 171
37 109 100
212 111 54
245 217 193
54 174 231
6 190 146
70 245 150
49 192 124
196 110 159
69 139 185
202 172 218
35 218 1
134 136 83
46 187 153
45 61 190
254 9 66
219 11 16
114 189 145
175 143 160
113 149 97
141 154 15
28 110 136
2 157 90
123 16 209
71 125 193
105 135 230
77 94 4
202 132 228
228 44 14
8 30 196
106 116 169
58 57 0
173 21 141
53 194 58
163 195 15
43 175 132
174 155 254
231 14 210
97 79 180
88 87 6
188 52 109
236 98 56
36 125 247
184 187 49
60 66 23
189 65 252
194 130 136
165 63 238
248 30 185
196 160 231
234 7 72
125 181 224
174 211 253
101 165 36
38 208 137
209 78 2
184 195 121
94 251 27
241 248 134
86 77 4
39 55 207
83 186 113
103 239 208
247 181 91
177 4 86
62 135 20
154 147 40
185 43 34
39 37 99
82 148 9
213 186 14
10 109 117
45 18 236
187 114 176
21 85 32
235 31 1
23 88 218
96 30 140
31 221 155
3 8 252
98 192 96
223 109 128
102 133 135
224 150 38
145 186 48
204 164 31
48 4 97
102 104 76
175 10 205
95 237 158
67 191 219
34 102 165
252 141 150
228 200 189
197 219 158
88 228 158
198 255 214
86 149 3
201 248 183
180 134 65
172 188 129
236 54 170
235 91 166
80 78 184
185 166 221
145 130 12
199 40 255
167 64 238
40 42 228
204 117 188
53 233 197
193 175 73
125 246 131
73 120 120
238 145 24
118 24 75
103 171 99
15 81 10
96 7 221
54 226 151
120 235 141
41 124 26
168 102 13
239 230 109
69 213 136
38 20 136
49 210 173
5 68 133
117 147 92
1 110 166
227 204 115
7 40 178
89 168 157
47 86 32
170 51 122
228 95 224
158 79 171
172 141 248
16 212 119
209 27 81
243 105 86
86 98 161
143 100 19
226 225 188
73 118 45
50 235 100
1 190 134
248 65 131
22 240 53
79 113 17
195 252 82
221 12 77
176 66 82
114 234 117
41 15 46
238 111 91
235 52 181
83 25 226
110 205 74
66 62 73
63 97 16
64 236 226
49 185 210
41 131 43
183 85 65
64 213 161
182 74 94
99 215 174
193 59 141
81 192 235
212 123 29
32 101 149
167 105 247
42 222 52
61 54 24
101 177 249
59 245 4
120 189 50
238 76 156
107 48 115
145 72 183
184 40 176
251 69 186
31 20 16
54 46 254
95 83 248
0 225 241
187 217 115
167 255 195
191 171 141
172 53 102
40 239 165
114 249 214
85 84 174
141 22 230
63 122 180
171 32 101
87 129 99
41 78 181
161 251 161
58 80 46
135 93 132
90 131 189
255 186 66
55 65 22
107 187 44
172 150 75
18 16 237
176 218 205
......@@ -60,13 +60,18 @@ def text(msg,color,font,x,y):
display.blit(screen_text, [x, y])
# program loop
number = 0
while True:
# random color
color = np.array([randint(0,255), randint(0,255), randint(0,255)])
number += 1
# color background
display.fill((123, 123, 123))
# display information
text('Total Predictions: '+str(number-2), (255,255,255), smallfont, width / 1.5 - -135 / 2, 210)
# draw color boxes
pygame.draw.rect(display, color, [width / 3 - 200 / 2, 300, 200, 200])
pygame.draw.rect(display, color, [width / 1.5 - 200 / 2, 300, 200, 200])
......@@ -88,10 +93,13 @@ while True:
text(str(color), (255,255,255), smallfont, 5, 230)
text('press tab to show data', (255,255,255), smallfont, width - 275, 10)
# make prediction, display prediction above color box
# make prediction
whitecent = centroid(white)
blackcent = centroid(black)
y = np.reshape(color, (-1, 3))
# deactivated prediction display to prevent placebo effect during experiment
"""
if len(points) > 1:
if scipy.spatial.distance.euclidean(y, whitecent) < scipy.spatial.distance.euclidean(y, blackcent):
display.blit(predPic, (width / 3 - 80 / 2, 200))
......@@ -100,12 +108,12 @@ while True:
else:
display.blit(predPic, (width / 1.5 - 80 / 2, 200))
display.blit(predPic, (width / 3 - 80 / 2, 200))
"""
# update display
pygame.display.update()
text('Correct Predictions: '+str(np.sum(corcnt)-2), (255,255,255), smallfont, width / 1.5 - -135 / 2, 230)
text('Total Predictions: '+str(np.sum(incnt)+np.sum(corcnt)-3), (255,255,255), smallfont, width / 1.5 - -135 / 2, 210)
text('Ratio: '+str((np.sum(corcnt)-2)/(np.sum(incnt)+np.sum(corcnt)-3)), (255,255,255), smallfont, width / 1.5 - -135 / 2, 190)
text('Ratio: '+str((np.sum(corcnt)-2)/(number-2)), (255,255,255), smallfont, width / 1.5 - -135 / 2, 190)
loop = True
while loop:
# check for input to exit
......@@ -138,7 +146,7 @@ while True:
except:
pass
# create a file for prediction data
stringToFile('Correct Predictions: '+str(np.sum(corcnt)-1)+'\nTotal Predictions: '+str(np.sum(incnt)+np.sum(corcnt)-3)+'\nRatio: '+str((np.sum(corcnt)-2)/(np.sum(incnt)+np.sum(corcnt)-3)), "Prediction Data (NC).txt")
stringToFile('Correct Predictions: '+str(np.sum(corcnt)-2)+'\nTotal Predictions: '+str(number-2)+'\nRatio: '+str((np.sum(corcnt)-2)/(np.sum(incnt)+np.sum(corcnt)-3)), "Prediction Data (NC).txt")
text("Data Successfully Saved to File", (255,255,255), smallfont, 10, 10)
pygame.display.update()
......
......@@ -60,13 +60,18 @@ def text(msg,color,font,x,y):
display.blit(screen_text, [x, y])
# program loop
number = 0
while True:
# random color
color = np.array([randint(0,255), randint(0,255), randint(0,255)])
number += 1
# color background
display.fill((123, 123, 123))
# display information
text('Total Predictions: '+str(number-2), (255,255,255), smallfont, width / 1.5 - -135 / 2, 210)
# draw color boxes
pygame.draw.rect(display, color, [width / 3 - 200 / 2, 300, 200, 200])
pygame.draw.rect(display, color, [width / 1.5 - 200 / 2, 300, 200, 200])
......@@ -88,9 +93,12 @@ while True:
text(str(color), (255,255,255), smallfont, 5, 230)
text('press tab to show data', (255,255,255), smallfont, width - 275, 10)
# make prediction, display prediction above color box
# make prediction
y = np.reshape(color, (-1, 3))
prediction = nn(points, y)
# deactivated prediction display to prevent placebo effect during experiment
"""
if len(points) > 1:
for n in white:
if np.array_equal(n, prediction):
......@@ -98,11 +106,11 @@ while True:
for n in black:
if np.array_equal(n, prediction):
display.blit(predPic, (width / 1.5 - 80 / 2, 200))
"""
# update display
pygame.display.update()
text('Correct Predictions: '+str(np.sum(corcnt)-1), (255,255,255), smallfont, width / 1.5 - -135 / 2, 230)
text('Total Predictions: '+str(np.sum(totcnt)-2), (255,255,255), smallfont, width / 1.5 - -135 / 2, 210)
text('Ratio: '+str((np.sum(corcnt)-1)/(np.sum(totcnt)-2)), (255,255,255), smallfont, width / 1.5 - -135 / 2, 190)
loop = True
while loop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment