Skip to content
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

Add keras_model_fn integ test #338

Merged
merged 12 commits into from
Aug 28, 2018
Merged

Add keras_model_fn integ test #338

merged 12 commits into from
Aug 28, 2018

Conversation

yangaws
Copy link
Contributor

@yangaws yangaws commented Aug 7, 2018

Issue #, if available:

Description of changes:

Add keras_model_fn integ test adapted from aws/amazon-sagemaker-examples#353

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.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@yangaws yangaws requested review from mvsusp and andremoeller August 7, 2018 22:30
mvsusp
mvsusp previously requested changes Aug 8, 2018
Copy link
Contributor

@mvsusp mvsusp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small observation about the timeout size. Everything else looks good.

Thanks for working at this.

script_path = os.path.join(DATA_DIR, 'cifar_10', 'source')
dataset_path = os.path.join(DATA_DIR, 'cifar_10', 'data')

with timeout(minutes=45):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to have a 45 minutes run for these test? Can we reduce the training steps and evaluation steps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep we need this because it currently times out frequently due to hosting. And we took their advice of using 45 mins.

The current timeout for tf cifar is also 45 mins https://github.com/aws/sagemaker-python-sdk/blob/master/tests/integ/test_tf_cifar.py#L38

And related PR is here: #337

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I made the change to reduce training and evaluation steps too. Now it uses 500 and 5 which are same as what tf cifar test uses.

laurenyu
laurenyu previously approved these changes Aug 14, 2018
@codecov-io
Copy link

Codecov Report

Merging #338 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #338   +/-   ##
======================================
  Coverage    93.1%   93.1%           
======================================
  Files          51      51           
  Lines        3552    3552           
======================================
  Hits         3307    3307           
  Misses        245     245

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 146e171...8ca7361. Read the comment docs.

laurenyu
laurenyu previously approved these changes Aug 15, 2018
@yangaws yangaws dismissed mvsusp’s stale review August 28, 2018 00:25

Unavailable

@yangaws yangaws merged commit 41a11a5 into aws:master Aug 28, 2018
pdasamzn pushed a commit to pdasamzn/sagemaker-python-sdk that referenced this pull request Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants