-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: Add business details and hyper parameters fields and update test_model_card.py #3639
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
tests/unit/test_model_card.py
Outdated
@@ -866,6 +891,14 @@ def __init__(self, attr1): # pylint: disable=C0116 | |||
): | |||
ExampleClass(attr1=IntendedUses()) | |||
|
|||
with pytest.raises( |
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.
I don't think we need this lines. The goal of this test is to see if _IsModelCardObject
descriptor working as expected and not specific to IntendedUses class
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.
I don't think we need this lines. The goal of this test is to see if
_IsModelCardObject
descriptor working as expected and not specific to IntendedUses class
make sense, will remove those lines for business details
tests/unit/test_model_card.py
Outdated
@@ -1047,6 +1080,7 @@ def test_training_details_autodiscovery_from_model_overview_autopilot( | |||
) | |||
|
|||
assert len(training_details.training_job_details.training_metrics) == 0 | |||
assert len(training_details.training_job_details.hyper_parameters) == 0 |
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.
You will need to check if hyper parameter is part of return of sagemaker_client.search
API. and update SEARCH_TRAINING_JOB_EXAMPLE and SEARCH_TRAINING_JOB_AUTOPILOT_EXAMPLE accordingly
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.
please comment your fix if any
a28fb14
to
96dd74e
Compare
Where is the code to parse the hyper_parameters? |
…test_model_card.py
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.
/bot run all
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 |
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.
/bot run pr
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…test_model_card.py (aws#3639) Co-authored-by: Haonian Wang <[email protected]>
…test_model_card.py (aws#3639) Co-authored-by: Haonian Wang <[email protected]>
Issue #, if available:
Description of changes:
feature: add business details and hyper parameters fields to python SDK.
Testing done:
Passed unit test for test_model_card.py by running export IGNORE_COVERAGE=- ; tox -- -s -vv tests/unit/test_model_card.py ; unset IGNORE_COVERAGE
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.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.