Skip to content

Support optional input channels in local mode. #466

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

Merged
merged 3 commits into from
Nov 9, 2018

Conversation

nadiaya
Copy link
Contributor

@nadiaya nadiaya commented Nov 8, 2018

Support optional input channels in local mode.

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.

@nadiaya nadiaya requested a review from iquintero November 8, 2018 05:14
def create_training_job(self, TrainingJobName, AlgorithmSpecification, InputDataConfig, OutputDataConfig,
ResourceConfig, **kwargs):
def create_training_job(self, TrainingJobName, AlgorithmSpecification, OutputDataConfig,
ResourceConfig, InputDataConfig=None, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

if the first line of this method becomes

InputDataConfig = InputDataConfig or {}

Then you don't need to actually touch any other part of the code as all the for loops will just not happen.

if 'ContentType' in c:
json_input_data_config[channel_name]['ContentType'] = c['ContentType']
if input_data_config:
print(input_data_config)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you remove this print while we are at it?

@codecov-io
Copy link

codecov-io commented Nov 8, 2018

Codecov Report

Merging #466 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #466   +/-   ##
=====================================
  Coverage      94%    94%           
=====================================
  Files          57     57           
  Lines        4284   4284           
=====================================
  Hits         4027   4027           
  Misses        257    257
Impacted Files Coverage Δ
src/sagemaker/local/image.py 89.96% <ø> (-0.04%) ⬇️
src/sagemaker/local/local_session.py 89% <100%> (+0.11%) ⬆️

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 5921325...1938558. Read the comment docs.

@nadiaya nadiaya merged commit 892f27f into aws:master Nov 9, 2018
@nadiaya nadiaya deleted the local-mode-input branch November 9, 2018 04:13
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.

3 participants