本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
异常值检测概览
异常值检测是一种数据挖掘技术,可用于识别特定数据集中的数据偏差。例如,如果给定产品的退货率远高于该产品的基准值,则可能表示产品存在缺陷或潜在欺诈。您可以使用异常值检测功能来检测重大突发事件(例如技术问题)或机会(例如消费者行为的变化)。
使用异常值检测时,一个难点是确定哪些数据计为异常数据。如果您已为用于识别异常值的数据添加标签,则可以将 ML.PREDICT
函数与以下监督式机器学习模型之一搭配使用,执行异常值检测:
如果您不确定哪些数据计为异常数据,或者没有带标签的数据来训练模型,则可以使用非监督式机器学习执行异常值检测。将 ML.DETECT_ANOMALIES
函数与以下模型之一搭配使用,以检测训练数据或新服务数据中的异常值:
推荐的知识
通过使用 CREATE MODEL
语句和推理函数中的默认设置,即使您没有太多机器学习方面的知识,也可以创建和使用异常检测模型。不过,掌握机器学习开发方面的基本知识有助于您优化数据和模型,从而取得更好的成效。我们建议您使用以下资源熟悉机器学习技术和流程:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-19。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-06-19。"],[[["Anomaly detection is a data mining technique used to identify deviations in datasets, which can signal product defects, fraud, or changes in consumer behavior."],["If you have labeled data, supervised machine learning models like linear regression, boosted trees, random forest, DNN, Wide & Deep, and AutoML models can be used with the `ML.PREDICT` function for anomaly detection."],["When you lack labeled data or are uncertain about what constitutes anomalous data, unsupervised machine learning can be employed with the `ML.DETECT_ANOMALIES` function."],["The `ML.DETECT_ANOMALIES` function supports various model types, including ARIMA_PLUS, ARIMA_PLUS_XREG, K-means, Autoencoder, and PCA, each suited for different data types such as time series or independent and identically distributed random variables."],["Basic knowledge of ML can enhance anomaly detection results, and resources such as the Machine Learning Crash Course, Intro to Machine Learning, and Intermediate Machine Learning are recommended to develop this knowledge."]]],[]]