技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
classic-detectors【数据与研究】Operate PyOD's classic tabular detector API for numeric arrays: detector selection, fit/predict/score workflows, synthetic data utilities, score interpretation, and CPU smoke checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants classic PyOD anomaly/outlier detection on tabular or numeric array data and already has, or can produce, a 2D numeric feature matrix X shaped (n_samples, n_features).
fit -> decision_function -> predict workflow.decision_scores_, labels_, and threshold_.pyod.utils.data and evaluate scores with ROC-AUC / precision @ rank n.pyod CLI, MCP server, and agent lifecycle orchestration -> automated-lifecycle.specialized-modalities.model-operations.repo-maintenance.For an unlabeled numeric table, prefer a simple, defensible baseline first:
from pyod.models.ecod import ECOD
clf = ECOD(contamination=0.1)
clf.fit(X_train)
train_scores = clf.decision_scores_ # higher means more abnormal
train_labels = clf.labels_ # 0=inlier, 1=outlier
test_scores = clf.decision_function(X_test)
test_labels = clf.predict(X_test)
If the user cares about high-dimensional scalability, try IForest or COPOD; for local-density anomalies on moderate-size, scaled numeric data, try KNN or LOF. Do not report raw scores as calibrated probabilities; convert to ranks/percentiles, binary labels, or predict_proba outputs.
Load these local files as needed:
pyod.utils.data helper contracts.IForest, KNN, ECOD, or COPOD in the current Python environment.