-
Notifications
You must be signed in to change notification settings - Fork 1.2k
documentation: add detail & links to clarify docstrings #3216
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
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
2c81c57
to
34f6669
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
34f6669
to
d03e012
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov Report
@@ Coverage Diff @@
## master #3216 +/- ##
=======================================
Coverage 88.79% 88.79%
=======================================
Files 202 202
Lines 17833 17833
=======================================
Hits 15835 15835
Misses 1998 1998
Continue to review full report at Codecov.
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
If this field is None, then the ``s3_output_path`` will be used | ||
to store the ``analysis_config`` output. | ||
label (str): Target attribute of the model **required** for bias metrics (both pre- | ||
and post-training). Optional when running SHAP explainability. |
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.
It is also required for SHAP. The only time it's okay to not give label
is when the dataset does not contain the label (which is okay for explainability and not bias metrics). We need the label for explanability too because we need to remove it from the dataset if present.
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.
Thank you, added this to my upcoming PR.
Model inference is run to see how the prediction changes with the replaced features. | ||
If the model output returns multiple scores importance is computed for each of them. | ||
Across examples, feature importance is aggregated using 'agg_method'. | ||
|
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.
SHAP and PDP could be requested together as well. Maybe try to reflect that as well here.
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.
Thank you, added this to my upcoming PR.
Issue #
https://sim.amazon.com/issues/RAI-2029
Summary of Changes
Minor changes to the docstrings of clarify.py to adhere to the SageMaker Python SDK Documentation Guidelines and keep information up-to-date.
Specifically:
run_explainability
function docstring (only SHAP was listed, even though PDP is already supported in the function definition)Testing done:
tox -e twine, sphinx
and manually reviewed my changes to sagemaker-python-sdk/doc/_build/html/api/training/processing.html before committing & making this PRMerge Checklist
General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.