|
21 | 21 | }
|
22 | 22 | ],
|
23 | 23 | "source": [
|
24 |
| - "import warnings\n", |
25 |
| - "\n", |
26 | 24 | "import arviz as az\n",
|
27 | 25 | "import numpy as np\n",
|
28 | 26 | "import pymc3 as pm\n",
|
|
39 | 37 | "execution_count": 2,
|
40 | 38 | "metadata": {},
|
41 | 39 | "outputs": [],
|
42 |
| - "source": [ |
43 |
| - "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n", |
44 |
| - "warnings.filterwarnings(\"ignore\", category=UserWarning)" |
45 |
| - ] |
46 |
| - }, |
47 |
| - { |
48 |
| - "cell_type": "code", |
49 |
| - "execution_count": 3, |
50 |
| - "metadata": {}, |
51 |
| - "outputs": [], |
52 | 40 | "source": [
|
53 | 41 | "az.style.use(\"arviz-darkgrid\")"
|
54 | 42 | ]
|
|
198 | 186 | },
|
199 | 187 | {
|
200 | 188 | "cell_type": "code",
|
201 |
| - "execution_count": 4, |
| 189 | + "execution_count": 3, |
202 | 190 | "metadata": {},
|
203 | 191 | "outputs": [],
|
204 | 192 | "source": [
|
|
227 | 215 | },
|
228 | 216 | {
|
229 | 217 | "cell_type": "code",
|
230 |
| - "execution_count": 5, |
| 218 | + "execution_count": 4, |
231 | 219 | "metadata": {},
|
232 | 220 | "outputs": [],
|
233 | 221 | "source": [
|
|
237 | 225 | },
|
238 | 226 | {
|
239 | 227 | "cell_type": "code",
|
240 |
| - "execution_count": 6, |
| 228 | + "execution_count": 5, |
241 | 229 | "metadata": {},
|
242 | 230 | "outputs": [
|
243 | 231 | {
|
|
271 | 259 | },
|
272 | 260 | {
|
273 | 261 | "cell_type": "code",
|
274 |
| - "execution_count": 7, |
| 262 | + "execution_count": 6, |
275 | 263 | "metadata": {},
|
276 | 264 | "outputs": [
|
277 | 265 | {
|
|
305 | 293 | },
|
306 | 294 | {
|
307 | 295 | "cell_type": "code",
|
308 |
| - "execution_count": 8, |
| 296 | + "execution_count": 7, |
309 | 297 | "metadata": {},
|
310 | 298 | "outputs": [
|
311 | 299 | {
|
|
341 | 329 | },
|
342 | 330 | {
|
343 | 331 | "cell_type": "code",
|
344 |
| - "execution_count": 9, |
| 332 | + "execution_count": 8, |
345 | 333 | "metadata": {},
|
346 | 334 | "outputs": [
|
347 | 335 | {
|
|
350 | 338 | "array([5., 5.])"
|
351 | 339 | ]
|
352 | 340 | },
|
353 |
| - "execution_count": 9, |
| 341 | + "execution_count": 8, |
354 | 342 | "metadata": {},
|
355 | 343 | "output_type": "execute_result"
|
356 | 344 | }
|
|
375 | 363 | },
|
376 | 364 | {
|
377 | 365 | "cell_type": "code",
|
378 |
| - "execution_count": 10, |
| 366 | + "execution_count": 9, |
379 | 367 | "metadata": {},
|
380 | 368 | "outputs": [
|
381 | 369 | {
|
|
384 | 372 | "([2, 2, 2], [2, 2, 2])"
|
385 | 373 | ]
|
386 | 374 | },
|
387 |
| - "execution_count": 10, |
| 375 | + "execution_count": 9, |
388 | 376 | "metadata": {},
|
389 | 377 | "output_type": "execute_result"
|
390 | 378 | }
|
|
406 | 394 | },
|
407 | 395 | {
|
408 | 396 | "cell_type": "code",
|
409 |
| - "execution_count": 11, |
| 397 | + "execution_count": 10, |
410 | 398 | "metadata": {},
|
411 | 399 | "outputs": [
|
| 400 | + { |
| 401 | + "name": "stderr", |
| 402 | + "output_type": "stream", |
| 403 | + "text": [ |
| 404 | + "/Users/CloudChaoszero/opt/anaconda3/envs/pymc3-dev-py38/lib/python3.8/site-packages/arviz/data/io_pymc3.py:88: FutureWarning: Using `from_pymc3` without the model will be deprecated in a future release. Not using the model will return less accurate and less useful results. Make sure you use the model argument or call from_pymc3 within a model context.\n", |
| 405 | + " warnings.warn(\n" |
| 406 | + ] |
| 407 | + }, |
412 | 408 | {
|
413 | 409 | "data": {
|
414 | 410 | "text/html": [
|
|
453 | 449 | "a 0.5 0.05 0.4 0.58"
|
454 | 450 | ]
|
455 | 451 | },
|
456 |
| - "execution_count": 11, |
| 452 | + "execution_count": 10, |
457 | 453 | "metadata": {},
|
458 | 454 | "output_type": "execute_result"
|
459 | 455 | }
|
|
464 | 460 | },
|
465 | 461 | {
|
466 | 462 | "cell_type": "code",
|
467 |
| - "execution_count": 12, |
| 463 | + "execution_count": 11, |
468 | 464 | "metadata": {},
|
469 | 465 | "outputs": [
|
| 466 | + { |
| 467 | + "name": "stderr", |
| 468 | + "output_type": "stream", |
| 469 | + "text": [ |
| 470 | + "/Users/CloudChaoszero/opt/anaconda3/envs/pymc3-dev-py38/lib/python3.8/site-packages/arviz/data/io_pymc3.py:88: FutureWarning: Using `from_pymc3` without the model will be deprecated in a future release. Not using the model will return less accurate and less useful results. Make sure you use the model argument or call from_pymc3 within a model context.\n", |
| 471 | + " warnings.warn(\n" |
| 472 | + ] |
| 473 | + }, |
470 | 474 | {
|
471 | 475 | "data": {
|
472 | 476 | "text/html": [
|
|
511 | 515 | "a 0.5 0.04 0.42 0.57"
|
512 | 516 | ]
|
513 | 517 | },
|
514 |
| - "execution_count": 12, |
| 518 | + "execution_count": 11, |
515 | 519 | "metadata": {},
|
516 | 520 | "output_type": "execute_result"
|
517 | 521 | }
|
|
529 | 533 | },
|
530 | 534 | {
|
531 | 535 | "cell_type": "code",
|
532 |
| - "execution_count": 13, |
| 536 | + "execution_count": 12, |
533 | 537 | "metadata": {},
|
534 | 538 | "outputs": [
|
535 | 539 | {
|
|
538 | 542 | "<MultiTrace: 2 chains, 1000 iterations, 2 variables>"
|
539 | 543 | ]
|
540 | 544 | },
|
541 |
| - "execution_count": 13, |
| 545 | + "execution_count": 12, |
542 | 546 | "metadata": {},
|
543 | 547 | "output_type": "execute_result"
|
544 | 548 | }
|
|
549 | 553 | },
|
550 | 554 | {
|
551 | 555 | "cell_type": "code",
|
552 |
| - "execution_count": 14, |
| 556 | + "execution_count": 13, |
553 | 557 | "metadata": {},
|
554 | 558 | "outputs": [
|
| 559 | + { |
| 560 | + "name": "stderr", |
| 561 | + "output_type": "stream", |
| 562 | + "text": [ |
| 563 | + "/Users/CloudChaoszero/Documents/Projects-Dev/pymc3/pymc3/sampling.py:1687: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n", |
| 564 | + " warnings.warn(\n" |
| 565 | + ] |
| 566 | + }, |
555 | 567 | {
|
556 | 568 | "data": {
|
557 | 569 | "text/html": [
|
|
644 | 656 | },
|
645 | 657 | {
|
646 | 658 | "cell_type": "code",
|
647 |
| - "execution_count": 15, |
| 659 | + "execution_count": 14, |
648 | 660 | "metadata": {},
|
649 | 661 | "outputs": [
|
650 | 662 | {
|
651 | 663 | "name": "stdout",
|
652 | 664 | "output_type": "stream",
|
653 | 665 | "text": [
|
654 |
| - "Last updated: Sat Feb 06 2021\n", |
| 666 | + "Last updated: Sun Feb 07 2021\n", |
655 | 667 | "\n",
|
656 | 668 | "Python implementation: CPython\n",
|
657 | 669 | "Python version : 3.8.6\n",
|
658 | 670 | "IPython version : 7.20.0\n",
|
659 | 671 | "\n",
|
| 672 | + "matplotlib: None\n", |
660 | 673 | "numpy : 1.20.0\n",
|
661 | 674 | "pymc3 : 3.11.0\n",
|
662 | 675 | "arviz : 0.11.0\n",
|
663 |
| - "matplotlib: None\n", |
664 | 676 | "\n",
|
665 | 677 | "Watermark: 2.1.0\n",
|
666 | 678 | "\n"
|
|
675 | 687 | ],
|
676 | 688 | "metadata": {
|
677 | 689 | "kernelspec": {
|
678 |
| - "display_name": "Python 3", |
| 690 | + "display_name": "Python PyMC3 (Dev)", |
679 | 691 | "language": "python",
|
680 |
| - "name": "python3" |
| 692 | + "name": "pymc3-dev-py38" |
681 | 693 | },
|
682 | 694 | "language_info": {
|
683 | 695 | "codemirror_mode": {
|
|
0 commit comments