@@ -1,8 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""iAOP-Template-Ti 一期 · 炉层杂质预警特征工程包(Issue #70)。
|
||||
"""iAOP-Template-Ti 一期 · 炉层杂质预警包(Issue #70 特征工程 + #71 无监督模型 + #72 告警规则)。
|
||||
|
||||
导出声明式 FeatureSpec 特征工程引擎,供预警模型训练(#71)与驾驶舱
|
||||
告警面板复用。换行业只改模板配置,引擎零改动(PRD 5.3 特征工程层)。
|
||||
导出三部分,覆盖 PRD 5.3 ③ 场景 A 全链路(采集 → 特征 → 评分 → 规则分级 →
|
||||
驾驶舱红色告警 → LLM 解释):
|
||||
|
||||
- 特征工程引擎(FeatureSpec/FeatureEngine,#70);
|
||||
- 无监督异常评分器与预警决策(ZScoreScorer/ImpurityForecaster,#71);
|
||||
- 声明式三级告警规则引擎(AlertRuleEngine,#72)。
|
||||
|
||||
换行业只改模板配置,引擎与模型零改动(PRD 5.3)。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -16,8 +22,27 @@ from .features import (
|
||||
FeatureTemplateConfig,
|
||||
load_feature_config,
|
||||
)
|
||||
from .model import (
|
||||
AlertDecision,
|
||||
FeatureVectorLike,
|
||||
ImpurityForecaster,
|
||||
LeadTimeResult,
|
||||
ThresholdRule,
|
||||
ZScoreScorer,
|
||||
evaluate_lead_time,
|
||||
)
|
||||
from .alert_rules import (
|
||||
Alert,
|
||||
AlertCondition,
|
||||
AlertRule,
|
||||
AlertRuleEngine,
|
||||
AlertRulesTemplateConfig,
|
||||
AlertSeverity,
|
||||
load_alert_rules_config,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# 特征工程(#70)
|
||||
"FeatureKind",
|
||||
"FeatureSpec",
|
||||
"FeatureSpecError",
|
||||
@@ -26,4 +51,20 @@ __all__ = [
|
||||
"FeatureEngine",
|
||||
"FeatureTemplateConfig",
|
||||
"load_feature_config",
|
||||
# 无监督模型(#71)
|
||||
"AlertDecision",
|
||||
"FeatureVectorLike",
|
||||
"ImpurityForecaster",
|
||||
"LeadTimeResult",
|
||||
"ThresholdRule",
|
||||
"ZScoreScorer",
|
||||
"evaluate_lead_time",
|
||||
# 告警规则(#72)
|
||||
"Alert",
|
||||
"AlertCondition",
|
||||
"AlertRule",
|
||||
"AlertRuleEngine",
|
||||
"AlertRulesTemplateConfig",
|
||||
"AlertSeverity",
|
||||
"load_alert_rules_config",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user