|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "markdown", |
5 | | - "id": "3e2c971d", |
| 5 | + "id": "bccdc720", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | 8 | "\n", |
|
19 | 19 | }, |
20 | 20 | { |
21 | 21 | "cell_type": "markdown", |
22 | | - "id": "971fb999", |
| 22 | + "id": "22da50aa", |
23 | 23 | "metadata": {}, |
24 | 24 | "source": [ |
25 | 25 | "# About These Lectures\n", |
|
31 | 31 | }, |
32 | 32 | { |
33 | 33 | "cell_type": "markdown", |
34 | | - "id": "5901c54f", |
| 34 | + "id": "641434b6", |
35 | 35 | "metadata": {}, |
36 | 36 | "source": [ |
37 | 37 | "## Overview\n", |
|
55 | 55 | }, |
56 | 56 | { |
57 | 57 | "cell_type": "markdown", |
58 | | - "id": "29bf6bc0", |
| 58 | + "id": "c29f395f", |
59 | 59 | "metadata": {}, |
60 | 60 | "source": [ |
61 | 61 | "### Can’t I Just Use LLMs?\n", |
|
79 | 79 | }, |
80 | 80 | { |
81 | 81 | "cell_type": "markdown", |
82 | | - "id": "fb3a5c5f", |
| 82 | + "id": "463193b8", |
83 | 83 | "metadata": {}, |
84 | 84 | "source": [ |
85 | 85 | "### Isn’t MATLAB Better?\n", |
|
102 | 102 | }, |
103 | 103 | { |
104 | 104 | "cell_type": "markdown", |
105 | | - "id": "7f03e393", |
| 105 | + "id": "71fa4501", |
106 | 106 | "metadata": {}, |
107 | 107 | "source": [ |
108 | 108 | "## Introducing Python\n", |
|
120 | 120 | }, |
121 | 121 | { |
122 | 122 | "cell_type": "markdown", |
123 | | - "id": "44965c89", |
| 123 | + "id": "64ba0f87", |
124 | 124 | "metadata": {}, |
125 | 125 | "source": [ |
126 | 126 | "### Common Uses\n", |
|
152 | 152 | }, |
153 | 153 | { |
154 | 154 | "cell_type": "markdown", |
155 | | - "id": "c24661a2", |
| 155 | + "id": "7d53dcb9", |
156 | 156 | "metadata": {}, |
157 | 157 | "source": [ |
158 | 158 | "### Relative Popularity\n", |
|
175 | 175 | }, |
176 | 176 | { |
177 | 177 | "cell_type": "markdown", |
178 | | - "id": "1df39b8e", |
| 178 | + "id": "775ba724", |
179 | 179 | "metadata": {}, |
180 | 180 | "source": [ |
181 | 181 | "### Features\n", |
|
193 | 193 | }, |
194 | 194 | { |
195 | 195 | "cell_type": "markdown", |
196 | | - "id": "ed1b530a", |
| 196 | + "id": "0d76993e", |
197 | 197 | "metadata": {}, |
198 | 198 | "source": [ |
199 | 199 | "### Syntax and Design\n", |
|
211 | 211 | }, |
212 | 212 | { |
213 | 213 | "cell_type": "markdown", |
214 | | - "id": "affbed36", |
| 214 | + "id": "71cf4983", |
215 | 215 | "metadata": { |
216 | 216 | "hide-output": false |
217 | 217 | }, |
|
269 | 269 | }, |
270 | 270 | { |
271 | 271 | "cell_type": "markdown", |
272 | | - "id": "fd15b7cc", |
| 272 | + "id": "ced3f595", |
273 | 273 | "metadata": {}, |
274 | 274 | "source": [ |
275 | 275 | "This Java code opens an imaginary file called `data.csv` and computes the mean\n", |
|
283 | 283 | { |
284 | 284 | "cell_type": "code", |
285 | 285 | "execution_count": null, |
286 | | - "id": "105e0f19", |
| 286 | + "id": "873c4b4e", |
287 | 287 | "metadata": { |
288 | 288 | "hide-output": false |
289 | 289 | }, |
|
305 | 305 | }, |
306 | 306 | { |
307 | 307 | "cell_type": "markdown", |
308 | | - "id": "18a6780f", |
| 308 | + "id": "e2c5c88f", |
309 | 309 | "metadata": {}, |
310 | 310 | "source": [ |
311 | 311 | "### The AI Connection\n", |
|
327 | 327 | }, |
328 | 328 | { |
329 | 329 | "cell_type": "markdown", |
330 | | - "id": "c26027ac", |
| 330 | + "id": "061134e9", |
331 | 331 | "metadata": {}, |
332 | 332 | "source": [ |
333 | 333 | "## Scientific Programming with Python\n", |
|
354 | 354 | }, |
355 | 355 | { |
356 | 356 | "cell_type": "markdown", |
357 | | - "id": "5e47162e", |
| 357 | + "id": "2f5503f7", |
358 | 358 | "metadata": {}, |
359 | 359 | "source": [ |
360 | 360 | "### NumPy\n", |
|
371 | 371 | { |
372 | 372 | "cell_type": "code", |
373 | 373 | "execution_count": null, |
374 | | - "id": "bda364c9", |
| 374 | + "id": "fa1bae38", |
375 | 375 | "metadata": { |
376 | 376 | "hide-output": false |
377 | 377 | }, |
|
383 | 383 | }, |
384 | 384 | { |
385 | 385 | "cell_type": "markdown", |
386 | | - "id": "d6c313d0", |
| 386 | + "id": "f0366d3b", |
387 | 387 | "metadata": {}, |
388 | 388 | "source": [ |
389 | 389 | "This array is very small so it’s fine to work with pure Python.\n", |
|
393 | 393 | "For this we need to use libraries for working with arrays.\n", |
394 | 394 | "\n", |
395 | 395 | "For Python, the most important matrix and array processing library is\n", |
396 | | - "[NumPy](https://www.numpy.org/) library.\n", |
| 396 | + "[NumPy](https://numpy.org/) library.\n", |
397 | 397 | "\n", |
398 | 398 | "For example, let’s build a NumPy array with 100 elements" |
399 | 399 | ] |
400 | 400 | }, |
401 | 401 | { |
402 | 402 | "cell_type": "code", |
403 | 403 | "execution_count": null, |
404 | | - "id": "c956f0af", |
| 404 | + "id": "2eea9a64", |
405 | 405 | "metadata": { |
406 | 406 | "hide-output": false |
407 | 407 | }, |
|
415 | 415 | }, |
416 | 416 | { |
417 | 417 | "cell_type": "markdown", |
418 | | - "id": "9a9cf553", |
| 418 | + "id": "3a5bc551", |
419 | 419 | "metadata": {}, |
420 | 420 | "source": [ |
421 | 421 | "Now let’s transform this array by applying functions to it." |
|
424 | 424 | { |
425 | 425 | "cell_type": "code", |
426 | 426 | "execution_count": null, |
427 | | - "id": "a4b5d512", |
| 427 | + "id": "453f0473", |
428 | 428 | "metadata": { |
429 | 429 | "hide-output": false |
430 | 430 | }, |
|
436 | 436 | }, |
437 | 437 | { |
438 | 438 | "cell_type": "markdown", |
439 | | - "id": "64c9d73e", |
| 439 | + "id": "32e7da1e", |
440 | 440 | "metadata": {}, |
441 | 441 | "source": [ |
442 | 442 | "Now we can easily take the inner product of `b` and `c`." |
|
445 | 445 | { |
446 | 446 | "cell_type": "code", |
447 | 447 | "execution_count": null, |
448 | | - "id": "9e109f70", |
| 448 | + "id": "55ec7c76", |
449 | 449 | "metadata": { |
450 | 450 | "hide-output": false |
451 | 451 | }, |
|
456 | 456 | }, |
457 | 457 | { |
458 | 458 | "cell_type": "markdown", |
459 | | - "id": "d5cc8859", |
| 459 | + "id": "d30ae172", |
460 | 460 | "metadata": {}, |
461 | 461 | "source": [ |
462 | 462 | "We can also do many other tasks, like\n", |
|
471 | 471 | }, |
472 | 472 | { |
473 | 473 | "cell_type": "markdown", |
474 | | - "id": "57983fe5", |
| 474 | + "id": "69e18595", |
475 | 475 | "metadata": {}, |
476 | 476 | "source": [ |
477 | 477 | "### NumPy Alternatives\n", |
|
497 | 497 | }, |
498 | 498 | { |
499 | 499 | "cell_type": "markdown", |
500 | | - "id": "c6f120f0", |
| 500 | + "id": "308ba2d8", |
501 | 501 | "metadata": {}, |
502 | 502 | "source": [ |
503 | 503 | "### SciPy\n", |
504 | 504 | "\n", |
505 | | - "The [SciPy](https://www.scipy.org) library is built on top of NumPy and provides additional functionality.\n", |
| 505 | + "The [SciPy](https://scipy.org/) library is built on top of NumPy and provides additional functionality.\n", |
506 | 506 | "\n", |
507 | 507 | "\n", |
508 | 508 | "<a id='tuple-unpacking-example'></a>\n", |
|
512 | 512 | { |
513 | 513 | "cell_type": "code", |
514 | 514 | "execution_count": null, |
515 | | - "id": "1c86ba4a", |
| 515 | + "id": "4bd7721c", |
516 | 516 | "metadata": { |
517 | 517 | "hide-output": false |
518 | 518 | }, |
|
528 | 528 | }, |
529 | 529 | { |
530 | 530 | "cell_type": "markdown", |
531 | | - "id": "ca9e5693", |
| 531 | + "id": "8b5b1059", |
532 | 532 | "metadata": {}, |
533 | 533 | "source": [ |
534 | 534 | "SciPy includes many of the standard routines used in\n", |
|
548 | 548 | }, |
549 | 549 | { |
550 | 550 | "cell_type": "markdown", |
551 | | - "id": "904ce964", |
| 551 | + "id": "6023eeba", |
552 | 552 | "metadata": {}, |
553 | 553 | "source": [ |
554 | 554 | "### Graphics\n", |
|
594 | 594 | }, |
595 | 595 | { |
596 | 596 | "cell_type": "markdown", |
597 | | - "id": "61cd6440", |
| 597 | + "id": "4450ddc5", |
598 | 598 | "metadata": {}, |
599 | 599 | "source": [ |
600 | 600 | "### Networks and Graphs\n", |
|
628 | 628 | { |
629 | 629 | "cell_type": "code", |
630 | 630 | "execution_count": null, |
631 | | - "id": "147d60a1", |
| 631 | + "id": "5d551c5b", |
632 | 632 | "metadata": { |
633 | 633 | "hide-output": false |
634 | 634 | }, |
|
663 | 663 | }, |
664 | 664 | { |
665 | 665 | "cell_type": "markdown", |
666 | | - "id": "fbc87b65", |
| 666 | + "id": "ff6f395e", |
667 | 667 | "metadata": {}, |
668 | 668 | "source": [ |
669 | 669 | "### Other Scientific Libraries\n", |
|
698 | 698 | } |
699 | 699 | ], |
700 | 700 | "metadata": { |
701 | | - "date": 1756348328.8648312, |
| 701 | + "date": 1756362393.2715633, |
702 | 702 | "filename": "about_py.md", |
703 | 703 | "kernelspec": { |
704 | 704 | "display_name": "Python", |
|
0 commit comments