TimeGPT is a powerful, general-purpose time series forecasting solution. Throughout this notebook, we compare TimeGPT’s performance against three popular forecasting approaches:
Classical model (ARIMA)
Machine learning model (LightGBM)
Deep learning model (N-HiTS)
Below are three core benefits that our users value the most:
Accuracy
TimeGPT consistently outperforms traditional models by accurately capturing complex patterns.
Speed
Quickly generates forecasts with minimal training and tuning requirements per series.
Ease of Use
Minimal setup and no complex preprocessing make TimeGPT immediately accessible for use.
TimeGPT delivers superior results with minimal effort compared to traditional approaches. In head-to-head testing against ARIMA, LightGBM, and N-HiTS models on M5 competition data, TimeGPT consistently achieves better accuracy metrics (lowest RMSE at 592.6 and SMAPE at 4.94%).Unlike other models which require:
Extensive preprocessing
Parameter tuning
Significant computational resources
TimeGPT provides powerful forecasting capabilities with a simple API interface, making advanced time series analysis accessible to users of all technical backgrounds.
1
1. Data Introduction
This notebook uses an aggregated subset from the M5 Forecasting Accuracy competition. The dataset:
Consists of 7 daily time series
Has 1,941 observations per series
Reserves the last 28 observations for evaluation on unseen data
Data Loading and Stats Preview
import osimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom nixtla import NixtlaClientfrom utilsforecast.plotting import plot_seriesfrom utilsforecast.losses import mae, rmse, smapefrom utilsforecast.evaluation import evaluatenixtla_client = NixtlaClient( # api_key='my_api_key_provided_by_nixtla')df = pd.read_csv( 'https://datasets-nixtla.s3.amazonaws.com/demand_example.csv', parse_dates=['ds'])# Display aggregated statistics per time seriesdf.groupby('unique_id').agg({ "ds": ["min", "max", "count"], "y": ["min", "mean", "median", "max"]})
Below is a preview of the aggregated statistics for each of the 7 time series.
unique_id
min date
max date
count
min y
mean y
median y
max y
FOODS_1
2011-01-29
2016-05-22
1941
0.0
2674.086
2665.0
5493.0
FOODS_2
2011-01-29
2016-05-22
1941
0.0
4015.984
3894.0
9069.0
…
…
…
…
…
…
…
…
Next, we split our dataset into training and test sets. Here, we use data up to “2016-04-24” for training and the remaining data for testing.
2. Model Fitting (TimeGPT, ARIMA, LightGBM, N-HiTS)
TimeGPT is compared against four different modeling approaches. Each approach forecasts the final 28 days of our dataset and we compare results across Root Mean Squared Error (RMSE) and Symmetric Mean Absolute Percentage Error (SMAPE).
2.1 TimeGPT
TimeGPT offers a streamlined solution for time series forecasting with minimal setup.
ARIMA is a common baseline for time series, though it often requires more data preprocessing and does not handle multiple series as efficiently.
ARIMA Forecasting Using StatsForecast
from statsforecast import StatsForecastfrom statsforecast.models import AutoARIMAsf = StatsForecast(models=[AutoARIMA()], freq='D')fcst_arima = sf.forecast(h=28, df=df_train)# Evaluation methods omitted here for brevity
2.3 Machine Learning Models (LightGBM)
LightGBM is a popular gradient-boosted tree approach. However, careful feature engineering is typically required for optimal results.
LightGBM Modeling with AutoMLForecast
import optunafrom mlforecast.auto import AutoMLForecast, AutoLightGBMmlf = AutoMLForecast(models=[AutoLightGBM()], freq='D')mlf.fit(df_train)fcst_lgbm = mlf.predict(28)# Evaluation methods omitted here for brevity
2.4 N-HiTS
N-HiTS is a deep learning architecture for time series. While powerful, it often requires GPU resources and more hyperparameter tuning.
N-HiTS Deep Learning Forecast
from neuralforecast.core import NeuralForecastfrom neuralforecast.models import NHITSnf = NeuralForecast(models=[NHITS()], freq='D')nf.fit(df=df_train)fcst_nhits = nf.predict()# Evaluation methods omitted here for brevity
3
3. Performance Comparison and Results
Below is a summary of the performance metrics (RMSE and SMAPE) on the test dataset. TimeGPT consistently delivers superior forecasting accuracy:
Model
RMSE
SMAPE
ARIMA
724.9
5.50%
LightGBM
687.8
5.14%
N-HiTS
605.0
5.34%
TimeGPT
592.6
4.94%
Comparative Performance Visualization
Benchmark Results
4
4. Conclusion
TimeGPT stands out with its accuracy, speed, and ease of use. Get started today by visiting the
Nixtla dashboard to generate your
api_key and access advanced forecasting with minimal overhead.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TimeGPT Foundational model for time series forecasting and anomaly detection","colors":{"primary":"#222121","light":"#f6f4f0","dark":"#222121"},"logo":{"light":"https://mintcdn.com/nixtla-enterprise/O0SFdFfTlHgg9b5o/logo/light.svg?fit=max\u0026auto=format\u0026n=O0SFdFfTlHgg9b5o\u0026q=85\u0026s=399edb087e4823ccb07ed88395567997","dark":"https://mintcdn.com/nixtla-enterprise/O0SFdFfTlHgg9b5o/logo/dark.svg?fit=max\u0026auto=format\u0026n=O0SFdFfTlHgg9b5o\u0026q=85\u0026s=a8e3bdd449316026f8c7372d85a483f1"},"favicon":"https://mintcdn.com/nixtla-enterprise/2mYHtm59xC8HB7vL/favicon.ico?fit=max\u0026auto=format\u0026n=2mYHtm59xC8HB7vL\u0026q=85\u0026s=17a1733561a6cf4947f3bbd8b9bd49d3","background":{"color":{"light":"#f6f4f0","dark":"#171614"}},"navbar":{"links":[{"href":"https://www.nixtla.io/book-a-call?utm_source=docs\u0026utm_campaign=docs_nav","label":"Book a meeting"}],"primary":{"type":"button","label":"Get Started","href":"https://www.nixtla.io/book-a-free-trial?utm_source=nixtla.io\u0026utm_campaign=/docs/docs"}},"footer":{"socials":{"x":"https://x.com/nixtlainc","github":"https://github.com/nixtla","linkedin":"https://linkedin.com/company/nixtlainc"}},"seo":{"metatags":{"canonical":"https://www.nixtla.io/docs"}},"icons":{"library":"lucide"},"integrations":{"gtm":{"tagId":"GTM-TBJ64S3X"},"intercom":{"appId":"j7y9c2ep"},"posthog":{"apiKey":"phc_hblNl72piphlbRCYfGM8QkgazW9NNrDrP6dMbGzMp82","apiHost":"https://d.nixtla.io"}},"banner":{"content":"Inside the Nixtla Engine: Agentic Forecasting, Live · Nov 19. [Save my spot](https://www.nixtla.io/webinar-events/inside-the-nixtla-engine-agentic-forecasting-live)","dismissible":true,"color":{"light":"#bfd1ff","dark":"#918bc6"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"book-open","href":"https://www.nixtla.io"},{"anchor":"Get in touch","icon":"mail","href":"https://www.nixtla.io/book-a-free-trial?utm_source=nixtla.io\u0026utm_campaign=/docs/timegpt/getting-started"},{"anchor":"Meet with us","icon":"calendar","href":"https://www.nixtla.io/book-a-call?utm_source=nixtla.io\u0026utm_campaign=/docs/timegpt/getting-started"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nixtla-enterprise","hasAudioNarration":false,"actualSubdomain":"nixtla-enterprise","customDomains":["nixtla.io"],"gitSource":{"type":"github","owner":"nixtla","repo":"nixtla","deployBranch":"main","contentDirectory":"timegpt-docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad10d79dfbeb626d76b9dfd","collectionId":"f00f4c7d-4bc5-4f42-8e03-9abf02f96411","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad10d79dfbeb626d76b9dfd"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae8cb95ed2f58cb10ef54ce","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"FORECASTING","count":32},{"language":"default","tag":"REFERENCE","count":28},{"language":"default","tag":"async jobs","count":13},{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"USE CASES","count":7},{"language":"default","tag":"ANOMALY DETECTION","count":5},{"language":"default","tag":"Explanation","count":5},{"language":"default","tag":"Probabilistic forecasting","count":5},{"language":"default","tag":"INTRODUCTION","count":5},{"language":"default","tag":"About","count":4}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/nixtla-enterprise/81d69de3629a4139/style.css"},{"filePath":"tokens/docs.css","content":":root{--font-weight-regular:400;--fs-h2:var(--fs-2xl);--lh-h2:var(--lh-2xl);--leading-label:92%;--leading-label-relaxed:110%;--leading-label-loose:122%;--tracking-label:0.02em;--underline-offset:1px;--border-width:1px;--border-width-rail:1.5px;--border-width-indicator:2px;--border-width-callout:2px;--spacing-header-description:var(--space-8);--spacing-content-area:var(--spacing-space-2xl);--spacing-footer-top:var(--spacing-space-md);--spacing-component-top:var(--spacing-space-md);--spacing-mdx-content:var(--spacing-space-md);--spacing-mdx-content-prose-headers:var(--spacing-space-xl);--spacing-mdx-content-prose-headers-small:var(--spacing-space-md);--spacing-mdx-content-prose-li:var(--space-8);--spacing-list-steps-gap:var(--spacing-space-2xl);--page-title-max-width:34rem;--header-description-max-width:26.25rem;--header-eyebrow-reserve:11.25rem;--logo-width:7.5rem;--button-height:2.125rem;--image-link-badge-height:1.75rem;--code-header-height:2.25rem;--step-line-offset:2.75rem;--chat-input-reserve:5rem;--chat-launcher-gap:4.5rem;--intercom-launcher-size:3.75rem;--primary-hover:color-mix(in oklch, var(--primary) 80%, transparent);--highlight-foreground-muted:color-mix(in oklch, var(--highlight-foreground) 70%, transparent);--table-border:color-mix(in oklch, var(--table-ring) 15%, transparent);--code-hover-overlay:color-mix(in oklch, var(--blog-code-text) 8%, transparent);--code-tab-hover:var(--nixtla-neutral-700);--code-block-radius:var(--radius);--chat-shadow:0 1px 6px 0 color-mix(in oklch, var(--nixtla-neutral-950) 6%, transparent),\n 0 2px 32px 0 color-mix(in oklch, var(--nixtla-neutral-950) 16%, transparent);--search-bg:var(--nixtla-neutral-50);--callout-bg:var(--nixtla-neutral-50);--callout-note:var(--foreground);--callout-info:var(--nixtla-water-600);--callout-tip:var(--nixtla-teal-600);--callout-check:var(--nixtla-teal-600);--callout-warning:var(--nixtla-orange-600);--callout-danger:var(--nixtla-red-600)}html:root{--font-family-body-custom:var(--font-sans);--font-family-headings-custom:var(--font-heading);--font-family-mono-custom:var(--font-code);--font-weight-medium:400;--font-weight-semibold:400;--font-weight-body-custom:400;--font-weight-headings-custom:400}.dark{--search-bg:var(--nixtla-neutral-900);--callout-bg:var(--nixtla-neutral-900);--callout-info:var(--nixtla-water-300);--callout-tip:var(--nixtla-teal-300);--callout-check:var(--nixtla-teal-300);--callout-warning:var(--nixtla-orange-300);--callout-danger:var(--nixtla-red-300)}:root{--transition-hover:background-color var(--duration-base) var(--ease-standard)}"},{"filePath":"tokens/fonts.css","content":"@font-face{font-family:\"Inter Local\";src:url(https://www.nixtla.io/docs/fonts/Inter-400-Latin.woff2) format(\"woff2\");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:\"Inter Local\";src:url(https://www.nixtla.io/docs/fonts/Inter-400-Italic-Latin.woff2) format(\"woff2\");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:\"JetBrains Mono\";src:url(https://www.nixtla.io/docs/fonts/JetBrainsMono-400-Latin.woff2) format(\"woff2\");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:\"JetBrains Mono\";src:url(https://www.nixtla.io/docs/fonts/JetBrainsMono-400-Italic-Latin.woff2) format(\"woff2\");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:\"Inter Fallback\";src:local(\"Arial\");size-adjust:107.29%;ascent-override:90.29%;descent-override:22.48%;line-gap-override:0%}@font-face{font-family:\"JetBrains Mono Fallback\";src:local(\"Courier New\");size-adjust:99.98%;ascent-override:102.02%;descent-override:30%;line-gap-override:0%}"},{"filePath":"tokens/motion.css","content":":root{--duration-quick:120ms;--duration-base:200ms;--duration-slow:320ms;--ease-standard:cubic-bezier(0.2, 0, 0, 1)}@media (prefers-reduced-motion:reduce){:root{--duration-quick:1ms;--duration-base:1ms;--duration-slow:1ms}}"},{"filePath":"tokens/primitives.css","content":":root{--nixtla-neutral-50:oklch(1 0 89.9);--nixtla-neutral-100:oklch(0.968 0.006 84.6);--nixtla-neutral-200:oklch(0.934 0.004 91.4);--nixtla-neutral-300:oklch(0.7397 0.023 45.6);--nixtla-neutral-400:oklch(0.5859 0.027 45.8);--nixtla-neutral-500:oklch(0.464 0.029 45.7);--nixtla-neutral-600:oklch(0.3676 0.027 45.3);--nixtla-neutral-700:oklch(0.291 0.008 75.3);--nixtla-neutral-800:oklch(0.249 0.002 17.3);--nixtla-neutral-900:oklch(0.2396 0.004 84.6);--nixtla-neutral-950:oklch(0.2005 0.0042 84.6);--nixtla-haze-50:oklch(0.976 0.017 316.9);--nixtla-haze-100:oklch(0.946 0.028 316.7);--nixtla-haze-200:oklch(0.902 0.041 314.6);--nixtla-haze-300:oklch(0.833 0.05 315.3);--nixtla-haze-400:oklch(0.683 0.067 315);--nixtla-haze-500:oklch(0.607 0.07 314.3);--nixtla-haze-600:oklch(0.533 0.067 314.2);--nixtla-haze-700:oklch(0.472 0.06 314.6);--nixtla-haze-800:oklch(0.418 0.047 313.7);--nixtla-haze-900:oklch(0.363 0.038 313.6);--nixtla-haze-950:oklch(0.274 0.029 316.2);--nixtla-water-50:oklch(0.961 0.019 282.8);--nixtla-water-100:oklch(0.931 0.034 282.1);--nixtla-water-200:oklch(0.863 0.067 268.2);--nixtla-water-300:oklch(0.785 0.078 279.6);--nixtla-water-400:oklch(0.683 0.095 276.8);--nixtla-water-500:oklch(0.574 0.101 274.8);--nixtla-water-600:oklch(0.495 0.096 273);--nixtla-water-700:oklch(0.439 0.087 273.3);--nixtla-water-800:oklch(0.384 0.069 274.1);--nixtla-water-900:oklch(0.35 0.053 276.1);--nixtla-water-950:oklch(0.251 0.04 276.9);--nixtla-aubergine-50:oklch(0.97 0.009 292.8);--nixtla-aubergine-100:oklch(0.928 0.022 291.7);--nixtla-aubergine-200:oklch(0.857 0.041 290.1);--nixtla-aubergine-300:oklch(0.77 0.064 289.9);--nixtla-aubergine-400:oklch(0.664 0.087 288.5);--nixtla-aubergine-500:oklch(0.547 0.112 287.1);--nixtla-aubergine-600:oklch(0.468 0.103 285.9);--nixtla-aubergine-700:oklch(0.393 0.081 286.7);--nixtla-aubergine-800:oklch(0.343 0.074 286.1);--nixtla-aubergine-900:oklch(0.292 0.064 286.8);--nixtla-aubergine-950:oklch(0.225 0.046 285.9);--nixtla-teal-50:oklch(0.969 0.0202 177.1);--nixtla-teal-100:oklch(0.935 0.037 177.1);--nixtla-teal-200:oklch(0.874 0.0639 177.1);--nixtla-teal-300:oklch(0.796 0.0815 177.1);--nixtla-teal-400:oklch(0.637 0.106 177.1);--nixtla-teal-500:oklch(0.576 0.1188 177.1);--nixtla-teal-600:oklch(0.499 0.1119 177.1);--nixtla-teal-700:oklch(0.435 0.0967 177.1);--nixtla-teal-800:oklch(0.382 0.0799 177.1);--nixtla-teal-900:oklch(0.335 0.0649 177.1);--nixtla-teal-950:oklch(0.25 0.0484 177.1);--nixtla-red-50:oklch(0.969 0.0291 32);--nixtla-red-100:oklch(0.935 0.0532 32);--nixtla-red-200:oklch(0.874 0.092 32);--nixtla-red-300:oklch(0.796 0.1173 32);--nixtla-red-400:oklch(0.677 0.1525 32);--nixtla-red-500:oklch(0.576 0.171 32);--nixtla-red-600:oklch(0.499 0.1611 32);--nixtla-red-700:oklch(0.435 0.1392 32);--nixtla-red-800:oklch(0.382 0.1149 32);--nixtla-red-900:oklch(0.335 0.0934 32);--nixtla-red-950:oklch(0.25 0.0696 32);--nixtla-orange-50:oklch(0.969 0.0255 58);--nixtla-orange-100:oklch(0.935 0.0467 58);--nixtla-orange-200:oklch(0.874 0.0807 58);--nixtla-orange-300:oklch(0.796 0.1029 58);--nixtla-orange-400:oklch(0.677 0.1338 58);--nixtla-orange-500:oklch(0.576 0.15 58);--nixtla-orange-600:oklch(0.499 0.1413 58);--nixtla-orange-700:oklch(0.435 0.1221 58);--nixtla-orange-800:oklch(0.382 0.1009 58);--nixtla-orange-900:oklch(0.335 0.0819 58);--nixtla-orange-950:oklch(0.25 0.0611 58);--space-2:0.125rem;--space-4:0.25rem;--space-6:0.375rem;--space-8:0.5rem;--space-10:0.625rem;--space-12:0.75rem;--space-14:0.875rem;--space-16:1rem;--space-20:1.25rem;--space-24:1.5rem;--space-32:2rem;--space-40:2.5rem}"},{"filePath":"tokens/semantic.css","content":":root{--font-sans:\"Inter\", \"Inter Local\", \"Inter Fallback\", system-ui, -apple-system,\n BlinkMacSystemFont, \"Segoe UI\", sans-serif;--font-heading:var(--font-sans);--font-mono:\"JetBrains Mono\", \"JetBrains Mono Fallback\", ui-monospace, SFMono-Regular,\n Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--font-code:var(--font-mono);--background:var(--nixtla-neutral-100);--foreground:var(--nixtla-neutral-800);--card:var(--nixtla-neutral-50);--card-foreground:var(--foreground);--popover:var(--nixtla-neutral-100);--popover-foreground:var(--foreground);--popover-accent:var(--nixtla-neutral-200);--primary:var(--nixtla-neutral-800);--primary-foreground:var(--nixtla-neutral-100);--secondary:var(--nixtla-neutral-200);--secondary-foreground:var(--foreground);--muted-foreground:color-mix(in oklch, var(--foreground) 70%, transparent);--accent:var(--nixtla-neutral-200);--highlight-foreground:var(--foreground);--border:color-mix(\n in oklch,\n var(--nixtla-neutral-800) 10%,\n transparent\n );--ring:var(--nixtla-neutral-800);--input-background-focus:var(--nixtla-neutral-50);--table-bg:var(--nixtla-neutral-50);--table-header-bg:var(--secondary);--table-ring:var(--ring);--blog-code-bg:var(--nixtla-neutral-950);--blog-code-header-bg:var(--nixtla-neutral-900);--blog-code-border:color-mix(\n in oklch,\n var(--nixtla-neutral-100) 22%,\n transparent\n );--blog-code-text:var(--nixtla-neutral-100);--blog-code-muted:color-mix(\n in oklch,\n var(--nixtla-neutral-100) 62%,\n transparent\n );--sidebar:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-accent:var(--accent);--radius:0rem;--rule:color-mix(in oklch, var(--foreground) 20%, transparent)}.dark{--background:var(--nixtla-neutral-950);--foreground:var(--nixtla-neutral-100);--card:var(--nixtla-neutral-950);--popover:var(--nixtla-neutral-800);--popover-accent:var(--nixtla-neutral-700);--primary:var(--nixtla-neutral-100);--primary-foreground:var(--nixtla-neutral-800);--secondary:var(--nixtla-neutral-700);--accent:var(--nixtla-neutral-800);--border:color-mix(\n in oklch,\n var(--nixtla-neutral-50) 10%,\n transparent\n );--ring:color-mix(in oklch, var(--nixtla-neutral-100) 72%, transparent);--input-background-focus:var(--nixtla-neutral-950);--table-bg:var(--nixtla-neutral-900);--table-header-bg:var(--background);--table-ring:var(--nixtla-neutral-100);--card-foreground:var(--foreground);--popover-foreground:var(--foreground);--secondary-foreground:var(--foreground);--muted-foreground:color-mix(in oklch, var(--foreground) 70%, transparent);--highlight-foreground:var(--nixtla-neutral-800);--sidebar:var(--background);--sidebar-foreground:var(--foreground);--sidebar-primary:var(--primary);--sidebar-accent:var(--accent);--rule:color-mix(in oklch, var(--foreground) 16%, transparent)}:root{--spacing-space-md:var(--space-20);--spacing-space-xl:var(--space-32);--spacing-space-2xl:var(--space-40)}"},{"filePath":"tokens/typography.css","content":":root{--fs-xs:0.75rem;--lh-xs:1.1875rem;--fs-sm:0.875rem;--lh-sm:1.375rem;--fs-base:1rem;--lh-base:1.5rem;--fs-lg:1.125rem;--lh-lg:1.625rem;--fs-xl:1.25rem;--lh-xl:1.75rem;--fs-2xl:1.625rem;--lh-2xl:2.125rem;--fs-3xl:2rem;--lh-3xl:2.5rem;--text-xl--letter-spacing:0em;--text-2xl--letter-spacing:-0.015em;--text-3xl--letter-spacing:-0.02em;--text-mono-nano:0.6875rem;--text-mono-mini:0.875rem;--text-mono-mini--letter-spacing:-0.0714em}"}],"page":{"pagePath":"introduction/why_timegpt","slug":"/introduction/why_timegpt","pageMetadata":{"title":"Why TimeGPT?","description":"Understand the benefits of using TimeGPT for time series analysis.","icon":"lightbulb","href":"/introduction/why_timegpt"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand the benefits of using TimeGPT for time series analysis.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,img:`img`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Frame,Heading,Info,Step,Steps,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`why-timegpt`,children:`Why TimeGPT?`}),`\n`,_jsx(_components.p,{children:`TimeGPT is a powerful, general-purpose time series forecasting solution. Throughout this notebook, we compare TimeGPT’s performance against three popular forecasting approaches:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Classical model (ARIMA)`}),`\n`,_jsx(_components.li,{children:`Machine learning model (LightGBM)`}),`\n`,_jsx(_components.li,{children:`Deep learning model (N-HiTS)`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Below are three core benefits that our users value the most:`}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Accuracy`,icon:`chart-line`,children:_jsx(_components.p,{children:`TimeGPT consistently outperforms traditional models by accurately capturing complex patterns.`})}),_jsx(Card,{title:`Speed`,icon:`bolt`,children:_jsx(_components.p,{children:`Quickly generates forecasts with minimal training and tuning requirements per series.`})}),_jsx(Card,{title:`Ease of Use`,icon:`rocket`,children:_jsx(_components.p,{children:`Minimal setup and no complex preprocessing make TimeGPT immediately accessible for use.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`timegpt-advantage`,children:`TimeGPT Advantage`}),`\n`,_jsxs(_components.p,{children:[`TimeGPT delivers `,_jsx(_components.strong,{children:`superior results with minimal effort`}),` compared to traditional approaches. In head-to-head testing against ARIMA, LightGBM, and N-HiTS models on M5 competition data, TimeGPT consistently achieves better accuracy metrics (`,_jsx(_components.strong,{children:`lowest RMSE at 592.6`}),` and `,_jsx(_components.strong,{children:`SMAPE at 4.94%`}),`).`]}),`\n`,_jsx(_components.p,{children:`Unlike other models which require:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`Extensive preprocessing`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`Parameter tuning`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.em,{children:`Significant computational resources`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`TimeGPT provides `,_jsx(_components.strong,{children:`powerful forecasting capabilities`}),` with a simple API interface, making advanced time series analysis `,_jsx(_components.strong,{children:`accessible to users of all technical backgrounds`}),`.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`1. Data Introduction`,children:[_jsx(_components.p,{children:`This notebook uses an aggregated subset from the M5 Forecasting Accuracy competition. The dataset:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Consists of `,_jsx(_components.strong,{children:`7 daily time series`})]}),`\n`,_jsxs(_components.li,{children:[`Has `,_jsx(_components.strong,{children:`1,941 observations`}),` per series`]}),`\n`,_jsxs(_components.li,{children:[`Reserves the last `,_jsx(_components.strong,{children:`28 observations`}),` for evaluation on unseen data`]}),`\n`]}),_jsx(CodeBlock,{filename:`Data Loading and Stats Preview`,numberOfLines:`24`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` numpy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` np`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pandas `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pd`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` matplotlib.pyplot `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` plt`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nixtla `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NixtlaClient`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` utilsforecast.plotting `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` plot_series`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` utilsforecast.losses `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mae, rmse, smape`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` utilsforecast.evaluation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` evaluate`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`nixtla_client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NixtlaClient(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # api_key='my_api_key_provided_by_nixtla'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pd.read_csv(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://datasets-nixtla.s3.amazonaws.com/demand_example.csv'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` parse_dates`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ds'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Display aggregated statistics per time series`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df.groupby(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'unique_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).agg({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"min\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"y\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"min\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mean\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"median\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"max\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),_jsx(Info,{children:_jsx(_components.p,{children:`Below is a preview of the aggregated statistics for each of the 7 time series.`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`unique_id`}),_jsx(_components.th,{children:`min date`}),_jsx(_components.th,{children:`max date`}),_jsx(_components.th,{children:`count`}),_jsx(_components.th,{children:`min y`}),_jsx(_components.th,{children:`mean y`}),_jsx(_components.th,{children:`median y`}),_jsx(_components.th,{children:`max y`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`FOODS_1`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2011-01-29`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2016-05-22`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1941`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2674.086`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2665.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5493.0`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`FOODS_2`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2011-01-29`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2016-05-22`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1941`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`4015.984`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`3894.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`9069.0`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`}),_jsx(_components.td,{children:`…`})]})]})]}),_jsx(_components.p,{children:`Next, we split our dataset into training and test sets. Here, we use data up to “2016-04-24” for training and the remaining data for testing.`}),_jsx(CodeBlock,{filename:`Train-Test Split Example`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df_train `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` df.query(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ds \u003c= \"2016-04-24\"'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df_test `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` df.query(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'ds > \"2016-04-24\"'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(df_train.shape, df_test.shape)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# (13391, 3) (196, 3)`})}),`\n`]})})})]}),_jsxs(Step,{title:`2. Model Fitting (TimeGPT, ARIMA, LightGBM, N-HiTS)`,children:[_jsx(_components.p,{children:`TimeGPT is compared against four different modeling approaches. Each approach forecasts the final 28 days of our dataset and we compare results across Root Mean Squared Error (RMSE) and Symmetric Mean Absolute Percentage Error (SMAPE).`}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`2.1 TimeGPT`,id:`2-1-timegpt`,children:[_jsx(Info,{children:_jsx(_components.p,{children:`TimeGPT offers a streamlined solution for time series forecasting with minimal setup.`})}),_jsx(CodeBlock,{filename:`TimeGPT Forecasting with NixtlaClient`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`fcst_timegpt `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nixtla_client.forecast(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` df`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df_train,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_col`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'y'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` h`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`28`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'timegpt-1-long-horizon'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` finetune_steps`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` level`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`90`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`evaluation_timegpt.groupby([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'metric'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'TimeGPT'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].mean()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# metric`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# rmse 592.607378`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# smape 0.049403`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Name: TimeGPT, dtype: float64`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`2.2 Classical Models (ARIMA)`,id:`2-2-classical-models-arima`,children:[_jsx(Info,{children:_jsx(_components.p,{children:`ARIMA is a common baseline for time series, though it often requires more data preprocessing and does not handle multiple series as efficiently.`})}),_jsx(CodeBlock,{filename:`ARIMA Forecasting Using StatsForecast`,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` statsforecast `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StatsForecast`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` statsforecast.models `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AutoARIMA`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sf `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` StatsForecast(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`models`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[AutoARIMA()], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`freq`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'D'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`fcst_arima `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sf.forecast(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`h`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`28`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`df`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df_train)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Evaluation methods omitted here for brevity`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`2.3 Machine Learning Models (LightGBM)`,id:`2-3-machine-learning-models-lightgbm`,children:[_jsx(Info,{children:_jsx(_components.p,{children:`LightGBM is a popular gradient-boosted tree approach. However, careful feature engineering is typically required for optimal results.`})}),_jsx(CodeBlock,{filename:`LightGBM Modeling with AutoMLForecast`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` optuna`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mlforecast.auto `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AutoMLForecast, AutoLightGBM`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mlf `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AutoMLForecast(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`models`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[AutoLightGBM()], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`freq`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'D'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mlf.fit(df_train)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`fcst_lgbm `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mlf.predict(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`28`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Evaluation methods omitted here for brevity`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`2.4 N-HiTS`,id:`2-4-n-hits`,children:[_jsx(Info,{children:_jsx(_components.p,{children:`N-HiTS is a deep learning architecture for time series. While powerful, it often requires GPU resources and more hyperparameter tuning.`})}),_jsx(CodeBlock,{filename:`N-HiTS Deep Learning Forecast`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` neuralforecast.core `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NeuralForecast`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` neuralforecast.models `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` NHITS`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`nf `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NeuralForecast(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`models`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[NHITS()], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`freq`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'D'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`nf.fit(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`df`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`df_train)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`fcst_nhits `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` nf.predict()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Evaluation methods omitted here for brevity`})}),`\n`]})})})]})]})]}),_jsxs(Step,{title:`3. Performance Comparison and Results`,children:[_jsx(_components.p,{children:`Below is a summary of the performance metrics (RMSE and SMAPE) on the test dataset. TimeGPT consistently delivers superior forecasting accuracy:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`RMSE`}),_jsx(_components.th,{children:`SMAPE`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`ARIMA`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`724.9`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5.50%`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`LightGBM`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`687.8`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5.14%`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`N-HiTS`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`605.0`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5.34%`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TimeGPT`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`592.6`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`4.94%`})]})]})]}),_jsx(Frame,{caption:`Comparative Performance Visualization`,children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://raw.githubusercontent.com/Nixtla/nixtla/readme_docs/nbs/_docs/docs/getting-started/7_why_timegpt_files/figure-markdown_strict/cell-27-output-1.png`,alt:`Performance Chart`})})}),_jsx(Frame,{caption:`Benchmark Results`,children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://github.com/Nixtla/nixtla/blob/main/nbs/img/timeseries_model_arena.png?raw=true`,alt:`Benchmarking Results`})})})]}),_jsx(Step,{title:`4. Conclusion`,children:_jsxs(_components.p,{children:[`TimeGPT stands out with its accuracy, speed, and ease of use. Get started today by visiting the\n`,_jsx(_components.a,{href:`https://www.nixtla.io/book-a-free-trial?utm_source=nixtla.io\u0026utm_campaign=/docs/introduction/why_timegpt`,children:`Nixtla dashboard`}),` to generate your\n`,_jsx(_components.code,{children:`api_key`}),` and access advanced forecasting with minimal overhead.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Why TimeGPT?","description":"Understand the benefits of using TimeGPT for time series analysis.","icon":"lightbulb","href":"/introduction/why_timegpt"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why TimeGPT?","slug":"why-timegpt","depth":2,"children":[]},{"title":"TimeGPT Advantage","slug":"timegpt-advantage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/nixtla-enterprise/01786cef1c897ee2/code-group-tab-labels.js","/docs/_mintlify/custom/nixtla-enterprise/1948b5df23e2961d/blockquote-callouts.js"],"subdomain":"nixtla-enterprise","siteName":"TimeGPT Foundational model for time series forecasting and anomaly detection","title":"Why TimeGPT? - TimeGPT Foundational model for time series forecasting and anomaly detection","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-21T04:23:16.506Z","originalFileLocation":"introduction/why_timegpt.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand the benefits of using TimeGPT for time series analysis.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TimeGPT Foundational model for time series forecasting and anomaly detection\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Why TimeGPT? - TimeGPT Foundational model for time series forecasting and anomaly detection\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand the benefits of using TimeGPT for time series analysis.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TimeGPT Foundational model for time series forecasting and anomaly detection\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.nixtla.io/docs/introduction/why_timegpt\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nixtla-enterprise.mintlify.app/_mintlify/api/og/v2?division=INTRODUCTION\u0026amp;title=Why+TimeGPT%3F\u0026amp;description=Understand+the+benefits+of+using+TimeGPT+for+time+series+analysis.\u0026amp;theme=ae9e1f88a6d9a80d44a1f7af\u0026amp;signature=c76679978295d8c09e40b940ff507cf76bfbc90c9563c4cedb32b6b326c7bc0b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Why TimeGPT? - TimeGPT Foundational model for time series forecasting and anomaly detection\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand the benefits of using TimeGPT for time series analysis.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nixtla-enterprise.mintlify.app/_mintlify/api/og/v2?division=INTRODUCTION\u0026amp;title=Why+TimeGPT%3F\u0026amp;description=Understand+the+benefits+of+using+TimeGPT+for+time+series+analysis.\u0026amp;theme=ae9e1f88a6d9a80d44a1f7af\u0026amp;signature=c76679978295d8c09e40b940ff507cf76bfbc90c9563c4cedb32b6b326c7bc0b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/nixtla-enterprise/r3K6ebKXukqE4BBd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TimeGPT Foundational model for time series forecasting and anomaly detection\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#222121\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.nixtla.io/docs/introduction/why_timegpt\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/introduction/why_timegpt.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.nixtla.io/#organization\",\"name\":\"TimeGPT Foundational model for time series forecasting and anomaly detection\",\"url\":\"https://www.nixtla.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nixtla-enterprise/O0SFdFfTlHgg9b5o/logo/light.svg?fit=max\u0026auto=format\u0026n=O0SFdFfTlHgg9b5o\u0026q=85\u0026s=399edb087e4823ccb07ed88395567997\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.nixtla.io/docs#website\",\"name\":\"TimeGPT Foundational model for time series forecasting and anomaly detection\",\"url\":\"https://www.nixtla.io/docs\",\"publisher\":{\"@id\":\"https://www.nixtla.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.nixtla.io/docs/introduction/why_timegpt#webpage\",\"url\":\"https://www.nixtla.io/docs/introduction/why_timegpt\",\"name\":\"Why TimeGPT?\",\"description\":\"Understand the benefits of using TimeGPT for time series analysis.\",\"dateModified\":\"2026-07-21T04:23:16.506Z\",\"isPartOf\":{\"@id\":\"https://www.nixtla.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.nixtla.io/docs/introduction/why_timegpt#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.nixtla.io/docs/introduction/why_timegpt#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"INTRODUCTION\",\"item\":\"https://www.nixtla.io/docs/introduction/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why TimeGPT?\",\"item\":\"https://www.nixtla.io/docs/introduction/why_timegpt\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.nixtla.io/docs/introduction/why_timegpt#article\",\"headline\":\"Why TimeGPT?\",\"name\":\"Why TimeGPT?\",\"description\":\"Understand the benefits of using TimeGPT for time series analysis.\",\"url\":\"https://www.nixtla.io/docs/introduction/why_timegpt\",\"mainEntityOfPage\":{\"@id\":\"https://www.nixtla.io/docs/introduction/why_timegpt#webpage\"},\"dateModified\":\"2026-07-21T04:23:16.506Z\",\"publisher\":{\"@id\":\"https://www.nixtla.io/#organization\"},\"isPartOf\":{\"@id\":\"https://www.nixtla.io/docs#website\"}}]}\u003c/script>","siteName":"TimeGPT Foundational model for time series forecasting and anomaly detection","nav":{"global":{"anchors":[{"anchor":"Home","icon":"book-open","href":"https://www.nixtla.io"},{"anchor":"Get in touch","icon":"mail","href":"https://www.nixtla.io/book-a-free-trial?utm_source=nixtla.io\u0026utm_campaign=/docs/timegpt/getting-started"},{"anchor":"Meet with us","icon":"calendar","href":"https://www.nixtla.io/book-a-call?utm_source=nixtla.io\u0026utm_campaign=/docs/timegpt/getting-started"}]},"groups":[{"group":"INTRODUCTION","pages":[{"title":"Introduction","description":"Welcome to TimeGPT - The foundational model for time series forecasting and anomaly detection","icon":"bolt","href":"/introduction/introduction"},{"title":"Why TimeGPT?","icon":"lightbulb","href":"/introduction/why_timegpt"},{"title":"About TimeGPT","description":"Learn about TimeGPT - the foundation model for time series.","icon":"brain","href":"/introduction/about_timegpt"},{"title":"TimeGPT Subscription Plans","icon":"briefcase","href":"/introduction/timegpt_subscription_plans"},{"title":"TimeGPT FAQ","icon":"circle-question-mark","href":"/introduction/faq"}]},{"group":"SETUP","pages":[{"title":"Setting up your API key","icon":"key","href":"/setup/setting_up_your_api_key"},{"title":"Python Wheel for TimeGPT","icon":"package","href":"/setup/python_wheel"},{"title":"Docker Image for TimeGPT","icon":"docker","href":"/setup/docker"},{"title":"TimeGEN-1 Quickstart (Azure)","icon":"rocket","href":"/setup/azureai"}]},{"group":"DATA REQUIREMENTS","pages":[{"title":"Data Requirements","icon":"table","href":"/data_requirements/data_requirements"},{"title":"Multiple Time Series","icon":"table","href":"/data_requirements/multiple_series"},{"title":"Missing Values","icon":"table","href":"/data_requirements/missing_values"},{"title":"Audit and Clean Data","icon":"table","href":"/data_requirements/audit_clean"}]},{"group":"FORECASTING","pages":[{"title":"Quickstart (TimeGPT-2.1)","icon":"chart-line","href":"/forecasting/timegpt_quickstart"},{"title":"Improve Forecast Accuracy with TimeGPT","icon":"target","href":"/forecasting/improve_accuracy"},{"group":"Exogenous variables","pages":[{"title":"Numeric Variables","icon":"binary","href":"/forecasting/exogenous-variables/numeric_features"},{"title":"Categorical Variables","icon":"type","href":"/forecasting/exogenous-variables/categorical_features"},{"title":"Holidays \u0026 Special Dates","icon":"calendar","href":"/forecasting/exogenous-variables/holiday_and_special_dates"},{"title":"Date/Time Features","icon":"clock","href":"/forecasting/exogenous-variables/date_features"}]},{"group":"Explanation","pages":[{"title":"Understanding forecasts","icon":"signpost","href":"/forecasting/explanation/introduction"},{"title":"Explain a forecast with SHAP","icon":"chart-column","href":"/forecasting/exogenous-variables/interpretability_with_shap"},{"title":"Test forecast sensitivity","icon":"sliders","href":"/forecasting/explanation/intervention"},{"title":"Find predictive signals in history","icon":"list-ordered","href":"/forecasting/exogenous-variables/causal-explanations"},{"title":"Advanced explanations","icon":"chart-network","href":"/forecasting/explanation/advanced-explanations"}]},{"group":"Fine-tuning","pages":[{"title":"Fine-tuning Tutorial TimeGPT","icon":"sliders","href":"/forecasting/fine-tuning/steps"},{"title":"Controlling the Level of Fine-Tuning","icon":"gear","href":"/forecasting/fine-tuning/depth"},{"title":"Fine-tuning with a Specific Loss Function","icon":"gear","href":"/forecasting/fine-tuning/custom_loss"},{"title":"Re-using fine-tuned models","icon":"gear","href":"/forecasting/fine-tuning/save_reuse_delete_finetuned_models"}]},{"group":"Probabilistic forecasting","pages":[{"title":"Uncertainty Quantification with TimeGPT","icon":"circle-question-mark","href":"/forecasting/probabilistic/introduction"},{"title":"Prediction Intervals","icon":"chart-area","href":"/forecasting/probabilistic/prediction_intervals"},{"title":"Quantile Forecasts","icon":"ruler-vertical","href":"/forecasting/probabilistic/quantiles"},{"title":"Simulation","icon":"chart-spline","href":"/forecasting/probabilistic/simulation"},{"title":"Scenario Analysis with Simulation","icon":"split","href":"/forecasting/probabilistic/simulation_scenarios"}]},{"group":"Model versions","pages":[{"title":"Long-Horizon Forecasting with TimeGPT","icon":"clock","href":"/forecasting/model-version/longhorizon_model"}]},{"group":"Evaluation","pages":[{"title":"Cross-validation Tutorial","icon":"check","href":"/forecasting/evaluation/cross_validation"},{"title":"Evaluation Metrics","icon":"vial","href":"/forecasting/evaluation/evaluation_metrics"},{"title":"Evaluation Pipeline","icon":"sigma","href":"/forecasting/evaluation/evaluation_utilsforecast"}]},{"group":"Special topics","pages":[{"title":"Irregular Timestamps","icon":"clock","href":"/forecasting/special-topics/irregular_timestamps"},{"title":"Bounded Forecasts","icon":"arrows-up-down","href":"/forecasting/special-topics/bounded_forecasts"},{"title":"Hierarchical Forecasting","icon":"diagram-project","href":"/forecasting/special-topics/hierarchical_forecasting"},{"title":"Temporal Hierarchical Forecasting with TimeGPT","icon":"sitemap","href":"/forecasting/special-topics/temporal_hierarchical"}]},{"group":"Forecasting at scale","pages":[{"title":"Distributed Forecasting with Spark, Dask \u0026 Ray","icon":"microchip","href":"/forecasting/forecasting-at-scale/computing_at_scale"},{"title":"Time Series Forecasting with Spark","icon":"server","href":"/forecasting/forecasting-at-scale/spark"},{"title":"Time Series Forecasting with Dask","icon":"server","href":"/forecasting/forecasting-at-scale/dask"},{"title":"Time Series Forecasting with Ray","icon":"server","href":"/forecasting/forecasting-at-scale/ray"}]}]},{"group":"ANOMALY DETECTION","pages":[{"title":"Quickstart","icon":"bug","href":"/anomaly_detection/historical_anomaly_detection"},{"title":"Add Exogenous Variables","icon":"type","href":"/anomaly_detection/exogenous_variables"},{"group":"Real-time anomaly detection","pages":[{"title":"Online (Real-Time) Anomaly Detection","icon":"bolt","href":"/anomaly_detection/real-time/introduction"},{"title":"Controlling the Anomaly Detection Process","icon":"brain","href":"/anomaly_detection/real-time/adjusting_detection"},{"title":"Local vs Global Anomaly Detection","icon":"chart-mixed","href":"/anomaly_detection/real-time/univariate_multivariate"}]}]},{"group":"ASYNCHRONOUS JOBS","pages":[{"title":"Asynchronous Jobs","icon":"hourglass","href":"/jobs/asynchronous_jobs"}]},{"group":"USE CASES","pages":[{"title":"Forecasting Web Traffic","icon":"globe","href":"/use_cases/forecasting_web_traffic"},{"title":"Forecasting Bitcoin Prices","icon":"bitcoin","href":"/use_cases/bitcoin_price_prediction"},{"title":"Forecasting Energy Demand","icon":"bolt","href":"/use_cases/forecasting_energy_demand"},{"title":"Forecasting Intermittent Demand","icon":"box","href":"/use_cases/forecasting_intermittent_demand"},{"title":"What-If Forecasting: Price Effects in Retail","icon":"store","href":"/use_cases/what_if_forecasting_price_effects_in_retail"},{"title":"Plan Retail Promotions with Coupled Simulation","icon":"shopping-cart","href":"/use_cases/coupled_simulation_retail"},{"title":"Logging and Serving with MLFlow","icon":"flask-conical","href":"/use_cases/logging_and_serving_with_mlflow"}]},{"group":"REFERENCE","pages":[{"title":"SDK Reference","icon":"code","href":"/reference/sdk_reference"},{"title":"Date Features","icon":"calendar","href":"/reference/date_features"},{"title":"TimeGPT Excel Add-in (Beta)","icon":"file","href":"/reference/timegpt_excel_add_in_beta_"},{"title":"TimeGPT in R","icon":"code","href":"/reference/timegpt_in_r"},{"group":"API Reference","pages":[{"title":"Foundational Time Series Model Multi Series","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/forecast","href":"/api-reference/foundational-time-series-model-multi-series"},{"title":"Compute model-agnostic feature importance weights","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/explain","href":"/api-reference/compute-model-agnostic-feature-importance-weights"},{"title":"Foundational Time Series Model Multi Series Anomaly Detector","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/anomaly_detection","href":"/api-reference/foundational-time-series-model-multi-series-anomaly-detector"},{"title":"Foundational Time Series Model Online Multi Series Anomaly Detector","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/online_anomaly_detection","href":"/api-reference/foundational-time-series-model-online-multi-series-anomaly-detector"},{"title":"Foundational Time Series Model Multi Series Cross Validation","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/cross_validation","href":"/api-reference/foundational-time-series-model-multi-series-cross-validation"},{"title":"Foundational Time Series Model Multi Series Finetuning","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/finetune","href":"/api-reference/foundational-time-series-model-multi-series-finetuning"},{"title":"List Fine-tuned Models","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/finetuned_models","href":"/api-reference/list-fine-tuned-models"},{"title":"Get single Fine-tuned Model","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/finetuned_models/{finetuned_model_id}","href":"/api-reference/get-single-fine-tuned-model"},{"title":"Delete Fine-tuned Model","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/finetuned_models/{finetuned_model_id}","href":"/api-reference/delete-fine-tuned-model"},{"title":"Validate Api Key","deprecated":null,"version":null,"openapi":"/openapi.json get /validate_api_key","href":"/api-reference/validate-api-key"},{"title":"List Models","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/models","href":"/api-reference/list-models"}]},{"group":"async jobs","pages":[{"title":"Submit an async finetune job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/finetune/async","href":"/api-reference/async-jobs/submit-an-async-finetune-job"},{"title":"Get async finetune job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/finetune/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-finetune-job-status"},{"title":"Submit an async forecast job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/forecast/async","href":"/api-reference/async-jobs/submit-an-async-forecast-job"},{"title":"Get async forecast job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/forecast/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-forecast-job-status"},{"title":"Submit an async cross_validation job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/cross_validation/async","href":"/api-reference/async-jobs/submit-an-async-cross_validation-job"},{"title":"Get async cross_validation job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/cross_validation/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-cross_validation-job-status"},{"title":"Submit an async anomaly_detection job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/anomaly_detection/async","href":"/api-reference/async-jobs/submit-an-async-anomaly_detection-job"},{"title":"Get async anomaly_detection job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/anomaly_detection/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-anomaly_detection-job-status"},{"title":"Submit an async simulate job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/async","href":"/api-reference/async-jobs/submit-an-async-simulate-job"},{"title":"Get async simulate job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/simulate/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-simulate-job-status"},{"title":"Submit an async explain job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/explain/async","href":"/api-reference/async-jobs/submit-an-async-explain-job"},{"title":"Get async explain job status","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/explain/jobs/{job_id}","href":"/api-reference/async-jobs/get-async-explain-job-status"},{"title":"Cancel an async job","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/async/jobs/{job_id}/cancel","href":"/api-reference/async-jobs/cancel-an-async-job"}]}]},{"group":"About","pages":[{"title":"Key Concepts","icon":"lightbulb","href":"/about/key-concepts"},{"title":"Nixtla","icon":"user","href":"/about/sub-categoria"},{"title":"Terms and Conditions","icon":"book","href":"/about/terms-and-conditions"},{"title":"Privacy Notice","icon":"lock","href":"/about/privacy-notice"}]}]},"basePath":"","title":"Why TimeGPT? - TimeGPT Foundational model for time series forecasting and anomaly detection","buildId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","deploymentId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-DPhx60rN.js","dist-f6OgbvLC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-CEIlvfOI.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","Frame-DN70Wisw.js","DynamicMarkdown-B74atANy.js","zoom-image-lightbox-CnbVM2jb.js","lightbox-handle-r17bVUz3.js"]}