|
78 | 78 | },
|
79 | 79 | {
|
80 | 80 | "cell_type": "code",
|
81 |
| - "execution_count": 8, |
| 81 | + "execution_count": 4, |
82 | 82 | "metadata": {},
|
83 | 83 | "outputs": [
|
84 | 84 | {
|
85 | 85 | "data": {
|
86 | 86 | "text/plain": [
|
87 |
| - "[PosixPath('/home/racheltho/.fastai/data/human_numbers/valid.txt'),\n", |
| 87 | + "[PosixPath('/home/racheltho/.fastai/data/human_numbers/models'),\n", |
| 88 | + " PosixPath('/home/racheltho/.fastai/data/human_numbers/valid.txt'),\n", |
88 | 89 | " PosixPath('/home/racheltho/.fastai/data/human_numbers/train.txt')]"
|
89 | 90 | ]
|
90 | 91 | },
|
91 |
| - "execution_count": 8, |
| 92 | + "execution_count": 4, |
92 | 93 | "metadata": {},
|
93 | 94 | "output_type": "execute_result"
|
94 | 95 | }
|
|
100 | 101 | },
|
101 | 102 | {
|
102 | 103 | "cell_type": "code",
|
103 |
| - "execution_count": 9, |
| 104 | + "execution_count": 5, |
104 | 105 | "metadata": {},
|
105 | 106 | "outputs": [],
|
106 | 107 | "source": [
|
|
116 | 117 | },
|
117 | 118 | {
|
118 | 119 | "cell_type": "code",
|
119 |
| - "execution_count": 10, |
| 120 | + "execution_count": 6, |
120 | 121 | "metadata": {},
|
121 | 122 | "outputs": [
|
122 | 123 | {
|
|
125 | 126 | "'one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirt'"
|
126 | 127 | ]
|
127 | 128 | },
|
128 |
| - "execution_count": 10, |
| 129 | + "execution_count": 6, |
129 | 130 | "metadata": {},
|
130 | 131 | "output_type": "execute_result"
|
131 | 132 | }
|
|
136 | 137 | },
|
137 | 138 | {
|
138 | 139 | "cell_type": "code",
|
139 |
| - "execution_count": 11, |
| 140 | + "execution_count": 7, |
140 | 141 | "metadata": {},
|
141 | 142 | "outputs": [
|
142 | 143 | {
|
|
145 | 146 | "' nine thousand nine hundred ninety eight, nine thousand nine hundred ninety nine'"
|
146 | 147 | ]
|
147 | 148 | },
|
148 |
| - "execution_count": 11, |
| 149 | + "execution_count": 7, |
149 | 150 | "metadata": {},
|
150 | 151 | "output_type": "execute_result"
|
151 | 152 | }
|
|
156 | 157 | },
|
157 | 158 | {
|
158 | 159 | "cell_type": "code",
|
159 |
| - "execution_count": 84, |
| 160 | + "execution_count": 8, |
160 | 161 | "metadata": {},
|
161 | 162 | "outputs": [],
|
162 | 163 | "source": [
|
|
169 | 170 | },
|
170 | 171 | {
|
171 | 172 | "cell_type": "code",
|
172 |
| - "execution_count": 85, |
| 173 | + "execution_count": 9, |
173 | 174 | "metadata": {},
|
174 | 175 | "outputs": [
|
175 | 176 | {
|
|
178 | 179 | "'xxbos one , two , three , four , five , six , seven , eight , nine , ten , eleve'"
|
179 | 180 | ]
|
180 | 181 | },
|
181 |
| - "execution_count": 85, |
| 182 | + "execution_count": 9, |
182 | 183 | "metadata": {},
|
183 | 184 | "output_type": "execute_result"
|
184 | 185 | }
|
|
189 | 190 | },
|
190 | 191 | {
|
191 | 192 | "cell_type": "code",
|
192 |
| - "execution_count": 86, |
| 193 | + "execution_count": 10, |
193 | 194 | "metadata": {},
|
194 | 195 | "outputs": [
|
195 | 196 | {
|
|
198 | 199 | "13017"
|
199 | 200 | ]
|
200 | 201 | },
|
201 |
| - "execution_count": 86, |
| 202 | + "execution_count": 10, |
202 | 203 | "metadata": {},
|
203 | 204 | "output_type": "execute_result"
|
204 | 205 | }
|
|
216 | 217 | },
|
217 | 218 | {
|
218 | 219 | "cell_type": "code",
|
219 |
| - "execution_count": 87, |
| 220 | + "execution_count": 11, |
220 | 221 | "metadata": {},
|
221 | 222 | "outputs": [
|
222 | 223 | {
|
|
225 | 226 | "(70, 3)"
|
226 | 227 | ]
|
227 | 228 | },
|
228 |
| - "execution_count": 87, |
| 229 | + "execution_count": 11, |
229 | 230 | "metadata": {},
|
230 | 231 | "output_type": "execute_result"
|
231 | 232 | }
|
|
245 | 246 | },
|
246 | 247 | {
|
247 | 248 | "cell_type": "code",
|
248 |
| - "execution_count": 88, |
| 249 | + "execution_count": 12, |
249 | 250 | "metadata": {},
|
250 | 251 | "outputs": [
|
251 | 252 | {
|
|
254 | 255 | "2.905580357142857"
|
255 | 256 | ]
|
256 | 257 | },
|
257 |
| - "execution_count": 88, |
| 258 | + "execution_count": 12, |
258 | 259 | "metadata": {},
|
259 | 260 | "output_type": "execute_result"
|
260 | 261 | }
|
|
272 | 273 | },
|
273 | 274 | {
|
274 | 275 | "cell_type": "code",
|
275 |
| - "execution_count": 89, |
| 276 | + "execution_count": 13, |
276 | 277 | "metadata": {},
|
277 | 278 | "outputs": [],
|
278 | 279 | "source": [
|
|
285 | 286 | },
|
286 | 287 | {
|
287 | 288 | "cell_type": "code",
|
288 |
| - "execution_count": 90, |
| 289 | + "execution_count": 14, |
289 | 290 | "metadata": {},
|
290 | 291 | "outputs": [
|
291 | 292 | {
|
|
300 | 301 | " [20, 10, 26, ..., 20, 11, 20]], device='cuda:0')"
|
301 | 302 | ]
|
302 | 303 | },
|
303 |
| - "execution_count": 90, |
| 304 | + "execution_count": 14, |
304 | 305 | "metadata": {},
|
305 | 306 | "output_type": "execute_result"
|
306 | 307 | }
|
|
318 | 319 | },
|
319 | 320 | {
|
320 | 321 | "cell_type": "code",
|
321 |
| - "execution_count": 91, |
| 322 | + "execution_count": 15, |
322 | 323 | "metadata": {},
|
323 | 324 | "outputs": [
|
324 | 325 | {
|
|
327 | 328 | "13440"
|
328 | 329 | ]
|
329 | 330 | },
|
330 |
| - "execution_count": 91, |
| 331 | + "execution_count": 15, |
331 | 332 | "metadata": {},
|
332 | 333 | "output_type": "execute_result"
|
333 | 334 | }
|
|
338 | 339 | },
|
339 | 340 | {
|
340 | 341 | "cell_type": "code",
|
341 |
| - "execution_count": 92, |
| 342 | + "execution_count": 16, |
342 | 343 | "metadata": {},
|
343 | 344 | "outputs": [
|
344 | 345 | {
|
|
347 | 348 | "(torch.Size([64, 70]), torch.Size([64, 70]))"
|
348 | 349 | ]
|
349 | 350 | },
|
350 |
| - "execution_count": 92, |
| 351 | + "execution_count": 16, |
351 | 352 | "metadata": {},
|
352 | 353 | "output_type": "execute_result"
|
353 | 354 | }
|
|
358 | 359 | },
|
359 | 360 | {
|
360 | 361 | "cell_type": "code",
|
361 |
| - "execution_count": 93, |
| 362 | + "execution_count": 17, |
362 | 363 | "metadata": {},
|
363 | 364 | "outputs": [
|
364 | 365 | {
|
|
367 | 368 | "(torch.Size([64, 70]), torch.Size([64, 70]))"
|
368 | 369 | ]
|
369 | 370 | },
|
370 |
| - "execution_count": 93, |
| 371 | + "execution_count": 17, |
371 | 372 | "metadata": {},
|
372 | 373 | "output_type": "execute_result"
|
373 | 374 | }
|
|
378 | 379 | },
|
379 | 380 | {
|
380 | 381 | "cell_type": "code",
|
381 |
| - "execution_count": 94, |
| 382 | + "execution_count": 18, |
382 | 383 | "metadata": {},
|
383 | 384 | "outputs": [
|
384 | 385 | {
|
|
387 | 388 | "(torch.Size([64, 70]), torch.Size([64, 70]))"
|
388 | 389 | ]
|
389 | 390 | },
|
390 |
| - "execution_count": 94, |
| 391 | + "execution_count": 18, |
391 | 392 | "metadata": {},
|
392 | 393 | "output_type": "execute_result"
|
393 | 394 | }
|
|
398 | 399 | },
|
399 | 400 | {
|
400 | 401 | "cell_type": "code",
|
401 |
| - "execution_count": 49, |
| 402 | + "execution_count": 19, |
402 | 403 | "metadata": {},
|
403 | 404 | "outputs": [],
|
404 | 405 | "source": [
|
|
407 | 408 | },
|
408 | 409 | {
|
409 | 410 | "cell_type": "code",
|
410 |
| - "execution_count": 51, |
| 411 | + "execution_count": 20, |
411 | 412 | "metadata": {},
|
412 | 413 | "outputs": [
|
413 | 414 | {
|
|
454 | 455 | " 'nineteen']"
|
455 | 456 | ]
|
456 | 457 | },
|
457 |
| - "execution_count": 51, |
| 458 | + "execution_count": 20, |
458 | 459 | "metadata": {},
|
459 | 460 | "output_type": "execute_result"
|
460 | 461 | }
|
|
465 | 466 | },
|
466 | 467 | {
|
467 | 468 | "cell_type": "code",
|
468 |
| - "execution_count": 47, |
| 469 | + "execution_count": 21, |
469 | 470 | "metadata": {},
|
470 | 471 | "outputs": [
|
471 | 472 | {
|
|
477 | 478 | " 9, 20, 10, 20, 11, 20, 11, 20, 20, 20], device='cuda:0')"
|
478 | 479 | ]
|
479 | 480 | },
|
480 |
| - "execution_count": 47, |
| 481 | + "execution_count": 21, |
481 | 482 | "metadata": {},
|
482 | 483 | "output_type": "execute_result"
|
483 | 484 | }
|
|
488 | 489 | },
|
489 | 490 | {
|
490 | 491 | "cell_type": "code",
|
491 |
| - "execution_count": 48, |
| 492 | + "execution_count": 22, |
492 | 493 | "metadata": {},
|
493 | 494 | "outputs": [
|
494 | 495 | {
|
|
500 | 501 | " 20, 11, 24, 11, 19, 9, 19, 11, 11, 10], device='cuda:0')"
|
501 | 502 | ]
|
502 | 503 | },
|
503 |
| - "execution_count": 48, |
| 504 | + "execution_count": 22, |
504 | 505 | "metadata": {},
|
505 | 506 | "output_type": "execute_result"
|
506 | 507 | }
|
|
511 | 512 | },
|
512 | 513 | {
|
513 | 514 | "cell_type": "code",
|
514 |
| - "execution_count": 52, |
| 515 | + "execution_count": 23, |
515 | 516 | "metadata": {},
|
516 | 517 | "outputs": [
|
517 | 518 | {
|
|
520 | 521 | "(',', 'thousand', 'one', 'two', 'hundred')"
|
521 | 522 | ]
|
522 | 523 | },
|
523 |
| - "execution_count": 52, |
| 524 | + "execution_count": 23, |
524 | 525 | "metadata": {},
|
525 | 526 | "output_type": "execute_result"
|
526 | 527 | }
|
|
531 | 532 | },
|
532 | 533 | {
|
533 | 534 | "cell_type": "code",
|
534 |
| - "execution_count": 53, |
| 535 | + "execution_count": 24, |
535 | 536 | "metadata": {},
|
536 | 537 | "outputs": [
|
537 | 538 | {
|
|
540 | 541 | "'xxbos eight thousand one , eight thousand two , eight thousand three , eight thousand four , eight thousand five , eight thousand six , eight thousand seven , eight thousand eight , eight thousand nine , eight thousand ten , eight thousand eleven , eight thousand twelve , eight thousand thirteen , eight thousand fourteen , eight thousand fifteen , eight thousand sixteen , eight thousand seventeen , eight'"
|
541 | 542 | ]
|
542 | 543 | },
|
543 |
| - "execution_count": 53, |
| 544 | + "execution_count": 24, |
544 | 545 | "metadata": {},
|
545 | 546 | "output_type": "execute_result"
|
546 | 547 | }
|
|
549 | 550 | "v.textify(x1[0])"
|
550 | 551 | ]
|
551 | 552 | },
|
| 553 | + { |
| 554 | + "cell_type": "code", |
| 555 | + "execution_count": 25, |
| 556 | + "metadata": {}, |
| 557 | + "outputs": [ |
| 558 | + { |
| 559 | + "data": { |
| 560 | + "text/plain": [ |
| 561 | + "', eight thousand forty six , eight thousand forty seven , eight thousand forty eight , eight thousand forty nine , eight thousand fifty , eight thousand fifty one , eight thousand fifty two , eight thousand fifty three , eight thousand fifty four , eight thousand fifty five , eight thousand fifty six , eight thousand fifty seven , eight thousand fifty eight , eight thousand fifty nine ,'" |
| 562 | + ] |
| 563 | + }, |
| 564 | + "execution_count": 25, |
| 565 | + "metadata": {}, |
| 566 | + "output_type": "execute_result" |
| 567 | + } |
| 568 | + ], |
| 569 | + "source": [ |
| 570 | + "v.textify(x1[1])" |
| 571 | + ] |
| 572 | + }, |
| 573 | + { |
| 574 | + "cell_type": "code", |
| 575 | + "execution_count": 26, |
| 576 | + "metadata": {}, |
| 577 | + "outputs": [ |
| 578 | + { |
| 579 | + "data": { |
| 580 | + "text/plain": [ |
| 581 | + "'eight thousand sixty , eight thousand sixty one , eight thousand sixty two , eight thousand sixty three , eight thousand sixty four , eight thousand sixty five , eight thousand sixty six , eight thousand sixty seven , eight thousand sixty eight , eight thousand sixty nine , eight thousand seventy , eight thousand seventy one , eight thousand seventy two , eight thousand seventy three , eight thousand'" |
| 582 | + ] |
| 583 | + }, |
| 584 | + "execution_count": 26, |
| 585 | + "metadata": {}, |
| 586 | + "output_type": "execute_result" |
| 587 | + } |
| 588 | + ], |
| 589 | + "source": [ |
| 590 | + "v.textify(x2[1])" |
| 591 | + ] |
| 592 | + }, |
552 | 593 | {
|
553 | 594 | "cell_type": "code",
|
554 | 595 | "execution_count": 21,
|
|
0 commit comments