-
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
Changes from 5 commits
fc2fcc0
e838cb4
6572452
fa79676
520c48b
896381e
b88df7b
c46a1e3
bf608a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ def test_mnist(sagemaker_session, instance_type): | |
sagemaker_session=sagemaker_session, | ||
py_version='py3', | ||
framework_version=TensorFlow.LATEST_VERSION, | ||
metric_definitions=[{'Name': 'train:global_steps', 'Regex': 'global_step\/sec:\s(.*)'}], # noqa | ||
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. does flake no longer enforce two spaces before the "#" on an inline comment? also, what's the 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. flake8 doesn't like the \s and / 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. does it go away if you do 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. let me try that |
||
base_job_name='test-tf-sm-mnist') | ||
inputs = estimator.sagemaker_session.upload_data( | ||
path=os.path.join(RESOURCE_PATH, 'data'), | ||
|
@@ -56,6 +57,9 @@ def test_mnist(sagemaker_session, instance_type): | |
estimator.fit(inputs) | ||
_assert_s3_files_exist(estimator.model_dir, | ||
['graph.pbtxt', 'model.ckpt-0.index', 'model.ckpt-0.meta']) | ||
df = estimator.training_job_analytics.dataframe() | ||
print(df) | ||
assert df.size > 0 | ||
|
||
|
||
def test_server_side_encryption(sagemaker_session): | ||
|
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 think you could also do
period or METRICS_PERIOD_DEFAULT
?