{
  "id": "task_libraries:time-series-forecasting/python",
  "path": "/exapedia/python-time-series-forecasting-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python time series forecasting libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python time series forecasting libraries fit models to past observations and predict future values with uncertainty intervals. A statistical forecaster fits models such as ARIMA or exponential smoothing to each input series. These libraries let planning teams and AI agents forecast demand, traffic, and revenue."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python time series forecasting libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#statsmodels",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prophet",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#statsforecast",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pmdarima",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#arch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chronos-forecasting",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow-probability",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sktime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F249"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#statsmodels",
          "label": [
            {
              "t": "text",
              "text": "statsmodels"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F127"
        },
        {
          "t": "text",
          "text": ", a count that covers all its statistical modeling."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Pretrained zero-shot models",
            "Multiple series per call"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#statsmodels",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prophet",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#statsforecast",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pmdarima",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#arch",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chronos-forecasting",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tensorflow-probability",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sktime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F249"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "statsmodels",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/statsmodels/statsmodels"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/statsmodels"
            },
            {
              "label": "Docs",
              "href": "https://www.statsmodels.org/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.statsmodels.org/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/unit8co/darts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _fit(\n    self,\n    series: TimeSeries,\n    future_covariates: TimeSeries | None = None,\n    verbose: bool | None = None,\n):\n    super()._fit(series, future_covariates, verbose=verbose)\n\n    self._assert_univariate(series)\n\n    # storing to restore the statsmodels model results object\n    self.training_historic_future_covariates = future_covariates\n\n    m = staARIMA(\n        series.values(copy=False),\n        exog=future_covariates.values(copy=False) if future_covariates else None,\n        order=self.order,\n        seasonal_order=self.seasonal_order,\n        trend=self.trend,\n    )\n    self.model = m.fit()\n\n    return self\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/unit8co/darts/blob/eed2a150bba5d55ca5637560dc5c29fc47954db9/darts/models/forecasting/arima.py#L145-L167",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=statsmodels%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from statsmodels.tsa.arima.model import ARIMA\n\nmodel = ARIMA([10, 12, 11, 13, 12, 14, 13, 15], order=(1, 0, 0))\nfitted = model.fit()\nforecast = fitted.forecast(steps=2)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.statsmodels.org/stable/generated/statsmodels.tsa.arima.model.ARIMA.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "statsmodels.tsa.arima.model.ARIMA.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "prophet",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/meta/prophet"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/prophet"
            },
            {
              "label": "Docs",
              "href": "https://facebook.github.io/prophet/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://facebook.github.io/prophet/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _prophet_fit_and_predict(  # pylint: disable=too-many-arguments\n    df: DataFrame,\n    confidence_interval: float,\n    yearly_seasonality: Union[bool, str, int],\n    weekly_seasonality: Union[bool, str, int],\n    daily_seasonality: Union[bool, str, int],\n    periods: int,\n    freq: str,\n) -> DataFrame:\n    \"\"\"\n    Fit a prophet model and return a DataFrame with predicted results.\n    \"\"\"\n    try:\n        # `prophet` complains about `plotly` not being installed\n        with suppress_logging(\"prophet.plot\"):\n            # pylint: disable=import-outside-toplevel\n            from prophet import Prophet\n\n        prophet_logger = logging.getLogger(\"prophet.plot\")\n        prophet_logger.setLevel(logging.CRITICAL)\n        prophet_logger.setLevel(logging.NOTSET)\n    except ModuleNotFoundError as ex:\n        raise InvalidPostProcessingError(_(\"`prophet` package not installed\")) from ex\n    model = Prophet(\n        interval_width=confidence_interval,\n        yearly_seasonality=yearly_seasonality,\n        weekly_seasonality=weekly_seasonality,\n        daily_seasonality=daily_seasonality,\n    )\n    if df[\"ds\"].dt.tz:\n        df[\"ds\"] = df[\"ds\"].dt.tz_convert(None)\n    try:\n        model.fit(df)\n        future = model.make_future_dataframe(periods=periods, freq=freq)\n        forecast = model.predict(future)[[\"ds\", \"yhat\", \"yhat_lower\", \"yhat_upper\"]]\n    except Exception as ex:  # noqa: BLE001\n        raise InvalidPostProcessingError(\n            _(\n                \"Unable to generate forecast: %(error)s\",\n                error=str(ex),\n            )\n        ) from ex\n    return forecast.join(df.set_index(\"ds\"), on=\"ds\").set_index([\"ds\"])\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset/blob/18430a95f7da90dd848bc4ed988db58dd8c3362d/superset/utils/pandas_postprocessing/prophet.py#L43-L85",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20prophet%20to%20forecast%20future%20time%20series%20values%20with%20covariates%20intervals%20horizons%20and%20temporal%20backtesting&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pandas as pd\nfrom prophet import Prophet\n\ndf = pd.DataFrame({\n    'ds': pd.date_range('2025-01-01', periods=30, freq='D'),\n    'y': list(range(30)),\n})\nmodel = Prophet()\nmodel.fit(df)\nfuture = model.make_future_dataframe(periods=2)\nforecast = model.predict(future)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/meta/prophet/blob/f57c4e13a29d18f927f2516f04990a3540711694/docs/_docs/quick_start.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "quick_start.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "statsforecast",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Nixtla/statsforecast"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/statsforecast"
            },
            {
              "label": "Docs",
              "href": "https://nixtlaverse.nixtla.io/statsforecast/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://nixtlaverse.nixtla.io/statsforecast/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/unit8co/darts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _fit(\n    self,\n    series: TimeSeries,\n    future_covariates: TimeSeries | None = None,\n    verbose: bool | None = None,\n):\n    super()._fit(series, future_covariates, verbose=verbose)\n    self._assert_univariate(series)\n    series = self.training_series\n\n    if self._supports_native_future_covariates or future_covariates is None:\n        target = series.values(copy=False).flatten()\n    else:\n        # perform OLS and get in-sample residuals\n        self._linreg = LinearRegressionModel(\n            lags_future_covariates=[0],\n            use_static_covariates=False,\n        )\n        self._linreg.fit(\n            series, future_covariates=future_covariates, verbose=verbose\n        )\n        target = self._get_target_residuals(series, future_covariates)\n\n    self.model.fit(\n        target,\n        X=(\n            future_covariates.values(copy=False)\n            if future_covariates is not None\n            and self._supports_native_future_covariates\n            else None\n        ),\n    )\n    return self\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/unit8co/darts/blob/1a040e78687468d926bbbae12f5befcd72d294e8/darts/models/forecasting/sf_model.py#L187-L219",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20applications%20using%20statsforecast%20to%20forecast%20future%20time%20series%20values%20with%20covariates%20intervals%20horizons%20and%20temporal%20backtesting&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from statsforecast import StatsForecast\nfrom statsforecast.models import AutoARIMA\nfrom statsforecast.utils import AirPassengersDF\n\ndf = AirPassengersDF\nsf = StatsForecast(\n    models=[AutoARIMA(season_length=12)],\n    freq='ME',\n)\nsf.fit(df)\nsf.predict(h=12, level=[95])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Nixtla/statsforecast/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pmdarima",
          "name": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/alkaline-ml/pmdarima"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pmdarima"
            },
            {
              "label": "Docs",
              "href": "https://alkaline-ml.com/pmdarima/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://alkaline-ml.com/pmdarima/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/sktime/sktime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _fit(self, y, X, fh):\n    \"\"\"Fit to training data.\n\n    Parameters\n    ----------\n    y : pd.Series\n        Target time series to which to fit the forecaster.\n    fh : int, list, np.array or ForecastingHorizon, optional (default=None)\n        The forecasters horizon with the steps ahead to predict.\n    X : pd.DataFrame, optional (default=None)\n        Exogenous variables are ignored\n\n    Returns\n    -------\n    self : returns an instance of self.\n    \"\"\"\n    self._cur_y = y\n    self._cur_X = X\n    if X is not None:\n        X = X.loc[y.index]\n    # statsmodels >= 0.15 raises on out-of-sample prediction if the index\n    # is not supported, e.g., an integer index not starting at 0,\n    # so we pass a RangeIndex in this case. Predictions are re-indexed in _predict.\n    y_fit = y\n    if pd.api.types.is_integer_dtype(y.index) and not isinstance(\n        y.index, pd.RangeIndex\n    ):\n        y_fit = y.reset_index(drop=True)\n        if X is not None:\n            X = X.reset_index(drop=True)\n    self._forecaster = self._instantiate_model()\n    self._forecaster.fit(y_fit, X=X)\n    self._y_name = y.name\n    return self\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/sktime/sktime/blob/7304dab8a5c5c071c990687a5e5993033e8adbc2/sktime/forecasting/base/adapters/_pmdarima.py#L48-L81",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pmdarima%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pmdarima as pm\n\ny = pm.datasets.load_wineind()\nmodel = pm.auto_arima(y, seasonal=True, m=12)\nforecast = model.predict(n_periods=2)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/alkaline-ml/pmdarima/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "arch",
          "name": [
            {
              "t": "fact",
              "fact": "F194"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bashtage/arch"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/arch"
            },
            {
              "label": "Docs",
              "href": "https://bashtage.github.io/arch/univariate/introduction.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://bashtage.github.io/arch/univariate/introduction.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F194"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/quarkfin/qf-lib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _calculate_single_value(self, returns: LogReturnsSeries) -> float:\n    am = self._get_ARCH_model(returns, self.vol_process)\n    res = am.fit(disp='off', show_warning=False)  # options={'maxiter': 10000, 'ftol': 1e-2})\n    forecasts = res.forecast(horizon=self.horizon, method=self.method)\n    column_str = 'h.{}'.format(self.horizon)  # take value for the selected horizon\n    forecasts_series = forecasts.variance[column_str]\n    # take the last value (most recent forecast)\n    forecasted_value = forecasts_series.iloc[-1]\n    # convert to volatility (if power=2, forecasted_value corresponds to variance, etc.)\n    forecasted_vol = forecasted_value ** (1 / float(am.volatility.power))\n    return forecasted_vol\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/quarkfin/qf-lib/blob/dfbcffc6aba129c827cfe7caab85da864e70fece/qf_lib/common/utils/volatility/volatility_forecast.py#L148-L158",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=arch%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F194"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from arch import arch_model\n\nreturns = [0.4, -0.2, 0.7, -0.5, 0.1, 0.8, -0.3, 0.2, -0.6, 0.5]\nmodel = arch_model(returns, vol='GARCH', p=1, q=1)\nfitted = model.fit(disp='off')\nforecast = fitted.forecast(horizon=1)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://bashtage.github.io/arch/univariate/introduction.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "introduction.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "chronos-forecasting",
          "name": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/amazon-science/chronos-forecasting"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/chronos-forecasting"
            },
            {
              "label": "Docs",
              "href": "https://github.com/amazon-science/chronos-forecasting/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/amazon-science/chronos-forecasting/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/lee101/stock-prediction",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def predict_bp(\n    self,\n    context_df: pd.DataFrame,\n    symbol: str,\n    prediction_length: int,\n    context_length: int,\n) -> pd.DataFrame:\n    \"\"\"Make BP predictions using Chronos2Pipeline.predict_df.\"\"\"\n    self._load_model()\n\n    # Prepare context dataframe in the format Chronos2 expects\n    # Add symbol column for id\n    df = context_df.copy()\n    df[\"symbol\"] = symbol\n\n    # Trim to context_length\n    if len(df) > context_length:\n        df = df.iloc[-context_length:].copy()\n\n    # Call predict_df\n    predictions = self.model.predict_df(\n        df,\n        id_column=\"symbol\",\n        timestamp_column=\"timestamp\",\n        target=\"close_bps\",  # Predict the close_bps column\n        prediction_length=prediction_length,\n        quantile_levels=[0.1, 0.5, 0.9],\n    )\n\n    return predictions\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/lee101/stock-prediction/blob/acbc1d20cbbd5c465a466bb9d3e6ad7e5dc2ad50/hyperparam_chronos_bp.py#L107-L136",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=chronos-forecasting%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pandas as pd\nfrom chronos import Chronos2Pipeline\n\ncontext = pd.DataFrame({\n    'item_id': ['series'] * 64,\n    'timestamp': pd.date_range('2025-01-01', periods=64, freq='D'),\n    'target': list(range(64)),\n})\npipeline = Chronos2Pipeline.from_pretrained('amazon/chronos-2', device_map='cpu')\nforecast = pipeline.predict_df(context, prediction_length=2)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/amazon-science/chronos-forecasting/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tensorflow-probability",
          "name": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tensorflow/probability"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/tensorflow-probability"
            },
            {
              "label": "Docs",
              "href": "https://www.tensorflow.org/probability/api_docs/python/tfp/sts/forecast"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.tensorflow.org/probability/api_docs/python/tfp/sts/forecast",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/WillianFuks/tfcausalimpact",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def build_posterior_dist(\n    model: tfp.sts.StructuralTimeSeries,\n    observed_time_series: pd.DataFrame,\n    parameter_samples: Union[List[tfd.Distribution], Dict[str, tfd.Distribution]],\n    num_steps_forecast: int\n) -> tfd.Distribution:  # pragma: no cover\n    \"\"\"\n    Builds the distribution for post-intervention data given samples from the\n    posterior `P(z | y)`.\n\n    Args\n    ----\n      model: tfp.StructuralTimeSeries\n      observed_time_series: pd.DataFrame\n          Corresponds to the `y` value.\n      parameter_samples: Union[List[tfd.Distribution], Dict[str, tfd.Distribution]]\n          samples from the posterior for each state component in `model`.\n      num_steps_forecast: int\n          How many time steps to forecast into the future. These will be compared against\n          the real value of `y` to extract the estimation of impact.\n\n    Returns\n    -------\n      posterior_dist: tfd.Distribution\n    \"\"\"\n    return tfp.sts.forecast(\n        model=model,\n        observed_time_series=observed_time_series,\n        parameter_samples=parameter_samples,\n        num_steps_forecast=num_steps_forecast\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/WillianFuks/tfcausalimpact/blob/99bd5fb866acb352daf1b58c17d8f711d0e1a9ec/causalimpact/model.py#L421-L451",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=tensorflow-probability%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F231"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import tensorflow as tf\nimport tensorflow_probability as tfp\n\ny = tf.constant([1., 2., 1.5, 2.5, 2., 3., 2.5, 3.5])\nmodel = tfp.sts.LocalLevel(observed_time_series=y)\nsamples, _ = tfp.sts.fit_with_hmc(model, y)\nforecast = tfp.sts.forecast(\n    model, observed_time_series=y, parameter_samples=samples, num_steps_forecast=2\n)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.tensorflow.org/probability/api_docs/python/tfp/sts/forecast",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sktime",
          "name": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sktime/sktime"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/sktime"
            },
            {
              "label": "Docs",
              "href": "https://www.sktime.net/en/stable/examples/01_forecasting.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F256"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.sktime.net/en/stable/examples/01_forecasting.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F249"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from sktime.datasets import load_airline\nfrom sktime.forecasting.naive import NaiveForecaster\n\ny = load_airline()\nforecaster = NaiveForecaster(strategy='last')\nforecaster.fit(y)\nforecast = forecaster.predict(fh=[1, 2, 3])\nprint(forecast)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.sktime.net/en/stable/examples/01_forecasting.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sktime%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F249"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F254"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python time series forecasting library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#prophet",
          "label": [
            {
              "t": "text",
              "text": "Prophet"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits forecasts with nonlinear trends, seasonality, and holiday effects. "
        },
        {
          "t": "link",
          "href": "#statsforecast",
          "label": [
            {
              "t": "text",
              "text": "StatsForecast"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits ARIMA, ETS, and Theta models fitted across many series. "
        },
        {
          "t": "link",
          "href": "#chronos-forecasting",
          "label": [
            {
              "t": "text",
              "text": "Chronos"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits pretrained forecasting models. "
        },
        {
          "t": "link",
          "href": "#statsmodels",
          "label": [
            {
              "t": "text",
              "text": "statsmodels"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits classical statistical models."
        }
      ]
    },
    {
      "q": "What is StatsForecast?",
      "a": [
        {
          "t": "link",
          "href": "#statsforecast",
          "label": [
            {
              "t": "text",
              "text": "StatsForecast"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides statistical forecasting models including ARIMA, ETS, CES, and Theta. It fits each specified model to each input series."
        }
      ]
    },
    {
      "q": "What is Prophet?",
      "a": [
        {
          "t": "link",
          "href": "#prophet",
          "label": [
            {
              "t": "text",
              "text": "Prophet"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits time series forecasts with nonlinear trends, seasonality, and holiday effects. It expects a dataframe with ds timestamps and numerical y observations."
        }
      ]
    },
    {
      "q": "What is sktime?",
      "a": [
        {
          "t": "link",
          "href": "#sktime",
          "label": [
            {
              "t": "text",
              "text": "sktime"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a unified framework for machine learning with time series."
        }
      ]
    },
    {
      "q": "What is pmdarima?",
      "a": [
        {
          "t": "link",
          "href": "#pmdarima",
          "label": [
            {
              "t": "text",
              "text": "pmdarima"
            }
          ]
        },
        {
          "t": "text",
          "text": " selects ARIMA models automatically, as the Python equivalent of the forecast package's auto.arima."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, prophet",
      "display": "Prophet",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, prophet",
      "display": "4.1M",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, prophet",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, prophet",
      "display": "1.5.0, Oct 2026",
      "asOf": "2026-10-05"
    },
    "F5": {
      "label": "Package release date, prophet",
      "display": "Oct 2026",
      "asOf": "2026-10-05"
    },
    "F6": {
      "label": "Repository stars, prophet",
      "display": "20.5K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "External predictors, prophet",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Prediction intervals, prophet",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Backtesting, prophet",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, prophet",
      "display": "pip install prophet",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, prophet",
      "display": "Fits time-series forecasts with nonlinear trends, seasonality, and holiday effects.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, prophet",
      "display": "Models recurring holiday effects",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, prophet",
      "display": "Pass event dates through holidays to include them in the forecast.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, prophet",
      "display": "Backtests at historical cutoffs",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, prophet",
      "display": "Use cross_validation to compare earlier forecasts with observed outcomes.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, prophet",
      "display": "Regressors need future values",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, prophet",
      "display": "Supply predictor values for history and the complete forecast horizon.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, prophet",
      "display": "Intervals assume recurring trend changes",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, prophet",
      "display": "Validate interval coverage against held-out history before relying on it.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, prophet",
      "display": "# Python\nimport pandas as pd\nfrom prophet import Prophet\n\n# Python\ndf = pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')\ndf.head()\n\n# Python\nm = Prophet()\nm.fit(df)\n\n# Python\nfuture = m.make_future_dataframe(periods=365)\nfuture.tail()\n\n# Python\nforecast = m.predict(future)\nforecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, prophet",
      "display": "def _prophet_fit_and_predict(  # pylint: disable=too-many-arguments\n    df: DataFrame,\n    confidence_interval: float,\n    yearly_seasonality: Union[bool, str, int],\n    weekly_seasonality: Union[bool, str, int],\n    daily_seasonality: Union[bool, str, int],\n    periods: int,\n    freq: str,\n) -> DataFrame:\n    \"\"\"\n    Fit a prophet model and return a DataFrame with predicted results.\n    \"\"\"\n    try:\n        # `prophet` complains about `plotly` not being installed\n        with suppress_logging(\"prophet.plot\"):\n            # pylint: disable=import-outside-toplevel\n            from prophet import Prophet\n\n        prophet_logger = logging.getLogger(\"prophet.plot\")\n        prophet_logger.setLevel(logging.CRITICAL)\n        prophet_logger.setLevel(logging.NOTSET)\n    except ModuleNotFoundError as ex:\n        raise InvalidPostProcessingError(_(\"`prophet` package not installed\")) from ex\n    model = Prophet(\n        interval_width=confidence_interval,\n        yearly_seasonality=yearly_seasonality,\n        weekly_seasonality=weekly_seasonality,\n        daily_seasonality=daily_seasonality,\n    )\n    if df[\"ds\"].dt.tz:\n        df[\"ds\"] = df[\"ds\"].dt.tz_convert(None)\n    try:\n        model.fit(df)\n        future = model.make_future_dataframe(periods=periods, freq=freq)\n        forecast = model.predict(future)[[\"ds\", \"yhat\", \"yhat_lower\", \"yhat_upper\"]]\n    except Exception as ex:  # noqa: BLE001\n        raise InvalidPostProcessingError(\n            _(\n                \"Unable to generate forecast: %(error)s\",\n                error=str(ex),\n            )\n        ) from ex\n    return forecast.join(df.set_index(\"ds\"), on=\"ds\").set_index([\"ds\"])\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, prophet",
      "display": "prophet.py · _prophet_fit_and_predict()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, prophet",
      "display": "apache/superset",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, apache/superset",
      "display": "75.5K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, apache/superset",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Library name, statsforecast",
      "display": "StatsForecast",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, statsforecast",
      "display": "1.8M",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "License, statsforecast",
      "display": "Apache Software License 2.0",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, statsforecast",
      "display": "2.1.1, Jul 2026",
      "asOf": "2026-07-16"
    },
    "F30": {
      "label": "Package release date, statsforecast",
      "display": "Jul 2026",
      "asOf": "2026-07-16"
    },
    "F31": {
      "label": "Repository stars, statsforecast",
      "display": "5.0K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Multiple series, statsforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "External predictors, statsforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Prediction intervals, statsforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Backtesting, statsforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, statsforecast",
      "display": "pip install statsforecast",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, statsforecast",
      "display": "Provides statistical forecasting models including ARIMA, ETS, CES, and Theta.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, statsforecast",
      "display": "Fits models across many series",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, statsforecast",
      "display": "Supply series identifiers, timestamps, and targets in a shared input frame.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, statsforecast",
      "display": "Forecasts without retaining fitted models",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, statsforecast",
      "display": "Use forecast for predictions that do not need reusable fitted state.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, statsforecast",
      "display": "External predictors need future values",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, statsforecast",
      "display": "Forecast those predictors separately or remove them from the model.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Quickstart, statsforecast",
      "display": "from statsforecast import StatsForecast\nfrom statsforecast.models import AutoARIMA\nfrom statsforecast.utils import AirPassengersDF\n\ndf = AirPassengersDF\nsf = StatsForecast(\n    models=[AutoARIMA(season_length=12)],\n    freq='ME',\n)\nsf.fit(df)\nsf.predict(h=12, level=[95])\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function, statsforecast",
      "display": "def _predict_with_local_model(\n    self,\n    time_series: pd.Series,\n    local_model_args: dict,\n) -> pd.DataFrame:\n    levels, quantile_to_key = self._get_confidence_levels()\n\n    forecast = self._get_local_model(local_model_args).forecast(\n        h=self.prediction_length, y=time_series.values.ravel(), level=levels\n    )\n    predictions = {\"mean\": forecast[\"mean\"]}\n    for q, key in quantile_to_key.items():\n        predictions[q] = forecast[key]\n    return pd.DataFrame(predictions)\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function reference, statsforecast",
      "display": "statsforecast.py · _predict_with_local_model()",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project repository, statsforecast",
      "display": "autogluon/autogluon",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project stars, autogluon/autogluon",
      "display": "10.8K",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project push date, autogluon/autogluon",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F50": {
      "label": "Library name, neuralforecast",
      "display": "NeuralForecast",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Monthly downloads, neuralforecast",
      "display": "256.1K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "License, neuralforecast",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Package release, neuralforecast",
      "display": "3.3.1, Nov 2026",
      "asOf": "2026-11-10"
    },
    "F54": {
      "label": "Package release date, neuralforecast",
      "display": "Nov 2026",
      "asOf": "2026-11-10"
    },
    "F55": {
      "label": "Repository stars, neuralforecast",
      "display": "4.3K",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Multiple series, neuralforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "External predictors, neuralforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Prediction intervals, neuralforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Backtesting, neuralforecast",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, neuralforecast",
      "display": "pip install neuralforecast",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, neuralforecast",
      "display": "Provides a collection of neural forecasting models.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, neuralforecast",
      "display": "Learns across related time series",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, neuralforecast",
      "display": "Train shared models on a collection of identified series.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, neuralforecast",
      "display": "Separates fixed and time-varying predictors",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, neuralforecast",
      "display": "Pass fixed series features in static_df and temporal predictors with their timestamps.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, neuralforecast",
      "display": "Needs evenly spaced timestamps",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, neuralforecast",
      "display": "Resample irregular observations before fitting the model.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, neuralforecast",
      "display": "Future inputs must cover forecasts",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, neuralforecast",
      "display": "Supply future predictor values for every forecast step.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, neuralforecast",
      "display": "from neuralforecast import NeuralForecast\nfrom neuralforecast.models import NBEATS\nfrom neuralforecast.utils import AirPassengersDF\n\nnf = NeuralForecast(\n    models = [NBEATS(input_size=24, h=12, max_steps=100)],\n    freq = 'ME'\n)\n\nnf.fit(df=AirPassengersDF)\nnf.predict()\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Library name, darts",
      "display": "Darts",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Monthly downloads, darts",
      "display": "190.9K",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "License, darts",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Package release, darts",
      "display": "0.48.1, Oct 2026",
      "asOf": "2026-10-16"
    },
    "F75": {
      "label": "Package release date, darts",
      "display": "Oct 2026",
      "asOf": "2026-10-16"
    },
    "F76": {
      "label": "Repository stars, darts",
      "display": "9.6K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Multiple series, darts",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "External predictors, darts",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Prediction intervals, darts",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Backtesting, darts",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Install, darts",
      "display": "pip install darts",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "What it does, darts",
      "display": "Uses a shared fit and predict interface for statistical and neural forecasting models.",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths lead, darts",
      "display": "Shares one interface across models",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths, darts",
      "display": "Compare different forecasting models through fit and predict.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths lead, darts",
      "display": "Backtests with moving time windows",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths, darts",
      "display": "Simulate historical forecasts before selecting a model.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations lead, darts",
      "display": "Predictor support varies by model",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations, darts",
      "display": "Choose a model that accepts the available past or future inputs.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations lead, darts",
      "display": "Predictors need model-specific windows",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations, darts",
      "display": "Provide predictor values across the model’s required history and future windows.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Quickstart, darts",
      "display": "import pandas as pd\nfrom darts import TimeSeries\n\n# Read a pandas DataFrame\ndf = pd.read_csv(\"AirPassengers.csv\", delimiter=\",\")\n\n# Create a TimeSeries, specifying the time and value columns\nseries = TimeSeries.from_dataframe(df, \"Month\", \"#Passengers\")\n\n# Set aside the last 36 months as a validation series\ntrain, val = series[:-36], series[-36:]\n\nfrom darts.models import ExponentialSmoothing\n\nmodel = ExponentialSmoothing()\nmodel.fit(train)\nprediction = model.predict(len(val), num_samples=1000)\n\nimport matplotlib.pyplot as plt\n\nseries.plot()\nprediction.plot(label=\"forecast\", low_quantile=0.05, high_quantile=0.95)\nplt.legend()\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Project function, darts",
      "display": "@step(output_materializers={\"trained_model\": TFTModelMaterializer})\ndef train_model(\n    train_series: TimeSeries,\n    input_chunk_length: int = 30,\n    output_chunk_length: int = 7,\n    hidden_size: int = 32,\n    lstm_layers: int = 1,\n    num_attention_heads: int = 2,\n    dropout: float = 0.1,\n    batch_size: int = 16,\n    n_epochs: int = 20,\n    random_state: int = 42,\n    add_relative_index: bool = True,\n    enable_progress_bar: bool = False,\n    enable_model_summary: bool = False,\n    learning_rate: float = 1e-3,\n    weight_decay: float = 1e-5,\n) -> Annotated[TFTModel, \"trained_model\"]:\n    \"\"\"Train a TFT forecasting model.\n\n    Args:\n        train_series: Training time series\n        input_chunk_length: Number of time steps to use as input\n        output_chunk_length: Number of time steps to predict\n        hidden_size: Size of hidden layers\n        lstm_layers: Number of LSTM layers\n        num_attention_heads: Number of attention heads\n        dropout: Dropout rate\n        batch_size: Training batch size\n        n_epochs: Number of training epochs\n        random_state: Random seed\n        add_relative_index: Whether to add relative index\n        enable_progress_bar: Whether to show progress bar\n        enable_model_summary: Whether to show model summary\n        learning_rate: Learning rate for optimizer\n        weight_decay: Weight decay for regularization\n\n    Returns:\n        Trained TFT model\n    \"\"\"\n    # Build TFT model parameters\n    model_params = {\n        \"input_chunk_length\": input_chunk_length,\n        \"output_chunk_length\": output_chunk_length,\n        \"hidden_size\": hidden_size,\n        \"lstm_layers\": lstm_layers,\n        \"num_attention_heads\": num_attention_heads,\n        \"dropout\": dropout,\n        \"batch_size\": batch_size,\n        \"n_epochs\": n_epochs,\n        \"random_state\": random_state,\n        \"add_relative_index\": add_relative_index,\n        \"optimizer_kwargs\": {\n            \"lr\": learning_rate,\n            \"weight_decay\": weight_decay,\n        },\n        \"pl_trainer_kwargs\": {\n            \"enable_progress_bar\": enable_progress_bar,\n            \"enable_model_summary\": enable_model_summary,\n            \"precision\": \"32-true\",  # Use 32-bit precision for better hardware compatibility\n            \"gradient_clip_val\": 1.0,  # Standard gradient clipping\n            \"gradient_clip_algorithm\": \"norm\",  # Clip by norm\n            \"detect_anomaly\": True,  # Detect NaN/inf in loss\n            \"max_epochs\": n_epochs,\n            \"check_val_every_n_epoch\": 1,  # Validate every epoch\n            \"accelerator\": \"cpu\",  # Force CPU to avoid MPS issues\n        },\n    }\n\n    logger.info(f\"Training TFT model with params: {model_params}\")\n\n    # Initialize TFT model\n    model = TFTModel(**model_params)\n\n    # Initialize model weights with Xavier/Glorot initialization for stability\n    def init_weights(m):\n        if isinstance(m, torch.nn.Linear):\n            torch.nn.init.xavier_uniform_(m.weight)\n            if m.bias is not None:\n                torch.nn.init.zeros_(m.bias)\n        elif isinstance(m, torch.nn.LSTM):\n            for name, param in m.named_parameters():\n                if \"weight\" in name:\n                    torch.nn.init.xavier_uniform_(param)\n                elif \"bias\" in name:\n                    torch.nn.init.zeros_(param)\n\n    # Apply weight initialization\n    if hasattr(model, \"model\") and model.model is not None:\n        model.model.apply(init_weights)\n        logger.info(\"Applied Xavier weight initialization to model\")\n\n    logger.info(f\"Starting TFT training with {len(train_series)} data points\")\n\n    # Train the TFT model\n    # Get basic stats from the pandas dataframe\n    df_stats = train_series.pd_dataframe().iloc[:, 0]\n    logger.info(\n        f\"Train series stats: min={df_stats.min():.2f}, max={df_stats.max():.2f}, mean={df_stats.mean():.2f}\"\n    )\n\n    model.fit(train_series)\n    logger.info(\"TFT model training completed successfully\")\n\n    # Test prediction to verify model works\n    test_pred = model.predict(n=1, series=train_series)\n    logger.info(f\"Test prediction: {test_pred.pd_dataframe().iloc[0, 0]:.2f}\")\n\n    return model\n",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project function reference, darts",
      "display": "train.py · train_model()",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project repository, darts",
      "display": "zenml-io/zenml-projects",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project stars, zenml-io/zenml-projects",
      "display": "325",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project push date, zenml-io/zenml-projects",
      "display": "May 2026",
      "asOf": "2026-05-15"
    },
    "F97": {
      "label": "Developer need",
      "display": "Modeling recurring holidays explicitly",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose prophet",
      "display": "holiday-date effects",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "modeling recurring holidays explicitly",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider neuralforecast",
      "display": "related series should train a shared neural model",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Forecasting panels without keeping fitted state",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose statsforecast",
      "display": "one-shot statistical forecast generation",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "forecasting panels without keeping fitted state",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "When to consider prophet",
      "display": "explicit holiday effects lead the model design",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Learning across related time series",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose neuralforecast",
      "display": "shared global neural models",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "learning across related time series",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider statsforecast",
      "display": "per-series statistical models are required",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Comparing models with historical backtests",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose darts",
      "display": "moving-window forecast simulation",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "comparing models with historical backtests",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider prophet",
      "display": "recurring event effects are the main requirement",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "Python time series forecasting libraries let data developers build forecasts from time-series observations.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: What data does Prophet expect?",
      "display": "Provide a dataframe containing ds timestamps and numerical y observations.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Can Prophet use a predictor unknown in the future?",
      "display": "An extra regressor needs known or separately forecast values for future dates.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Do Prophet intervals guarantee future coverage?",
      "display": "The intervals assume future trend changes match the historical frequency and magnitude; check coverage on held-out history.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does StatsForecast forecast keep reusable fitted models?",
      "display": "forecast discards model objects; use fit and predict when fitted state must be reused.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does a StatsForecast model learn across all series?",
      "display": "StatsForecast fits each specified model to each input series.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: What if StatsForecast future regressors are missing?",
      "display": "Forecast the missing regressors separately or remove them before generating the target forecast.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Can NeuralForecast use irregular timestamps directly?",
      "display": "NeuralForecast requires evenly spaced consecutive observations.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can historical features be passed as future predictors?",
      "display": "Labeling historical-only features as future variables causes data leakage.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How are NeuralForecast prediction intervals added?",
      "display": "Its conformal prediction workflow uses cross-validation errors from a model trained with a point loss.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Do all Darts models accept external predictors?",
      "display": "Predictor support depends on the model; unsupported predictor inputs raise an error.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Must Darts predictor data be repeated at prediction time?",
      "display": "Predictors used for fitting must also be supplied at prediction time.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can every Darts forecast be written directly as CSV?",
      "display": "TimeSeries.to_csv writes deterministic series; the CSV method is not a direct probabilistic-sample export.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, statsmodels",
      "display": "statsmodels",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, statsmodels",
      "display": "40.9M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, statsmodels",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, statsmodels",
      "display": "0.15.0",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, statsmodels",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, statsmodels",
      "display": "pip install statsmodels",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, statsmodels",
      "display": "from statsmodels.tsa.arima.model import ARIMA\n\nmodel = ARIMA([10, 12, 11, 13, 12, 14, 13, 15], order=(1, 0, 0))\nfitted = model.fit()\nforecast = fitted.forecast(steps=2)\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Official description, statsmodels",
      "display": "Runs statistical computations and models.",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart source file, statsmodels",
      "display": "generated/statsmodels.tsa.arima.model.ARIMA.html",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Repository stars, statsmodels",
      "display": "11.8K",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Pretrained zero-shot models, statsmodels",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Multiple series per call, statsmodels",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Forecasting interface and role, statsmodels",
      "display": "Fit ARIMA/SARIMAX-family models with specified orders and optional regressors; the wider package includes other statistical estimators.",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Forecasting prerequisites, statsmodels",
      "display": "[\"Supported Python/numerical dependencies and enough valid ordered univariate observations for the chosen model. Tiny inline data only demonstrates interface usage; convergence, accuracy, and practical sample size are not asserted.\"]",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project function, statsmodels",
      "display": "def _fit(\n    self,\n    series: TimeSeries,\n    future_covariates: TimeSeries | None = None,\n    verbose: bool | None = None,\n):\n    super()._fit(series, future_covariates, verbose=verbose)\n\n    self._assert_univariate(series)\n\n    # storing to restore the statsmodels model results object\n    self.training_historic_future_covariates = future_covariates\n\n    m = staARIMA(\n        series.values(copy=False),\n        exog=future_covariates.values(copy=False) if future_covariates else None,\n        order=self.order,\n        seasonal_order=self.seasonal_order,\n        trend=self.trend,\n    )\n    self.model = m.fit()\n\n    return self\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project source file, statsmodels",
      "display": "darts/models/forecasting/arima.py",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project full_name, statsmodels",
      "display": "unit8co/darts",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project stargazers_count, statsmodels",
      "display": "9.6K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Library name, prophet",
      "display": "Prophet",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Monthly downloads, prophet",
      "display": "4.1M",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "License, prophet",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release, prophet",
      "display": "1.5.0",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release date, prophet",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Install, prophet",
      "display": "pip install prophet",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart, prophet",
      "display": "import pandas as pd\nfrom prophet import Prophet\n\ndf = pd.DataFrame({\n    'ds': pd.date_range('2025-01-01', periods=30, freq='D'),\n    'y': list(range(30)),\n})\nmodel = Prophet()\nmodel.fit(df)\nfuture = model.make_future_dataframe(periods=2)\nforecast = model.predict(future)\n",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Repository stars, prophet",
      "display": "20.5K",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Pretrained zero-shot models, prophet",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Multiple series per call, prophet",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Forecasting interface and role, prophet",
      "display": "Fit an additive forecasting model with calendar/seasonal effects and supplied holidays/regressors.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Forecasting prerequisites, prophet",
      "display": "[\"Supported Python/Stan backend and correctly typed ds/y observations. Tiny inline observations illustrate schema only. Fit, future-frame, and prediction are required steps; no training/accuracy result is claimed.\"]",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, prophet",
      "display": "def _prophet_fit_and_predict(  # pylint: disable=too-many-arguments\n    df: DataFrame,\n    confidence_interval: float,\n    yearly_seasonality: Union[bool, str, int],\n    weekly_seasonality: Union[bool, str, int],\n    daily_seasonality: Union[bool, str, int],\n    periods: int,\n    freq: str,\n) -> DataFrame:\n    \"\"\"\n    Fit a prophet model and return a DataFrame with predicted results.\n    \"\"\"\n    try:\n        # `prophet` complains about `plotly` not being installed\n        with suppress_logging(\"prophet.plot\"):\n            # pylint: disable=import-outside-toplevel\n            from prophet import Prophet\n\n        prophet_logger = logging.getLogger(\"prophet.plot\")\n        prophet_logger.setLevel(logging.CRITICAL)\n        prophet_logger.setLevel(logging.NOTSET)\n    except ModuleNotFoundError as ex:\n        raise InvalidPostProcessingError(_(\"`prophet` package not installed\")) from ex\n    model = Prophet(\n        interval_width=confidence_interval,\n        yearly_seasonality=yearly_seasonality,\n        weekly_seasonality=weekly_seasonality,\n        daily_seasonality=daily_seasonality,\n    )\n    if df[\"ds\"].dt.tz:\n        df[\"ds\"] = df[\"ds\"].dt.tz_convert(None)\n    try:\n        model.fit(df)\n        future = model.make_future_dataframe(periods=periods, freq=freq)\n        forecast = model.predict(future)[[\"ds\", \"yhat\", \"yhat_lower\", \"yhat_upper\"]]\n    except Exception as ex:  # noqa: BLE001\n        raise InvalidPostProcessingError(\n            _(\n                \"Unable to generate forecast: %(error)s\",\n                error=str(ex),\n            )\n        ) from ex\n    return forecast.join(df.set_index(\"ds\"), on=\"ds\").set_index([\"ds\"])\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, prophet",
      "display": "superset/utils/pandas_postprocessing/prophet.py",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, prophet",
      "display": "apache/superset",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, prophet",
      "display": "75.5K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, statsforecast",
      "display": "StatsForecast",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, statsforecast",
      "display": "1.9M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, statsforecast",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, statsforecast",
      "display": "2.1.1",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, statsforecast",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, statsforecast",
      "display": "pip install statsforecast",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, statsforecast",
      "display": "from statsforecast import StatsForecast\nfrom statsforecast.models import AutoARIMA\nfrom statsforecast.utils import AirPassengersDF\n\ndf = AirPassengersDF\nsf = StatsForecast(\n    models=[AutoARIMA(season_length=12)],\n    freq='ME',\n)\nsf.fit(df)\nsf.predict(h=12, level=[95])\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Repository stars, statsforecast",
      "display": "5.0K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Pretrained zero-shot models, statsforecast",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Multiple series per call, statsforecast",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Forecasting interface and role, statsforecast",
      "display": "Fit and forecast statistical models across uniquely identified series; model parameters and support vary by estimator.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Forecasting prerequisites, statsforecast",
      "display": "[\"Official minimal example uses bundled AirPassengersDF and AutoARIMA with monthly-end ME frequency and season_length12. fit then predict horizon12 with95% intervals. No live time-series feed required.\"]",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project function, statsforecast",
      "display": "def _fit(\n    self,\n    series: TimeSeries,\n    future_covariates: TimeSeries | None = None,\n    verbose: bool | None = None,\n):\n    super()._fit(series, future_covariates, verbose=verbose)\n    self._assert_univariate(series)\n    series = self.training_series\n\n    if self._supports_native_future_covariates or future_covariates is None:\n        target = series.values(copy=False).flatten()\n    else:\n        # perform OLS and get in-sample residuals\n        self._linreg = LinearRegressionModel(\n            lags_future_covariates=[0],\n            use_static_covariates=False,\n        )\n        self._linreg.fit(\n            series, future_covariates=future_covariates, verbose=verbose\n        )\n        target = self._get_target_residuals(series, future_covariates)\n\n    self.model.fit(\n        target,\n        X=(\n            future_covariates.values(copy=False)\n            if future_covariates is not None\n            and self._supports_native_future_covariates\n            else None\n        ),\n    )\n    return self\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project source file, statsforecast",
      "display": "darts/models/forecasting/sf_model.py",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project full_name, statsforecast",
      "display": "unit8co/darts",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project stargazers_count, statsforecast",
      "display": "9.6K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Library name, pmdarima",
      "display": "pmdarima",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Monthly downloads, pmdarima",
      "display": "1.7M",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "License, pmdarima",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Package release, pmdarima",
      "display": "2.1.1",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release date, pmdarima",
      "display": "Nov 2025",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Install, pmdarima",
      "display": "pip install pmdarima",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart, pmdarima",
      "display": "import pmdarima as pm\n\ny = pm.datasets.load_wineind()\nmodel = pm.auto_arima(y, seasonal=True, m=12)\nforecast = model.predict(n_periods=2)\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Official description, pmdarima",
      "display": "Selects ARIMA models automatically, like the forecast package's auto.arima.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Quickstart source file, pmdarima",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Repository stars, pmdarima",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Pretrained zero-shot models, pmdarima",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Multiple series per call, pmdarima",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Forecasting interface and role, pmdarima",
      "display": "Select/follow an ARIMA model and request future periods for one univariate series.",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Forecasting prerequisites, pmdarima",
      "display": "[\"Supported Python/compiled numerical dependencies, valid regularly spaced univariate observations, and meaningful season length. Bundled wine data illustrates the API; search may take compute. No model fit was run.\"]",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project function, pmdarima",
      "display": "def _fit(self, y, X, fh):\n    \"\"\"Fit to training data.\n\n    Parameters\n    ----------\n    y : pd.Series\n        Target time series to which to fit the forecaster.\n    fh : int, list, np.array or ForecastingHorizon, optional (default=None)\n        The forecasters horizon with the steps ahead to predict.\n    X : pd.DataFrame, optional (default=None)\n        Exogenous variables are ignored\n\n    Returns\n    -------\n    self : returns an instance of self.\n    \"\"\"\n    self._cur_y = y\n    self._cur_X = X\n    if X is not None:\n        X = X.loc[y.index]\n    # statsmodels >= 0.15 raises on out-of-sample prediction if the index\n    # is not supported, e.g., an integer index not starting at 0,\n    # so we pass a RangeIndex in this case. Predictions are re-indexed in _predict.\n    y_fit = y\n    if pd.api.types.is_integer_dtype(y.index) and not isinstance(\n        y.index, pd.RangeIndex\n    ):\n        y_fit = y.reset_index(drop=True)\n        if X is not None:\n            X = X.reset_index(drop=True)\n    self._forecaster = self._instantiate_model()\n    self._forecaster.fit(y_fit, X=X)\n    self._y_name = y.name\n    return self\n",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project source file, pmdarima",
      "display": "sktime/forecasting/base/adapters/_pmdarima.py",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project full_name, pmdarima",
      "display": "sktime/sktime",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project stargazers_count, pmdarima",
      "display": "10.1K",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Library name, arch",
      "display": "ARCH",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Monthly downloads, arch",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "License, arch",
      "display": "NCSA",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Package release, arch",
      "display": "9.0.0",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release date, arch",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Install, arch",
      "display": "pip install arch",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart, arch",
      "display": "from arch import arch_model\n\nreturns = [0.4, -0.2, 0.7, -0.5, 0.1, 0.8, -0.3, 0.2, -0.6, 0.5]\nmodel = arch_model(returns, vol='GARCH', p=1, q=1)\nfitted = model.fit(disp='off')\nforecast = fitted.forecast(horizon=1)\n",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Official description, arch",
      "display": "Implements ARCH models in Python.",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart source file, arch",
      "display": "univariate/introduction.html",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Repository stars, arch",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Pretrained zero-shot models, arch",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Multiple series per call, arch",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Forecasting interface and role, arch",
      "display": "Fit return/conditional volatility models; horizon, process, and method determine supported variance forecasting.",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Forecasting prerequisites, arch",
      "display": "[\"Supported Python/numerical dependencies and return observations in an appropriate scale. Toy data illustrates syntax, not a fitted-quality claim. Forecast analytic/multistep support depends on the chosen volatility process.\"]",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Example horizon and process boundary, arch",
      "display": "The original QF-Lib function uses unpadded h.N lookup: supported selected example horizon1–9 and a volatility process exposing power (e.g. GARCH). It is not a universal wrapper for every horizon/process.",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project function, arch",
      "display": "def _calculate_single_value(self, returns: LogReturnsSeries) -> float:\n    am = self._get_ARCH_model(returns, self.vol_process)\n    res = am.fit(disp='off', show_warning=False)  # options={'maxiter': 10000, 'ftol': 1e-2})\n    forecasts = res.forecast(horizon=self.horizon, method=self.method)\n    column_str = 'h.{}'.format(self.horizon)  # take value for the selected horizon\n    forecasts_series = forecasts.variance[column_str]\n    # take the last value (most recent forecast)\n    forecasted_value = forecasts_series.iloc[-1]\n    # convert to volatility (if power=2, forecasted_value corresponds to variance, etc.)\n    forecasted_vol = forecasted_value ** (1 / float(am.volatility.power))\n    return forecasted_vol\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project source file, arch",
      "display": "qf_lib/common/utils/volatility/volatility_forecast.py",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project full_name, arch",
      "display": "quarkfin/qf-lib",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project stargazers_count, arch",
      "display": "978",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Library name, chronos-forecasting",
      "display": "Chronos",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Monthly downloads, chronos-forecasting",
      "display": "969.3K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "License, chronos-forecasting",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release, chronos-forecasting",
      "display": "2.3.2",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release date, chronos-forecasting",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Install, chronos-forecasting",
      "display": "pip install chronos-forecasting",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart, chronos-forecasting",
      "display": "import pandas as pd\nfrom chronos import Chronos2Pipeline\n\ncontext = pd.DataFrame({\n    'item_id': ['series'] * 64,\n    'timestamp': pd.date_range('2025-01-01', periods=64, freq='D'),\n    'target': list(range(64)),\n})\npipeline = Chronos2Pipeline.from_pretrained('amazon/chronos-2', device_map='cpu')\nforecast = pipeline.predict_df(context, prediction_length=2)\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Official description, chronos-forecasting",
      "display": "Provides pretrained models for time series forecasting.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart source file, chronos-forecasting",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Repository stars, chronos-forecasting",
      "display": "6.3K",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Pretrained zero-shot models, chronos-forecasting",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Multiple series per call, chronos-forecasting",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Forecasting interface and role, chronos-forecasting",
      "display": "Use pretrained Chronos-family models for zero-shot forecasts; current Chronos2 supports DataFrame and covariate workflows.",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Forecasting prerequisites, chronos-forecasting",
      "display": "[\"Supported Python/Torch/Pandas and compatible model assets. Initial model load may download weights; CPU resources/model access and sufficiently long correctly indexed input are prerequisites. Inline data is only a schema example.\"]",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project function, chronos-forecasting",
      "display": "def predict_bp(\n    self,\n    context_df: pd.DataFrame,\n    symbol: str,\n    prediction_length: int,\n    context_length: int,\n) -> pd.DataFrame:\n    \"\"\"Make BP predictions using Chronos2Pipeline.predict_df.\"\"\"\n    self._load_model()\n\n    # Prepare context dataframe in the format Chronos2 expects\n    # Add symbol column for id\n    df = context_df.copy()\n    df[\"symbol\"] = symbol\n\n    # Trim to context_length\n    if len(df) > context_length:\n        df = df.iloc[-context_length:].copy()\n\n    # Call predict_df\n    predictions = self.model.predict_df(\n        df,\n        id_column=\"symbol\",\n        timestamp_column=\"timestamp\",\n        target=\"close_bps\",  # Predict the close_bps column\n        prediction_length=prediction_length,\n        quantile_levels=[0.1, 0.5, 0.9],\n    )\n\n    return predictions\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project source file, chronos-forecasting",
      "display": "hyperparam_chronos_bp.py",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project full_name, chronos-forecasting",
      "display": "lee101/stock-prediction",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project stargazers_count, chronos-forecasting",
      "display": "123",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Library name, tensorflow-probability",
      "display": "TensorFlow Probability",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Monthly downloads, tensorflow-probability",
      "display": "894.9K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "License, tensorflow-probability",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Package release, tensorflow-probability",
      "display": "0.25.0",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Package release date, tensorflow-probability",
      "display": "Nov 2024",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Install, tensorflow-probability",
      "display": "pip install tensorflow-probability",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Quickstart, tensorflow-probability",
      "display": "import tensorflow as tf\nimport tensorflow_probability as tfp\n\ny = tf.constant([1., 2., 1.5, 2.5, 2., 3., 2.5, 3.5])\nmodel = tfp.sts.LocalLevel(observed_time_series=y)\nsamples, _ = tfp.sts.fit_with_hmc(model, y)\nforecast = tfp.sts.forecast(\n    model, observed_time_series=y, parameter_samples=samples, num_steps_forecast=2\n)\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Official description, tensorflow-probability",
      "display": "Runs probabilistic modeling and statistical inference in TensorFlow.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Quickstart source file, tensorflow-probability",
      "display": "api_docs/python/tfp/sts/forecast",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Repository stars, tensorflow-probability",
      "display": "4.4K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Pretrained zero-shot models, tensorflow-probability",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Multiple series per call, tensorflow-probability",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Forecasting interface and role, tensorflow-probability",
      "display": "Build structural time-series models, infer parameter posteriors, and return distributions over future observations.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Forecasting prerequisites, tensorflow-probability",
      "display": "[\"TFP0.25 requires a compatible separately installed TensorFlow/tf-keras stack (own README records tested versions), not a default latest-TensorFlow compatibility claim. This first forecast needs posterior fitting; HMC defaults can take substantial compute. Inline data is interface-only, not a convergence/uncertainty-quality claim.\"]",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project function, tensorflow-probability",
      "display": "def build_posterior_dist(\n    model: tfp.sts.StructuralTimeSeries,\n    observed_time_series: pd.DataFrame,\n    parameter_samples: Union[List[tfd.Distribution], Dict[str, tfd.Distribution]],\n    num_steps_forecast: int\n) -> tfd.Distribution:  # pragma: no cover\n    \"\"\"\n    Builds the distribution for post-intervention data given samples from the\n    posterior `P(z | y)`.\n\n    Args\n    ----\n      model: tfp.StructuralTimeSeries\n      observed_time_series: pd.DataFrame\n          Corresponds to the `y` value.\n      parameter_samples: Union[List[tfd.Distribution], Dict[str, tfd.Distribution]]\n          samples from the posterior for each state component in `model`.\n      num_steps_forecast: int\n          How many time steps to forecast into the future. These will be compared against\n          the real value of `y` to extract the estimation of impact.\n\n    Returns\n    -------\n      posterior_dist: tfd.Distribution\n    \"\"\"\n    return tfp.sts.forecast(\n        model=model,\n        observed_time_series=observed_time_series,\n        parameter_samples=parameter_samples,\n        num_steps_forecast=num_steps_forecast\n    )\n",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project source file, tensorflow-probability",
      "display": "causalimpact/model.py",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Project full_name, tensorflow-probability",
      "display": "WillianFuks/tfcausalimpact",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Project stargazers_count, tensorflow-probability",
      "display": "682",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Library name, sktime",
      "display": "sktime",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Monthly downloads, sktime",
      "display": "678.5K",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "License, sktime",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Package release, sktime",
      "display": "1.3.0",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Package release date, sktime",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Install, sktime",
      "display": "pip install sktime",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Quickstart, sktime",
      "display": "from sktime.datasets import load_airline\nfrom sktime.forecasting.naive import NaiveForecaster\n\ny = load_airline()\nforecaster = NaiveForecaster(strategy='last')\nforecaster.fit(y)\nforecast = forecaster.predict(fh=[1, 2, 3])\nprint(forecast)\n",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Official description, sktime",
      "display": "Provides a unified framework for machine learning with time series.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Quickstart source file, sktime",
      "display": "examples/01_forecasting.html",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Repository stars, sktime",
      "display": "10.1K",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Pretrained zero-shot models, sktime",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Multiple series per call, sktime",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Forecasting interface and role, sktime",
      "display": "Compose a forecasting interface, temporal evaluation, and optional estimator adapters; forecasts and capabilities depend on the selected estimator.",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Forecasting prerequisites, sktime",
      "display": "Bundled univariate airline fixture with a regular monthly index. Relative integer forecasting horizon means the next three periods; this simple baseline is not a model-selection benchmark.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python time series forecasting libraries Prophet StatsForecast NeuralForecast Darts code examples horizons regressors backtesting",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
