Skip to content

Commit 0ba7108

Browse files
committed
remove arg and fix slice of index
1 parent 2fc68cc commit 0ba7108

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

example/example.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
},
252252
{
253253
"cell_type": "code",
254-
"execution_count": 8,
254+
"execution_count": null,
255255
"id": "78ade03b-7950-4cd5-9e50-d9f1a949ebac",
256256
"metadata": {},
257257
"outputs": [
@@ -278,10 +278,12 @@
278278
],
279279
"source": [
280280
"pte, lower_bound, upper_bound = estimator.predict_pte(\n",
281-
" target_treatment_arm=1, control_treatment_arm=0, width=1, locations=locations\n",
281+
" target_treatment_arm=1,\n",
282+
" control_treatment_arm=0,\n",
283+
" locations=locations\n",
282284
")\n",
283285
"plot(\n",
284-
" locations,\n",
286+
" locations[:-1],\n",
285287
" pte,\n",
286288
" lower_bound,\n",
287289
" upper_bound,\n",
@@ -515,7 +517,7 @@
515517
},
516518
{
517519
"cell_type": "code",
518-
"execution_count": 17,
520+
"execution_count": null,
519521
"id": "a1325579-6fca-4f6e-97c8-7b14cab2f984",
520522
"metadata": {},
521523
"outputs": [
@@ -544,12 +546,11 @@
544546
"pte, lower_bound, upper_bound = estimator.predict_pte(\n",
545547
" target_treatment_arm=1,\n",
546548
" control_treatment_arm=0,\n",
547-
" width=1,\n",
548549
" locations=locations,\n",
549550
" variance_type=\"simple\",\n",
550551
")\n",
551552
"plot(\n",
552-
" locations,\n",
553+
" locations[:-1],\n",
553554
" pte,\n",
554555
" lower_bound,\n",
555556
" upper_bound,\n",
@@ -560,7 +561,7 @@
560561
},
561562
{
562563
"cell_type": "code",
563-
"execution_count": 18,
564+
"execution_count": null,
564565
"id": "55a80258-43c3-4fb2-baec-6c2dce3c174a",
565566
"metadata": {},
566567
"outputs": [
@@ -589,12 +590,11 @@
589590
"pte, lower_bound, upper_bound = estimator.predict_pte(\n",
590591
" target_treatment_arm=1,\n",
591592
" control_treatment_arm=0,\n",
592-
" width=1,\n",
593593
" locations=locations,\n",
594594
" variance_type=\"moment\",\n",
595595
")\n",
596596
"plot(\n",
597-
" locations,\n",
597+
" locations[:-1],\n",
598598
" pte,\n",
599599
" lower_bound,\n",
600600
" upper_bound,\n",

0 commit comments

Comments
 (0)