Skip to content

Commit 9bb15ec

Browse files
authored
Merge pull request aws#228 from winstonaws/tensorboard_param_change
Update eval frequency param for TensorBoard notebook for TensorFlow 1.6
2 parents 57649ff + 133b4d9 commit 9bb15ec

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sagemaker-python-sdk/tensorflow_resnet_cifar10_with_tensorboard/tensorflow_resnet_cifar10_with_tensorboard.ipynb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"cell_type": "code",
5252
"execution_count": null,
5353
"metadata": {
54+
"collapsed": true,
5455
"scrolled": false
5556
},
5657
"outputs": [],
@@ -105,6 +106,7 @@
105106
"cell_type": "code",
106107
"execution_count": null,
107108
"metadata": {
109+
"collapsed": true,
108110
"scrolled": false
109111
},
110112
"outputs": [],
@@ -116,7 +118,7 @@
116118
"estimator = TensorFlow(entry_point='resnet_cifar_10.py',\n",
117119
" source_dir=source_dir,\n",
118120
" role=role,\n",
119-
" hyperparameters={'min_eval_frequency': 10},\n",
121+
" hyperparameters={'throttle_secs': 30},\n",
120122
" training_steps=1000, evaluation_steps=100,\n",
121123
" train_instance_count=2, train_instance_type='ml.c4.xlarge', \n",
122124
" base_job_name='tensorboard-example')\n",
@@ -138,7 +140,7 @@
138140
"\n",
139141
"It takes a few minutes to provision containers and start the training job.**TensorBoard** will start to display metrics shortly after that.\n",
140142
"\n",
141-
"You can access **TensorBoard** locally at [http://localhost:6006](http://localhost:6006) or using your SageMaker notebook instance [proxy/6006/](/proxy/6006/)(TensorBoard will not work if forget to put the slash, '/', in end of the url). If TensorBoard started on a different port, adjust these URLs to match.This example uses the optional hyperparameter **```min_eval_frequency```** to generate training evaluations more often, allowing to visualize **TensorBoard** scalar data faster. You can find the available optional hyperparameters [here](https://github.com/aws/sagemaker-python-sdk#optional-hyperparameters)**."
143+
"You can access **TensorBoard** locally at [http://localhost:6006](http://localhost:6006) or using your SageMaker notebook instance [proxy/6006/](/proxy/6006/)(TensorBoard will not work if forget to put the slash, '/', in end of the url). If TensorBoard started on a different port, adjust these URLs to match.This example uses the optional hyperparameter **```throttle_secs```** to generate training evaluations more often, allowing to visualize **TensorBoard** scalar data faster. You can find the available optional hyperparameters [here](https://github.com/aws/sagemaker-python-sdk#optional-hyperparameters)."
142144
]
143145
},
144146
{
@@ -155,7 +157,9 @@
155157
{
156158
"cell_type": "code",
157159
"execution_count": null,
158-
"metadata": {},
160+
"metadata": {
161+
"collapsed": true
162+
},
159163
"outputs": [],
160164
"source": [
161165
"predictor = estimator.deploy(initial_instance_count=1, instance_type='ml.m4.xlarge')"
@@ -173,7 +177,9 @@
173177
{
174178
"cell_type": "code",
175179
"execution_count": null,
176-
"metadata": {},
180+
"metadata": {
181+
"collapsed": true
182+
},
177183
"outputs": [],
178184
"source": [
179185
"import numpy as np\n",

0 commit comments

Comments
 (0)