|
16 | 16 | "metadata": {},
|
17 | 17 | "outputs": [],
|
18 | 18 | "source": [
|
| 19 | + "import warnings\n", |
| 20 | + "\n", |
19 | 21 | "import arviz as az\n",
|
20 | 22 | "import pandas as pd\n",
|
21 | 23 | "\n",
|
|
31 | 33 | "%load_ext autoreload\n",
|
32 | 34 | "%autoreload 2\n",
|
33 | 35 | "%config InlineBackend.figure_format = 'retina'\n",
|
34 |
| - "seed = 42" |
| 36 | + "seed = 42\n", |
| 37 | + "warnings.simplefilter(action=\"ignore\", category=FutureWarning)" |
35 | 38 | ]
|
36 | 39 | },
|
37 | 40 | {
|
|
117 | 120 | "execution_count": 5,
|
118 | 121 | "metadata": {},
|
119 | 122 | "outputs": [
|
120 |
| - { |
121 |
| - "name": "stderr", |
122 |
| - "output_type": "stream", |
123 |
| - "text": [ |
124 |
| - "/var/folders/r0/nf1kgxsx6zx3rw16xc3wnnzr0000gn/T/ipykernel_542/1357227858.py:25: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`\n", |
125 |
| - " df_long = df_long.replace({\"district\": {\"Sixth District\": 1, \"Eighth District\": 0}})\n" |
126 |
| - ] |
127 |
| - }, |
128 | 123 | {
|
129 | 124 | "data": {
|
130 | 125 | "text/html": [
|
|
371 | 366 | {
|
372 | 367 | "data": {
|
373 | 368 | "application/vnd.jupyter.widget-view+json": {
|
374 |
| - "model_id": "ff04eb755c5a4b3799f9357b391b95c6", |
| 369 | + "model_id": "157d55ed720c45048f1f3b9ec64f1633", |
375 | 370 | "version_major": 2,
|
376 | 371 | "version_minor": 0
|
377 | 372 | },
|
|
548 | 543 | {
|
549 | 544 | "data": {
|
550 | 545 | "application/vnd.jupyter.widget-view+json": {
|
551 |
| - "model_id": "1c73d88ba42d4bc58597e27f4130346b", |
| 546 | + "model_id": "e55e1b5eec744b3ab83eb01ce5cd778c", |
552 | 547 | "version_major": 2,
|
553 | 548 | "version_minor": 0
|
554 | 549 | },
|
|
573 | 568 | "name": "stderr",
|
574 | 569 | "output_type": "stream",
|
575 | 570 | "text": [
|
576 |
| - "Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 2 seconds.\n", |
| 571 | + "Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 1 seconds.\n", |
577 | 572 | "Sampling: [beta, sigma, y_hat]\n",
|
578 | 573 | "Sampling: [y_hat]\n",
|
579 | 574 | "Sampling: [y_hat]\n",
|
|
717 | 712 | {
|
718 | 713 | "data": {
|
719 | 714 | "application/vnd.jupyter.widget-view+json": {
|
720 |
| - "model_id": "a602258c8e4745d78b52f86f3da22766", |
| 715 | + "model_id": "2765ee0006c8440983f9dcfa938bea5c", |
721 | 716 | "version_major": 2,
|
722 | 717 | "version_minor": 0
|
723 | 718 | },
|
|
880 | 875 | {
|
881 | 876 | "data": {
|
882 | 877 | "application/vnd.jupyter.widget-view+json": {
|
883 |
| - "model_id": "9713a99c6b7049359c1a16793145ca46", |
| 878 | + "model_id": "dd5a6855e8034f63961ddd55c6e23e13", |
884 | 879 | "version_major": 2,
|
885 | 880 | "version_minor": 0
|
886 | 881 | },
|
|
0 commit comments