Skip to content

Commit

Permalink
Fix time series guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamar Grey committed Mar 15, 2023
1 parent 046857e commit 964622a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docs/source/user_guide/timeseries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -851,23 +851,20 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Prediction Intervals"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"### Getting Prediction Intervals"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -882,13 +879,24 @@
"metadata": {},
"outputs": [],
"source": [
"pl.name"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Prior to using test data, make sure the types match the training data\n",
"X_test.ww.init(schema=X_train.ww.schema)\n",
"\n",
"X_trans = pl.transform_all_but_final(X_test, y_test)\n",
"y_pred = pl.predict(X_test, objective=None, X_train=X_train, y_train=y_train)\n",
"pl.estimator.get_prediction_intervals(X=X_trans, y=y_pred)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -907,15 +915,13 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Forecasting Future Data"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -941,7 +947,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -971,7 +976,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -1207,7 +1211,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1221,7 +1225,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.8.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 964622a

Please sign in to comment.