homework-jianmu/docs/zh/06-advanced/06-TDgpt/05-anomaly-detection/04-machine-learning.md

777 B
Raw Blame History

title sidebar_label
机器学习算法 机器学习算法

Autoencoder[1]: TDgpt 内置使用自编码器Autoencoder的异常检测算法对周期性的时间序列数据具有较好的检测结果。使用该模型需要针对输入时序数据进行预训练同时将训练完成的模型保存在到服务目录 ad_autoencoder 中,然后在 SQL 语句中指定调用该算法模型即可使用。

--- 在 options 中增加 model 的名称ad_autoencoder_foo 针对 foo 数据集(表)训练的采用自编码器的异常检测模型进行异常检测
SELECT COUNT(*), _WSTART
FROM foo
ANOMALY_WINDOW(col1, 'algo=encoder, model=ad_autoencoder_foo');

参考文献

  1. https://en.wikipedia.org/wiki/Autoencoder