返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

detecting-data-anomalies

使用机器学习算法识别数据集中的异常值和离群点。在分析数据中不寻常的模式、离群点或偏离正常行为的情况时使用。可以通过诸如“检测异常”、“查找离群点”或“识别不寻常的模式”等短语触发。

person作者: jakexiaohubgithub

Detecting Data Anomalies

Overview

This skill provides automated assistance for the described functionality.

Prerequisites

Before using this skill, ensure you have:

  • Dataset in accessible format (CSV, JSON, or database)
  • Python environment with scikit-learn or similar ML libraries
  • Understanding of data distribution and expected patterns
  • Sufficient data volume for statistical significance
  • Knowledge of domain-specific normal behavior
  • Data preprocessing capabilities for cleaning and scaling

Instructions

  1. Load dataset using Read tool
  2. Inspect data structure and identify relevant features
  3. Clean data by handling missing values and inconsistencies
  4. Normalize or scale features as appropriate for algorithm
  5. Split temporal data if time-series analysis is needed
  6. Apply selected algorithm using Bash tool
  7. Generate anomaly scores for each data point
  8. Classify points as normal or anomalous based on threshold
  9. Extract characteristics of identified anomalies

See {baseDir}/references/implementation.md for detailed implementation guide.

Output

  • Total data points analyzed
  • Number of anomalies detected
  • Contamination rate (percentage of anomalies)
  • Algorithm used and configuration parameters
  • Confidence scores for detected anomalies
  • Record identifier and timestamp (if applicable)

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources

  • Isolation Forest documentation and implementation examples
  • One-Class SVM for novelty detection
  • Local Outlier Factor (LOF) for density-based detection
  • Autoencoder-based anomaly detection for deep learning approaches
  • scikit-learn anomaly detection module