-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inference pipelines using clarify #2866
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
11c5479
inference pipelines using clarify
vikeshpandey f1542a6
fxed readme
vikeshpandey 56f184d
formatting issues fixed
vikeshpandey 56feb70
formatting issues fixed, fixed notebook hanging issue
vikeshpandey 27b8518
grammer issues fixed
vikeshpandey 03b6292
review comments incorporated
vikeshpandey 3423ce3
code formatting issues fixed
vikeshpandey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
sagemaker-clarify/clarify-explainability-inference-pipelines/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Credit risk prediction and explainability with Amazon SageMaker | ||
|
||
This example shows how to user SageMaker Clarify to run explainability jobs on a SageMaker hosted inference pipeline. | ||
|
||
Below is the architecture diagram used in the solution: | ||
|
||
![alt text](clarify_inf_pipeline_arch.png) | ||
|
||
|
||
The notebook performs the following steps: | ||
|
||
1. Prepare raw training and test data | ||
2. Create a SageMaker Processing job which performs preprocessing on the raw training data and also produces an SKlearn model which is reused for deployment. | ||
3. Train an XGBoost model on the processed data using SageMaker's built-in XGBoost container | ||
4. Create a SageMaker Inference pipeline containing the SKlearn and XGBoost model in a series | ||
5. Perform inference by supplying raw test data | ||
6. Set up and run explainability job powered by SageMaker Clarify | ||
7. Use open source shap library to create summary and waterfall plots to understand the feature importance better | ||
8. Run bias analysis jobs | ||
9. Clean up | ||
|
||
|
||
The attached notebook can be run in Amazon SageMaker Studio. | ||
|
||
|
Binary file added
BIN
+102 KB
...larify/clarify-explainability-inference-pipelines/clarify_inf_pipeline_arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be consistent with using a period or no period at the end of each list item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed