Skip to content

Commit 9233ad5

Browse files
authored
Fix tensorflow2-california-housing-regression-experiment.ipynb (#3306)
* remove pip install to avoid package conflict * delete test cell
1 parent 7299aa1 commit 9233ad5

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

sagemaker-experiments/tensorflow2-california-housing-regression-experiment/tensorflow2-california-housing-regression-experiment.ipynb

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "b673db31",
65
"metadata": {},
76
"source": [
87
"## California Housing Regression Experiment\n",
@@ -24,7 +23,6 @@
2423
},
2524
{
2625
"cell_type": "markdown",
27-
"id": "6aa9af97",
2826
"metadata": {},
2927
"source": [
3028
"### Install Python Packages"
@@ -33,18 +31,16 @@
3331
{
3432
"cell_type": "code",
3533
"execution_count": null,
36-
"id": "07ef2630",
3734
"metadata": {},
3835
"outputs": [],
3936
"source": [
4037
"import sys\n",
4138
"\n",
42-
"!{sys.executable} -m pip install sagemaker-experiments==0.1.31 matplotlib"
39+
"!{sys.executable} -m pip install matplotlib"
4340
]
4441
},
4542
{
4643
"cell_type": "markdown",
47-
"id": "5f6e0e4a",
4844
"metadata": {},
4945
"source": [
5046
"### Setup"
@@ -53,7 +49,6 @@
5349
{
5450
"cell_type": "code",
5551
"execution_count": null,
56-
"id": "a919b135",
5752
"metadata": {},
5853
"outputs": [],
5954
"source": [
@@ -74,7 +69,6 @@
7469
{
7570
"cell_type": "code",
7671
"execution_count": null,
77-
"id": "e64e12da",
7872
"metadata": {},
7973
"outputs": [],
8074
"source": [
@@ -88,7 +82,6 @@
8882
},
8983
{
9084
"cell_type": "markdown",
91-
"id": "9fb68336",
9285
"metadata": {},
9386
"source": [
9487
"### Download California Housing dataset and upload to Amazon S3"
@@ -97,7 +90,6 @@
9790
{
9891
"cell_type": "code",
9992
"execution_count": null,
100-
"id": "6ece115e",
10193
"metadata": {},
10294
"outputs": [],
10395
"source": [
@@ -132,7 +124,6 @@
132124
{
133125
"cell_type": "code",
134126
"execution_count": null,
135-
"id": "b066d544",
136127
"metadata": {},
137128
"outputs": [],
138129
"source": [
@@ -148,7 +139,6 @@
148139
},
149140
{
150141
"cell_type": "markdown",
151-
"id": "5a2d2a6e",
152142
"metadata": {},
153143
"source": [
154144
"### Step 1 - Set up the Experiment\n",
@@ -158,7 +148,6 @@
158148
},
159149
{
160150
"cell_type": "markdown",
161-
"id": "c2f86710",
162151
"metadata": {},
163152
"source": [
164153
"### Create an Experiment"
@@ -167,7 +156,6 @@
167156
{
168157
"cell_type": "code",
169158
"execution_count": null,
170-
"id": "4c1fbca9",
171159
"metadata": {},
172160
"outputs": [],
173161
"source": [
@@ -180,7 +168,6 @@
180168
{
181169
"cell_type": "code",
182170
"execution_count": null,
183-
"id": "581b6c8d",
184171
"metadata": {},
185172
"outputs": [],
186173
"source": [
@@ -194,7 +181,6 @@
194181
},
195182
{
196183
"cell_type": "markdown",
197-
"id": "9f872fca",
198184
"metadata": {},
199185
"source": [
200186
"### Step 2 - Track Experiment\n",
@@ -205,7 +191,6 @@
205191
{
206192
"cell_type": "code",
207193
"execution_count": null,
208-
"id": "d0336132",
209194
"metadata": {},
210195
"outputs": [],
211196
"source": [
@@ -218,7 +203,6 @@
218203
},
219204
{
220205
"cell_type": "markdown",
221-
"id": "7680ca71",
222206
"metadata": {},
223207
"source": [
224208
"If you want to run the following training jobs asynchronously, you may need to increase your resource limit. Otherwise, you can run them sequentially.\n",
@@ -229,7 +213,6 @@
229213
{
230214
"cell_type": "code",
231215
"execution_count": null,
232-
"id": "df3f4b99",
233216
"metadata": {},
234217
"outputs": [],
235218
"source": [
@@ -296,7 +279,6 @@
296279
},
297280
{
298281
"cell_type": "markdown",
299-
"id": "79d10cf4",
300282
"metadata": {},
301283
"source": [
302284
"### Compare the model training runs for an experiment\n",
@@ -307,7 +289,6 @@
307289
{
308290
"cell_type": "code",
309291
"execution_count": null,
310-
"id": "54457af4",
311292
"metadata": {},
312293
"outputs": [],
313294
"source": [
@@ -324,7 +305,6 @@
324305
},
325306
{
326307
"cell_type": "markdown",
327-
"id": "ad3c1940",
328308
"metadata": {},
329309
"source": [
330310
"Let's show the accuracy, epochs and optimizer.\n",
@@ -334,7 +314,6 @@
334314
{
335315
"cell_type": "code",
336316
"execution_count": null,
337-
"id": "f970a995",
338317
"metadata": {},
339318
"outputs": [],
340319
"source": [
@@ -344,7 +323,6 @@
344323
},
345324
{
346325
"cell_type": "markdown",
347-
"id": "3fe96a4a",
348326
"metadata": {},
349327
"source": [
350328
"### Visualize experiment\n",
@@ -355,7 +333,6 @@
355333
{
356334
"cell_type": "code",
357335
"execution_count": null,
358-
"id": "5f13ab1e",
359336
"metadata": {},
360337
"outputs": [],
361338
"source": [
@@ -374,7 +351,6 @@
374351
},
375352
{
376353
"cell_type": "markdown",
377-
"id": "777780e4",
378354
"metadata": {},
379355
"source": [
380356
"### Compare Experiments, Trials, and Trial Components in Amazon SageMaker Studio\n",
@@ -395,7 +371,6 @@
395371
},
396372
{
397373
"cell_type": "markdown",
398-
"id": "fa992be5",
399374
"metadata": {},
400375
"source": [
401376
"### Cleanup\n",
@@ -406,7 +381,6 @@
406381
{
407382
"cell_type": "code",
408383
"execution_count": null,
409-
"id": "8672ca44",
410384
"metadata": {},
411385
"outputs": [],
412386
"source": [
@@ -434,7 +408,6 @@
434408
{
435409
"cell_type": "code",
436410
"execution_count": null,
437-
"id": "1da56a6c",
438411
"metadata": {},
439412
"outputs": [],
440413
"source": [
@@ -444,14 +417,12 @@
444417
{
445418
"cell_type": "code",
446419
"execution_count": null,
447-
"id": "3cd76c89",
448420
"metadata": {},
449421
"outputs": [],
450422
"source": []
451423
}
452424
],
453425
"metadata": {
454-
"instance_type": "ml.t3.medium",
455426
"kernelspec": {
456427
"display_name": "Python 3 (TensorFlow 2.3 Python 3.7 CPU Optimized)",
457428
"language": "python",

0 commit comments

Comments
 (0)