-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change: make start time, end time and period configurable in sagemaker.analytics.TrainingJobAnalytics #730
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
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fc2fcc0
Make start time, end time and period configurable in analytics.Traini…
icywang86rui e838cb4
Add analytics integ test to the TensorFlow script mode minist test
icywang86rui 6572452
Merge branch 'master' into fix-analytics
icywang86rui fa79676
Minor changes due to PR comments and to make flake8 happy
icywang86rui 520c48b
Merge branch 'master' into fix-analytics
icywang86rui 896381e
More minor changes
icywang86rui b88df7b
Merge branch 'master' into fix-analytics
icywang86rui c46a1e3
One more minor change
icywang86rui bf608a6
Merge branch 'master' into fix-analytics
laurenyu 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -245,3 +245,20 @@ def test_trainer_dataframe(): | |
trainer.export_csv(tmp_name) | ||
assert os.path.isfile(tmp_name) | ||
os.unlink(tmp_name) | ||
|
||
|
||
def test_start_time_end_time_and_period_specified(): | ||
describe_training_result = { | ||
'TrainingStartTime': datetime.datetime(2018, 5, 16, 1, 2, 3), | ||
'TrainingEndTime': datetime.datetime(2018, 5, 16, 5, 6, 7), | ||
} | ||
session = create_sagemaker_session(describe_training_result) | ||
start_time = datetime.datetime(2018, 5, 16, 1, 3, 4) | ||
end_time = datetime.datetime(2018, 5, 16, 5, 1, 1) | ||
period = 300 | ||
trainer = TrainingJobAnalytics("my-training-job", ["metric"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: single quotes |
||
sagemaker_session=session, start_time=start_time, end_time=end_time, period=period) | ||
|
||
assert trainer._time_interval['start_time'] == start_time | ||
assert trainer._time_interval['end_time'] == end_time | ||
assert trainer._period == period |
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.
should we make the default a constant?