|
60 | 60 | },
|
61 | 61 | {
|
62 | 62 | "cell_type": "code",
|
63 |
| - "execution_count": 2, |
| 63 | + "execution_count": 4, |
64 | 64 | "id": "2aacad82-0a13-4875-9078-a99e74309f05",
|
65 | 65 | "metadata": {
|
66 | 66 | "id": "2aacad82-0a13-4875-9078-a99e74309f05"
|
|
72 | 72 | "'0.9.1'"
|
73 | 73 | ]
|
74 | 74 | },
|
75 |
| - "execution_count": 2, |
| 75 | + "execution_count": 4, |
76 | 76 | "metadata": {},
|
77 | 77 | "output_type": "execute_result"
|
78 | 78 | }
|
|
98 | 98 | },
|
99 | 99 | {
|
100 | 100 | "cell_type": "code",
|
101 |
| - "execution_count": 3, |
| 101 | + "execution_count": 5, |
102 | 102 | "id": "5e20146b-4e70-48a2-8d93-4715a59caf6f",
|
103 | 103 | "metadata": {
|
104 | 104 | "colab": {
|
|
146 | 146 | " 'Cu64 calibration sphere']"
|
147 | 147 | ]
|
148 | 148 | },
|
149 |
| - "execution_count": 3, |
| 149 | + "execution_count": 5, |
150 | 150 | "metadata": {},
|
151 | 151 | "output_type": "execute_result"
|
152 | 152 | }
|
|
158 | 158 | },
|
159 | 159 | {
|
160 | 160 | "cell_type": "code",
|
161 |
| - "execution_count": 4, |
| 161 | + "execution_count": 6, |
162 | 162 | "id": "0771d377-547a-4fa3-bed1-a0374f74d88e",
|
163 | 163 | "metadata": {
|
164 | 164 | "colab": {
|
|
184 | 184 | " 'benchmark_model': 'mss'}"
|
185 | 185 | ]
|
186 | 186 | },
|
187 |
| - "execution_count": 4, |
| 187 | + "execution_count": 6, |
188 | 188 | "metadata": {},
|
189 | 189 | "output_type": "execute_result"
|
190 | 190 | }
|
|
202 | 202 | "source": [
|
203 | 203 | "## Shapes from the literature\n",
|
204 | 204 | "\n",
|
205 |
| - "EchoSMs also contains other fish model data - with the aim of easing access to historical datasets easier and facilitating testing of new model implementations." |
| 205 | + "EchoSMs also contains other fish model data - with the aim of easing access to historical datasets easier and facilitating testing of new model implementations. Cod A, B, C, and D are the model shapes used in the Clay & Horne (1992) KRM paper." |
206 | 206 | ]
|
207 | 207 | },
|
208 | 208 | {
|
209 | 209 | "cell_type": "code",
|
210 |
| - "execution_count": 5, |
| 210 | + "execution_count": 7, |
211 | 211 | "id": "7b077a2d-77a0-4de5-b91a-a2ba9f757994",
|
212 | 212 | "metadata": {},
|
213 | 213 | "outputs": [
|
|
252 | 252 | " 'SkipjackTuna_backboneSkull_41.18cm']"
|
253 | 253 | ]
|
254 | 254 | },
|
255 |
| - "execution_count": 5, |
| 255 | + "execution_count": 7, |
256 | 256 | "metadata": {},
|
257 | 257 | "output_type": "execute_result"
|
258 | 258 | }
|
|
263 | 263 | },
|
264 | 264 | {
|
265 | 265 | "cell_type": "code",
|
266 |
| - "execution_count": 6, |
| 266 | + "execution_count": 8, |
267 | 267 | "id": "1d8f70f2-85fb-42cb-a00d-0e23fd28ac8e",
|
268 | 268 | "metadata": {},
|
269 | 269 | "outputs": [
|
|
282 | 282 | "echosms.KRMdata().model('Cod').plot()"
|
283 | 283 | ]
|
284 | 284 | },
|
| 285 | + { |
| 286 | + "cell_type": "markdown", |
| 287 | + "id": "4d482e99-a214-439c-8388-233cd7e91589", |
| 288 | + "metadata": {}, |
| 289 | + "source": [ |
| 290 | + "There are also some DWBA model shapes available from echoSMs:" |
| 291 | + ] |
| 292 | + }, |
285 | 293 | {
|
286 | 294 | "cell_type": "code",
|
287 | 295 | "execution_count": 7,
|
|
408 | 416 | },
|
409 | 417 | {
|
410 | 418 | "cell_type": "code",
|
411 |
| - "execution_count": 32, |
| 419 | + "execution_count": 12, |
412 | 420 | "id": "51addec9-dcb2-435e-9d55-dc22464fbbbb",
|
413 | 421 | "metadata": {
|
414 | 422 | "colab": {
|
|
422 | 430 | "name": "stderr",
|
423 | 431 | "output_type": "stream",
|
424 | 432 | "text": [
|
425 |
| - "mss: 100%|███████████████████████████████████████████████████████████████████████████████████ [798/798; 89.50 models/s]\n" |
| 433 | + "mss: 100%|███████████████████████████████████████████████████████████████████████████████████ [798/798; 92.86 models/s]\n" |
426 | 434 | ]
|
427 | 435 | },
|
428 | 436 | {
|
|
452 | 460 | },
|
453 | 461 | {
|
454 | 462 | "cell_type": "code",
|
455 |
| - "execution_count": 33, |
| 463 | + "execution_count": 13, |
456 | 464 | "id": "d1dc1ee4-accc-4b22-b0bd-5aa72c3db6ea",
|
457 | 465 | "metadata": {
|
458 | 466 | "colab": {
|
|
480 | 488 | "plt.legend(['echoSMs', 'benchmark']);"
|
481 | 489 | ]
|
482 | 490 | },
|
| 491 | + { |
| 492 | + "cell_type": "markdown", |
| 493 | + "id": "ac109413-9e40-4206-a613-b4b32e7ac60b", |
| 494 | + "metadata": {}, |
| 495 | + "source": [ |
| 496 | + "Can also have multiple parameter arrays, for example radius and frequency:" |
| 497 | + ] |
| 498 | + }, |
483 | 499 | {
|
484 | 500 | "cell_type": "code",
|
485 |
| - "execution_count": 43, |
| 501 | + "execution_count": 14, |
486 | 502 | "id": "56d33db0-ae04-400f-bb2d-1ad7f53e21b2",
|
487 | 503 | "metadata": {
|
488 | 504 | "colab": {
|
|
550 | 566 | " 194242.42424242, 196161.61616162, 198080.80808081, 200000. ])}"
|
551 | 567 | ]
|
552 | 568 | },
|
553 |
| - "execution_count": 43, |
| 569 | + "execution_count": 14, |
554 | 570 | "metadata": {},
|
555 | 571 | "output_type": "execute_result"
|
556 | 572 | }
|
|
561 | 577 | "parameters"
|
562 | 578 | ]
|
563 | 579 | },
|
| 580 | + { |
| 581 | + "cell_type": "markdown", |
| 582 | + "id": "0f096584-b6ce-4721-90cc-dba918e1deae", |
| 583 | + "metadata": {}, |
| 584 | + "source": [ |
| 585 | + "These parameters define 10,000 model runs, so use the multiprocessing option to spread the calculations across CPU's" |
| 586 | + ] |
| 587 | + }, |
564 | 588 | {
|
565 | 589 | "cell_type": "code",
|
566 |
| - "execution_count": 55, |
| 590 | + "execution_count": 15, |
567 | 591 | "id": "cb88a047-56b4-42a7-af83-427320346ef4",
|
568 | 592 | "metadata": {
|
569 | 593 | "colab": {
|
|
590 | 614 | {
|
591 | 615 | "data": {
|
592 | 616 | "application/vnd.jupyter.widget-view+json": {
|
593 |
| - "model_id": "de4e187694bb455094601a31baf20b3b", |
| 617 | + "model_id": "16fff000d8004b62b6a223fbc46e9081", |
594 | 618 | "version_major": 2,
|
595 | 619 | "version_minor": 0
|
596 | 620 | },
|
|
609 | 633 | },
|
610 | 634 | {
|
611 | 635 | "cell_type": "code",
|
612 |
| - "execution_count": 57, |
| 636 | + "execution_count": 16, |
613 | 637 | "id": "fd686bd8-847c-4b6f-b7ef-c308f0261e39",
|
614 | 638 | "metadata": {
|
615 | 639 | "id": "fd686bd8-847c-4b6f-b7ef-c308f0261e39"
|
|
641 | 665 | "- 9+ scattering models\n",
|
642 | 666 | "- Simple and consistent interface"
|
643 | 667 | ]
|
644 |
| - }, |
645 |
| - { |
646 |
| - "cell_type": "code", |
647 |
| - "execution_count": null, |
648 |
| - "id": "782973d9-56af-448f-9eda-35518d823769", |
649 |
| - "metadata": {}, |
650 |
| - "outputs": [], |
651 |
| - "source": [] |
652 | 668 | }
|
653 | 669 | ],
|
654 | 670 | "metadata": {
|
|
0 commit comments