Skip to content

Commit 4aef14b

Browse files
committed
revert changes in docs and fixing issues
1 parent 942a1d5 commit 4aef14b

File tree

5 files changed

+103
-70
lines changed

5 files changed

+103
-70
lines changed

causalpy/experiments/interrupted_time_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def data_postprocessing(self, model, data, idata, treatment_time, pre_y, pre_X):
157157
treatment_time,
158158
)
159159

160-
def plot_intervention_line(self, model, ax, idata, datapost, treatment_time):
160+
def plot_intervention_line(self, ax, model, idata, datapost, treatment_time):
161161
"""
162162
Plot a vertical line at the known treatment time on provided axes.
163163
"""

docs/source/notebooks/its_covid.ipynb

Lines changed: 38 additions & 33 deletions
Large diffs are not rendered by default.

docs/source/notebooks/its_no_treatment_time.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"cell_type": "markdown",
5454
"metadata": {},
5555
"source": [
56-
"# Using the `InterventionTimeEstimator` PyMC model\n",
56+
"### Using the `InterventionTimeEstimator` PyMC model\n",
5757
"\n",
5858
"The ``InterventionTimeEstimator`` (``ITE``) model is built to infer *when* an intervention likely occurred, based on the **type of effect** you expect it to have caused.\n",
5959
"\n",
@@ -66,7 +66,7 @@
6666
"cell_type": "markdown",
6767
"metadata": {},
6868
"source": [
69-
"### Example 1 : Level Change\n",
69+
"#### Example 1 : Level Change\n",
7070
"\n",
7171
"In this example, we apply the ``ITE`` model in its simplest form to a time series with a **level change**."
7272
]
@@ -281,7 +281,7 @@
281281
"cell_type": "markdown",
282282
"metadata": {},
283283
"source": [
284-
"### Example 2 : Trend Change\n",
284+
"#### Example 2 : Trend Change\n",
285285
"\n",
286286
"In this example, we'll showcase how to use the ITE when the time series exhibits a **trend change**."
287287
]
@@ -508,7 +508,7 @@
508508
"cell_type": "markdown",
509509
"metadata": {},
510510
"source": [
511-
"### Example 3 : Impulse\n",
511+
"#### Example 3 : Impulse\n",
512512
"\n",
513513
"In this final example, we'll demonstrate how to apply the ITE model to data that display an impulse-like effect."
514514
]
@@ -734,7 +734,7 @@
734734
"cell_type": "markdown",
735735
"metadata": {},
736736
"source": [
737-
"### Narrowing the Inference Window\n",
737+
"#### Narrowing the Inference Window\n",
738738
"\n",
739739
"Instead of specifying a treatment_time, you can constrain the inference window by passing a time_range=(start, end) argument, where start and end correspond to the row indices or timestamps of your dataframe:\n",
740740
"\n",
@@ -889,7 +889,7 @@
889889
"cell_type": "markdown",
890890
"metadata": {},
891891
"source": [
892-
"### Specifying the effect\n",
892+
"#### Specifying the effect\n",
893893
"\n",
894894
"The effects also can be specified using a dictionary passed to the `treatment_type_effect` arguments :\n",
895895
"\n",
@@ -940,7 +940,7 @@
940940
"cell_type": "markdown",
941941
"metadata": {},
942942
"source": [
943-
"# Interrupted Time Series (ITS) : Real Data Example"
943+
"### Interrupted Time Series (ITS) : Real Data Example"
944944
]
945945
},
946946
{

docs/source/notebooks/its_pymc.ipynb

Lines changed: 41 additions & 27 deletions
Large diffs are not rendered by default.

docs/source/notebooks/its_skl.ipynb

Lines changed: 16 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)