

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 偏差偏離分析的 CloudWatch 指標
<a name="clarify-model-monitor-bias-drift-cw"></a>

本指南顯示可在 SageMaker Clarify 中用於偏差偏離分析的 CloudWatch 指標及其屬性。偏差偏離監控工作會計算[訓練前偏差指標](https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-measure-data-bias.html)和[訓練後偏差指標](https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-measure-post-training-bias.html)，並將其發佈到下列 CloudWatch 命名空間：
+ 對於即時端點：`aws/sagemaker/Endpoints/bias-metrics`
+ 對於批次轉換工作：`aws/sagemaker/ModelMonitoring/bias-metrics`

CloudWatch 指標名稱會將指標的簡短名稱附加至 `bias_metric`。

例如，`bias_metric_CI` 是類別不平衡 (CI) 的偏差指標。

**注意**  
`+/- infinity` 發佈為浮點數 `+/- 2.348543e108`，而包括 null 值的錯誤不會發佈。

每個指標都具有下列屬性：
+ `Endpoint`：受監控端點的名稱(如果適用)。
+ `MonitoringSchedule`：監控工作排程的名稱。
+ `BiasStage`：偏差偏離監控工作的階段名稱。選擇 `Pre-training` 或 `Post-Training`。
+ `Label`：目標功能的名稱，由監控工作分析組態 `label` 提供。
+ `LabelValue`：目標功能的值，由監控工作分析組態 `label_values_or_threshold` 提供。
+ `Facet`：構面的名稱，由監控工作分析組態構面 `name_of_index` 提供。
+ `FacetValue`：構面的值，由監控工作分析組態構面 `nvalue_or_threshold` 提供。

若要停止發佈指標的監控工作，請在[模型偏差工作](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModelBiasJobDefinition.html)定義的 `Environment` 對應中將 `publish_cloudwatch_metrics` 設定為 `Disabled`。