This commit is contained in:
Cezary Ptaszek 2021-02-08 06:34:31 +01:00
parent 91744ddc0a
commit f62c172654
2 changed files with 420 additions and 2 deletions

View File

@ -3,8 +3,8 @@ import torch.optim as op
from torch.autograd import Variable
from price_parser import Price
train = open('train/train.tsv', 'r')
test_in = open('test-A/in.tsv', 'r')
train = open('train/train.tsv', 'r', encoding='utf-8')
test_in = open('test-A/in.tsv', 'r', encoding='utf-8')
test_out = open('test-A/out.tsv', 'w+')
expected = []

View File

@ -0,0 +1,418 @@
-688713.4375
-590156.875
-1209823.875
-688516.75
-676713.5625
-786876.5625
-885236.375
-688713.4375
-393437.1875
-688713.4375
-688713.4375
-885236.375
-889406.875
-786876.5625
-688713.4375
-1022940.1875
-1573755.25
-688713.4375
-550812.9375
-373765.21875
-1318019.625
-609828.875
-393437.1875
-590156.875
-688713.4375
-397174.84375
-1252118.625
-590156.875
-537239.3125
-688713.4375
-1157496.375
-511469.0
-494354.375
-393437.1875
-688713.4375
-196717.515625
-389502.78125
-1278675.75
-393437.1875
-590156.875
-688713.4375
-688713.4375
-895072.375
-1022940.1875
-393437.1875
-590156.875
-1353429.25
-688713.4375
-397371.5625
-216389.484375
-397174.84375
-491797.03125
-826220.5
-1475395.375
-845892.4375
-1278675.75
-590156.875
-393437.1875
-590156.875
-818351.6875
-688713.4375
-629500.8125
-688713.4375
-688713.4375
-1081956.0
-1062284.125
-1337691.625
-983596.25
-688713.4375
-214422.28125
-393437.1875
-590156.875
-1337691.625
-1377035.625
-590156.875
-1081956.0
-786876.5625
-196717.515625
-688713.4375
-688713.4375
-688713.4375
-688713.4375
-1180315.875
-983596.25
-688713.4375
-875400.4375
-688713.4375
-668844.75
-786876.5625
-688516.75
-688713.4375
-687926.5625
-845892.4375
-688713.4375
-688713.4375
-983596.25
-688713.4375
-688713.4375
-393437.1875
-688713.4375
-1081956.0
-688713.4375
-1022940.1875
-904908.375
-944252.3125
-906875.5625
-1278675.75
-590156.875
-786876.5625
-688713.4375
-649172.8125
-1475395.375
-688713.4375
-826220.5
-688713.4375
-590156.875
-847662.9375
-826220.5
-393437.1875
-688516.75
-688713.4375
-792778.125
-393437.1875
-393437.1875
-491797.03125
-454420.28125
-688713.4375
-688713.4375
-491797.03125
-688713.4375
-983596.25
-688713.4375
-688713.4375
-768188.1875
-688713.4375
-688713.4375
-688713.4375
-885236.375
-688713.4375
-1672115.125
-688713.4375
-688713.4375
-1278675.75
-983596.25
-1711459.0
-688713.4375
-873433.1875
-688713.4375
-688713.4375
-786876.5625
-688713.4375
-786876.5625
-393437.1875
-1278675.75
-393437.1875
-983596.25
-688713.4375
-688713.4375
-688713.4375
-688713.4375
-688713.4375
-393437.1875
-786876.5625
-688713.4375
-590156.875
-295077.34375
-688713.4375
-767204.5625
-590156.875
-688713.4375
-481961.03125
-1310150.875
-688713.4375
-727860.625
-688713.4375
-1321954.0
-393437.1875
-396978.125
-1377035.625
-629500.8125
-629500.8125
-629500.8125
-1278675.75
-629500.8125
-393437.1875
-688713.4375
-688713.4375
-395601.09375
-245897.4375
-1081956.0
-688713.4375
-590156.875
-590156.875
-885236.375
-472125.0625
-688713.4375
-688516.75
-491797.03125
-1770474.875
-688713.4375
-275405.375
-1160643.875
-688516.75
-928514.75
-688713.4375
-393437.1875
-1475395.375
-590156.875
-688516.75
-983596.25
-688713.4375
-786876.5625
-688713.4375
-1066218.5
-196717.515625
-786876.5625
-590156.875
-688713.4375
-688713.4375
-786876.5625
-688713.4375
-688713.4375
-550812.9375
-196717.515625
-983596.25
-688713.4375
-983596.25
-688713.4375
-688516.75
-688516.75
-688516.75
-393437.1875
-983596.25
-786876.5625
-1407133.625
-688713.4375
-1377035.625
-590156.875
-393437.1875
-963924.25
-590156.875
-196717.515625
-944252.3125
-688713.4375
-393437.1875
-875400.4375
-885236.375
-393437.1875
-393437.1875
-688713.4375
-710155.875
-511469.0
-590156.875
-845892.4375
-590156.875
-688713.4375
-688713.4375
-491797.03125
-1573755.25
-688713.4375
-688713.4375
-688713.4375
-688713.4375
-857695.625
-705237.875
-688713.4375
-920645.9375
-550812.9375
-1495067.375
-688713.4375
-688713.4375
-688713.4375
-1377035.625
-688713.4375
-629500.8125
-395797.8125
-452453.09375
-786876.5625
-983596.25
-688713.4375
-1377035.625
-1140972.0
-786876.5625
-986940.4375
-688713.4375
-590156.875
-393437.1875
-590156.875
-393437.1875
-963924.25
-688713.4375
-688713.4375
-688713.4375
-786876.5625
-688713.4375
-688713.4375
-786876.5625
-708188.6875
-963924.25
-688713.4375
-932449.125
-590156.875
-196717.515625
-845892.4375
-295077.34375
-590156.875
-688713.4375
-688713.4375
-688713.4375
-786876.5625
-1377035.625
-688713.4375
-688713.4375
-393437.1875
-688713.4375
-688713.4375
-688713.4375
-390486.375
-688713.4375
-393437.1875
-1377035.625
-393437.1875
-963924.25
-706221.5
-688713.4375
-1180315.875
-356060.4375
-688713.4375
-397371.5625
-688713.4375
-944252.3125
-727860.625
-196717.515625
-688713.4375
-1445887.5
-688713.4375
-660975.9375
-688713.4375
-944252.3125
-688713.4375
-688713.4375
-511469.0
-688713.4375
-786876.5625
-688713.4375
-590156.875
-920645.9375
-786876.5625
-590156.875
-983596.25
-688713.4375
-1475395.375
-767204.5625
-688713.4375
-393437.1875
-748791.625
-786876.5625
-1573755.25
-550812.9375
-550812.9375
-922023.0
-688713.4375
-590156.875
-540976.9375
-963924.25
-688713.4375
-1180315.875
-688713.4375
-947399.8125
-688713.4375
-786876.5625
-688713.4375
-700319.875
-464256.28125
-393437.1875
-786876.5625
-393437.1875
-950547.3125
-786876.5625
-688713.4375
-688713.4375
-688713.4375
-243340.078125
-295077.34375
-688713.4375
-688713.4375
-393437.1875
-983596.25
-688713.4375
-688713.4375
-688713.4375
-1593427.25
-688713.4375
-688713.4375
-688713.4375
-688713.4375
-963924.25
-1475395.375
-688713.4375
-196717.515625
-1180315.875
-1499591.875
-393437.1875
-1868834.75
-245897.4375
-688713.4375
-688713.4375
-1180315.875
-688713.4375
-688713.4375
-688713.4375
-1573755.25
-688713.4375
-688713.4375
-688713.4375
-295077.34375
-295077.34375
-688713.4375
1 -688713.4375
1 -688713.4375
2 -590156.875
3 -1209823.875
4 -688516.75
5 -676713.5625
6 -786876.5625
7 -885236.375
8 -688713.4375
9 -393437.1875
10 -688713.4375
11 -688713.4375
12 -885236.375
13 -889406.875
14 -786876.5625
15 -688713.4375
16 -1022940.1875
17 -1573755.25
18 -688713.4375
19 -550812.9375
20 -373765.21875
21 -1318019.625
22 -609828.875
23 -393437.1875
24 -590156.875
25 -688713.4375
26 -397174.84375
27 -1252118.625
28 -590156.875
29 -537239.3125
30 -688713.4375
31 -1157496.375
32 -511469.0
33 -494354.375
34 -393437.1875
35 -688713.4375
36 -196717.515625
37 -389502.78125
38 -1278675.75
39 -393437.1875
40 -590156.875
41 -688713.4375
42 -688713.4375
43 -895072.375
44 -1022940.1875
45 -393437.1875
46 -590156.875
47 -1353429.25
48 -688713.4375
49 -397371.5625
50 -216389.484375
51 -397174.84375
52 -491797.03125
53 -826220.5
54 -1475395.375
55 -845892.4375
56 -1278675.75
57 -590156.875
58 -393437.1875
59 -590156.875
60 -818351.6875
61 -688713.4375
62 -629500.8125
63 -688713.4375
64 -688713.4375
65 -1081956.0
66 -1062284.125
67 -1337691.625
68 -983596.25
69 -688713.4375
70 -214422.28125
71 -393437.1875
72 -590156.875
73 -1337691.625
74 -1377035.625
75 -590156.875
76 -1081956.0
77 -786876.5625
78 -196717.515625
79 -688713.4375
80 -688713.4375
81 -688713.4375
82 -688713.4375
83 -1180315.875
84 -983596.25
85 -688713.4375
86 -875400.4375
87 -688713.4375
88 -668844.75
89 -786876.5625
90 -688516.75
91 -688713.4375
92 -687926.5625
93 -845892.4375
94 -688713.4375
95 -688713.4375
96 -983596.25
97 -688713.4375
98 -688713.4375
99 -393437.1875
100 -688713.4375
101 -1081956.0
102 -688713.4375
103 -1022940.1875
104 -904908.375
105 -944252.3125
106 -906875.5625
107 -1278675.75
108 -590156.875
109 -786876.5625
110 -688713.4375
111 -649172.8125
112 -1475395.375
113 -688713.4375
114 -826220.5
115 -688713.4375
116 -590156.875
117 -847662.9375
118 -826220.5
119 -393437.1875
120 -688516.75
121 -688713.4375
122 -792778.125
123 -393437.1875
124 -393437.1875
125 -491797.03125
126 -454420.28125
127 -688713.4375
128 -688713.4375
129 -491797.03125
130 -688713.4375
131 -983596.25
132 -688713.4375
133 -688713.4375
134 -768188.1875
135 -688713.4375
136 -688713.4375
137 -688713.4375
138 -885236.375
139 -688713.4375
140 -1672115.125
141 -688713.4375
142 -688713.4375
143 -1278675.75
144 -983596.25
145 -1711459.0
146 -688713.4375
147 -873433.1875
148 -688713.4375
149 -688713.4375
150 -786876.5625
151 -688713.4375
152 -786876.5625
153 -393437.1875
154 -1278675.75
155 -393437.1875
156 -983596.25
157 -688713.4375
158 -688713.4375
159 -688713.4375
160 -688713.4375
161 -688713.4375
162 -393437.1875
163 -786876.5625
164 -688713.4375
165 -590156.875
166 -295077.34375
167 -688713.4375
168 -767204.5625
169 -590156.875
170 -688713.4375
171 -481961.03125
172 -1310150.875
173 -688713.4375
174 -727860.625
175 -688713.4375
176 -1321954.0
177 -393437.1875
178 -396978.125
179 -1377035.625
180 -629500.8125
181 -629500.8125
182 -629500.8125
183 -1278675.75
184 -629500.8125
185 -393437.1875
186 -688713.4375
187 -688713.4375
188 -395601.09375
189 -245897.4375
190 -1081956.0
191 -688713.4375
192 -590156.875
193 -590156.875
194 -885236.375
195 -472125.0625
196 -688713.4375
197 -688516.75
198 -491797.03125
199 -1770474.875
200 -688713.4375
201 -275405.375
202 -1160643.875
203 -688516.75
204 -928514.75
205 -688713.4375
206 -393437.1875
207 -1475395.375
208 -590156.875
209 -688516.75
210 -983596.25
211 -688713.4375
212 -786876.5625
213 -688713.4375
214 -1066218.5
215 -196717.515625
216 -786876.5625
217 -590156.875
218 -688713.4375
219 -688713.4375
220 -786876.5625
221 -688713.4375
222 -688713.4375
223 -550812.9375
224 -196717.515625
225 -983596.25
226 -688713.4375
227 -983596.25
228 -688713.4375
229 -688516.75
230 -688516.75
231 -688516.75
232 -393437.1875
233 -983596.25
234 -786876.5625
235 -1407133.625
236 -688713.4375
237 -1377035.625
238 -590156.875
239 -393437.1875
240 -963924.25
241 -590156.875
242 -196717.515625
243 -944252.3125
244 -688713.4375
245 -393437.1875
246 -875400.4375
247 -885236.375
248 -393437.1875
249 -393437.1875
250 -688713.4375
251 -710155.875
252 -511469.0
253 -590156.875
254 -845892.4375
255 -590156.875
256 -688713.4375
257 -688713.4375
258 -491797.03125
259 -1573755.25
260 -688713.4375
261 -688713.4375
262 -688713.4375
263 -688713.4375
264 -857695.625
265 -705237.875
266 -688713.4375
267 -920645.9375
268 -550812.9375
269 -1495067.375
270 -688713.4375
271 -688713.4375
272 -688713.4375
273 -1377035.625
274 -688713.4375
275 -629500.8125
276 -395797.8125
277 -452453.09375
278 -786876.5625
279 -983596.25
280 -688713.4375
281 -1377035.625
282 -1140972.0
283 -786876.5625
284 -986940.4375
285 -688713.4375
286 -590156.875
287 -393437.1875
288 -590156.875
289 -393437.1875
290 -963924.25
291 -688713.4375
292 -688713.4375
293 -688713.4375
294 -786876.5625
295 -688713.4375
296 -688713.4375
297 -786876.5625
298 -708188.6875
299 -963924.25
300 -688713.4375
301 -932449.125
302 -590156.875
303 -196717.515625
304 -845892.4375
305 -295077.34375
306 -590156.875
307 -688713.4375
308 -688713.4375
309 -688713.4375
310 -786876.5625
311 -1377035.625
312 -688713.4375
313 -688713.4375
314 -393437.1875
315 -688713.4375
316 -688713.4375
317 -688713.4375
318 -390486.375
319 -688713.4375
320 -393437.1875
321 -1377035.625
322 -393437.1875
323 -963924.25
324 -706221.5
325 -688713.4375
326 -1180315.875
327 -356060.4375
328 -688713.4375
329 -397371.5625
330 -688713.4375
331 -944252.3125
332 -727860.625
333 -196717.515625
334 -688713.4375
335 -1445887.5
336 -688713.4375
337 -660975.9375
338 -688713.4375
339 -944252.3125
340 -688713.4375
341 -688713.4375
342 -511469.0
343 -688713.4375
344 -786876.5625
345 -688713.4375
346 -590156.875
347 -920645.9375
348 -786876.5625
349 -590156.875
350 -983596.25
351 -688713.4375
352 -1475395.375
353 -767204.5625
354 -688713.4375
355 -393437.1875
356 -748791.625
357 -786876.5625
358 -1573755.25
359 -550812.9375
360 -550812.9375
361 -922023.0
362 -688713.4375
363 -590156.875
364 -540976.9375
365 -963924.25
366 -688713.4375
367 -1180315.875
368 -688713.4375
369 -947399.8125
370 -688713.4375
371 -786876.5625
372 -688713.4375
373 -700319.875
374 -464256.28125
375 -393437.1875
376 -786876.5625
377 -393437.1875
378 -950547.3125
379 -786876.5625
380 -688713.4375
381 -688713.4375
382 -688713.4375
383 -243340.078125
384 -295077.34375
385 -688713.4375
386 -688713.4375
387 -393437.1875
388 -983596.25
389 -688713.4375
390 -688713.4375
391 -688713.4375
392 -1593427.25
393 -688713.4375
394 -688713.4375
395 -688713.4375
396 -688713.4375
397 -963924.25
398 -1475395.375
399 -688713.4375
400 -196717.515625
401 -1180315.875
402 -1499591.875
403 -393437.1875
404 -1868834.75
405 -245897.4375
406 -688713.4375
407 -688713.4375
408 -1180315.875
409 -688713.4375
410 -688713.4375
411 -688713.4375
412 -1573755.25
413 -688713.4375
414 -688713.4375
415 -688713.4375
416 -295077.34375
417 -295077.34375
418 -688713.4375