Skip to content

Commit

Permalink
[DOCS] New structure (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
elephaint authored Apr 30, 2024
1 parent 23861e3 commit 4bad565
Show file tree
Hide file tree
Showing 34 changed files with 2,170 additions and 104 deletions.
2 changes: 1 addition & 1 deletion action_files/readme_com/create_readme_docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

BASE_DIR="nbs/docs/"
SUB_DIRS=("getting-started" "tutorials" "how-to-guides" "misc")
SUB_DIRS=("1_getting_started" "2_capabilities" "2_capabilities/anomaly_detection" "2_capabilities/forecast" "3_deployment" "4_tutorials" "5_use_cases" "7_other_resources")

counter=0
for sub_dir in "${SUB_DIRS[@]}"; do
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/getting-started/1_getting_started_short')"
"colab_badge('docs/1_getting_started/quickstart')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Do you give everyone the keys to your house? Likely not. An **API key** is like a key to a house, and should be kept private. It is a unique string of characters that serves as a key to authenticate your requests to `TimeGTP`. This tutorial will explain how to set up your API key when using the Nixtla SDK. \n",
"Do you give everyone the keys to your house? Likely not. An **API key** is like a key to a house, and should be kept private. It is a unique string of characters that serves as a key to authenticate your requests to `TimeGPT`. This tutorial will explain how to set up your API key when using the Nixtla SDK. \n",
"\n",
"Upon [registration](https://dashboard.nixtla.io/), you will receive an email asking you to confirm your signup. After confirming, you will receive access to your dashboard. There, under `API Keys`, you will find your API key.\n",
"\n",
Expand All @@ -22,7 +22,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<img src=\"../../assets/2_api_key_process.png?\" alt=\"Figure 1. API key set up process\" width=\"600\"/>"
"<img src=\"../../img/api_key_process.png?\" alt=\"Figure 1. API key set up process\" width=\"600\"/>"
]
},
{
Expand Down Expand Up @@ -97,6 +97,7 @@
"\n",
"#### Windows\n",
"For Windows users, open a Powershell window and use the `Set` command to set `NIXTLA_API_KEY`. \n",
"\n",
"``` powershell\n",
"Set NIXTLA_API_KEY=your_api_key\n",
"```"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/0_anomaly_detection')"
"colab_badge('docs/2_capabilities/anomaly_detection/quickstart')"
]
},
{
Expand Down
728 changes: 728 additions & 0 deletions nbs/docs/2_capabilities/forecast/quickstart.ipynb

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions nbs/docs/2_capabilities/overview.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "6de758ee-a0d2-4b3f-acff-eed419dd17c5",
"metadata": {},
"source": [
"# Capabilities"
]
},
{
"cell_type": "markdown",
"id": "5d267032-535b-4b7b-b7d3-d2db8f673af6",
"metadata": {},
"source": [
"TimeGPT can primarily help you solve two tasks:\n",
"\n",
"1) Forecasting\n",
"2) Anomaly detection\n",
"\n",
"Click on the content on the left to discover the capabilities TimeGPT offers for each of these tasks."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/14_bounded_forecasts')"
"colab_badge('docs/4_tutorials/bounded_forecasts')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
"id": "a81fc39a-c6a0-485d-a3f3-c3a6298928a6",
"metadata": {},
"source": [
"Categorical variables are external factors that can influence a forecast. These variables take on one of a limited, fixed number of possible values, and induce a grouping of your observations.[^1]\n",
"\n",
"For example, if you're forecasting daily product demand for a retailer, you could benefit from an event variable that may tell you what kind of event takes place on a given day, for example 'None', 'Sporting', or 'Cultural'.\n",
"\n",
"To incorporate categorical variables in TimeGPT, you'll need to pair each point in your time series data with the corresponding external data.\n",
"\n",
"[^1]: https://en.wikipedia.org/wiki/Categorical_variable"
"Categorical variables are external factors that can influence a forecast. These variables take on one of a limited, fixed number of possible values, and induce a grouping of your observations.\\\n",
"\\\n",
"For example, if you're forecasting daily product demand for a retailer, you could benefit from an event variable that may tell you what kind of event takes place on a given day, for example 'None', 'Sporting', or 'Cultural'.\\\n",
"\\\n",
"To incorporate categorical variables in TimeGPT, you'll need to pair each point in your time series data with the corresponding external data."
]
},
{
Expand Down Expand Up @@ -63,7 +61,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/13_categorical_variables')"
"colab_badge('docs/4_tutorials/categorical_variables')"
]
},
{
Expand Down Expand Up @@ -150,11 +148,12 @@
"id": "bc2bb3db-00e6-44e6-8dc3-a2e0eba7e295",
"metadata": {},
"source": [
"Let's see an example on predicting sales of products of the [M5 dataset](https://nixtlaverse.nixtla.io/datasetsforecast/m5.html). The M5 dataset contains daily product demand (sales) for 10 retail stores in the US. \n",
"\n",
"Let's see an example on predicting sales of products of the [M5 dataset](https://nixtlaverse.nixtla.io/datasetsforecast/m5.html). The M5 dataset contains daily product demand (sales) for 10 retail stores in the US.\\\n",
"\\\n",
"First, we load the data using `datasetsforecast`. This returns:\n",
"- `Y_df`, containing the sales (`y` column), for each unique product (`unique_id` column) at every timestamp (`ds` column). \n",
"- `X_df`, containing additional relevant information for each unique product (`unique_id` column) at every timestamp (`ds` column). "
"\n",
"* `Y_df`, containing the sales (`y` column), for each unique product (`unique_id` column) at every timestamp (`ds` column). \n",
"* `X_df`, containing additional relevant information for each unique product (`unique_id` column) at every timestamp (`ds` column). "
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/how-to-guides/1_computing_at_scale_with_dask_distributed')"
"colab_badge('docs/4_tutorials/computing_at_scale_with_dask_distributed')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/how-to-guides/1_computing_at_scale_with_ray_distributed')"
"colab_badge('docs/4_tutorials/computing_at_scale_with_ray_distributed')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/how-to-guides/1_computing_at_scale_with_spark_distributed')"
"colab_badge('docs/4_tutorials/computing_at_scale_with_spark_distributed')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"outputs": [],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/9_cross_validation')"
"colab_badge('docs/4_tutorials/cross_validation')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/1_exogenous_variables')"
"colab_badge('docs/4_tutorials/exogenous_variables')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/5_finetuning')"
"colab_badge('docs/4_tutorials/finetuning')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/15_hierarchical_forecasting')"
"colab_badge('docs/4_tutorials/hierarchical_forecasting')"
]
},
{
Expand Down Expand Up @@ -156,8 +156,8 @@
"id": "81f2b918",
"metadata": {},
"source": [
"<img src=\"../../assets/australia_tourism.png?\" alt=\"Figure 1. Overview of Australia\" width=\"700\"/>\n",
"<img src=\"../../assets/australia_hierarchy.png?\" alt=\"Figure 2. Overview of hierarchy of Australia\" width=\"700\"/>"
"<img src=\"../../img/australia_tourism.png?\" alt=\"Figure 1. Overview of Australia\" width=\"700\"/>\n",
"<img src=\"../../img/australia_hierarchy.png?\" alt=\"Figure 2. Overview of hierarchy of Australia\" width=\"700\"/>"
]
},
{
Expand All @@ -178,7 +178,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\ospra\\AppData\\Local\\Temp\\ipykernel_3276\\3753786659.py:6: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.\n",
"C:\\Users\\ospra\\AppData\\Local\\Temp\\ipykernel_28980\\3753786659.py:6: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.\n",
" Y_df['ds'] = pd.to_datetime(Y_df['ds'])\n"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/7_historical_forecast')"
"colab_badge('docs/4_tutorials/historical_forecast')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/2_holidays')"
"colab_badge('docs/4_tutorials/holidays')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/8_irregular_timestamps')"
"colab_badge('docs/4_tutorials/irregular_timestamps')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
],
"source": [
"#| echo: false\n",
"colab_badge('docs/tutorials/12_longhorizon')"
"colab_badge('docs/4_tutorials/longhorizon')"
]
},
{
Expand Down
Loading

0 comments on commit 4bad565

Please sign in to comment.