내용으로 건너뛰기

SageMaker Canvas - Shap Value

0

In SageMaker Canvas, is it possible to extract both global and local SHAP values during model building?

질문됨 5달 전41회 조회
1개 답변
0

Yes, Amazon SageMaker Canvas leverages SageMaker Clarify's capabilities to provide both global and local SHAP values during model building.

SageMaker Clarify processing jobs use the Kernel SHAP algorithm to compute feature attributions. These jobs produce both local and global SHAP values:

  • Local SHAP values represent the feature importance for each individual instance or prediction
  • Global SHAP values aggregate the local SHAP values across all instances in the dataset

When configuring SHAP analysis, you can use the SHAPConfig object which includes parameters like:

  • baseline - Dataset used as the baseline in the Kernel SHAP algorithm
  • num_samples - Number of samples used in the algorithm
  • agg_method - Aggregation method for global SHAP values (options include mean_abs, median, mean_sq)
  • save_local_shap_values - Boolean indicator of whether to save the local SHAP values (default is False)

Global SHAP analysis results are typically stored in the explanations section of the analysis file under the kernel_shap method, while local SHAP values are saved to files like explanations_shap/out.csv for tabular datasets or explanations_shap/out.jsonl for NLP explainability analysis.

SHAP values help determine the contribution of each feature towards model predictions, providing valuable insights for model interpretation and understanding feature importance.
Sources
Analysis Results - Amazon SageMaker
Create a SHAP Baseline for Models in Production - Amazon SageMaker

답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.