

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 모델 특징 속성 드리프트 위반
<a name="clarify-model-monitor-model-attribution-drift-violations"></a>

특징 속성 드리프트 작업은 [기준 구성](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModelExplainabilityJobDefinition.html#sagemaker-CreateModelExplainabilityJobDefinition-request-ModelExplainabilityBaselineConfig)에서 제공하는 기준 제약 조건을 현재의 `MonitoringExecution`에 대한 분석 결과와 비교하여 평가합니다. 이 작업은 위반이 감지되면 해당 위반을 실행 출력 위치에 있는 *constraint\$1violations.json* 파일에 나열하고, 실행 상태를 [결과 해석](model-monitor-interpreting-results.md)로 표시합니다.

특징 속성 드리프트 위반 파일의 스키마는 다음과 같습니다.
+ `label` - 레이블, 작업 분석 구성 `label_headers`또는 자리 표시자(예: `"label0"`)의 이름입니다.
+ `metric_name` - 설명 가능성 분석 메서드의 이름입니다. 현재 `shap`만 지원됩니다.
+ `constraint_check_type` - 모니터링되는 위반의 유형입니다. 현재 `feature_attribution_drift_check`만 지원됩니다.
+ `description` - 위반 내역에 대한 설명 메시지입니다.

```
{
    "version": "1.0",
    "violations": [{
        "label": "string",
        "metric_name": "string",
        "constraint_check_type": "string",
        "description": "string"
    }]
}
```

모니터링 작업은 `explanations`섹션의 각 레이블을 대상으로 기준 제약 조건 파일 및 작업 분석 결과 파일(analysis.json)에 있는 해당 글로벌 SHAP 값의 [nDCG 점수](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.ndcg_score.html)를 계산합니다.** 점수가 0.9점 미만이면 위반이 기록됩니다. 결합된 글로벌 SHAP 값이 평가되는 것이므로, 위반 항목에는 `“feature”`필드가 없습니다. 다음 출력은 기록된 여러 위반의 예시를 제공합니다.

```
{
    "version": "1.0",
    "violations": [{
        "label": "label0",
        "metric_name": "shap",
        "constraint_check_type": "feature_attribution_drift_check",
        "description": "Feature attribution drift 0.7639720923277322 exceeds threshold 0.9"
    }, {
        "label": "label1",
        "metric_name": "shap",
        "constraint_check_type": "feature_attribution_drift_check",
        "description": "Feature attribution drift 0.7323763972092327 exceeds threshold 0.9"
    }]
}
```