48
loading...
This website collects cookies to deliver better user experience
“Why did the model predict a negative outcome such as a loan rejection for a given applicant?”
“How does the model make predictions?”
“Why did the model make an incorrect prediction?"
"Which features have the largest influence on the behavior of the model?”
shap_config = clarify.SHAPConfig(baseline=[test_features.iloc[0].values.tolist()],
num_samples=15,
agg_method='mean_abs')
explainability_output_path = 's3://{}/{}/clarify-explainability'.format(bucket, prefix)
explainability_data_config = clarify.DataConfig(s3_data_input_path=train_uri,
s3_output_path=explainability_output_path,
label='Target',
headers=training_data.columns.to_list(),
dataset_type='text/csv')
clarify_processor.run_explainability(
data_config=explainability_data_config,
model_config=model_config,
explainability_config=shap_config
)
48