历史异常检测
添加外生变量
要使用外生变量检测异常,请加载一个以这些外生特征作为列的数据集,并使用相同的 detect_anomalies
方法。
👍 使用 Azure AI 端点
要使用 Azure AI 端点,请设置
base_url
参数
nixtla_client = NixtlaClient(base_url="you azure ai endpoint", api_key="your api_key")
📘 Azure AI 中可用的模型
如果您使用 Azure AI 端点,请设置
model="azureai"
nixtla_client.detect_anomalies(..., model="azureai")
对于公共 API,支持两种模型:
timegpt-1
和timegpt-1-long-horizon
。默认使用
timegpt-1
。有关使用timegpt-1-long-horizon
的详细信息,请参阅本教程。
阅读我们关于异常检测的详细指南以获取更多信息。