Skip to content

Commit 730691b

Browse files
committed
remove pip install to avoid package conflict
1 parent ce14b80 commit 730691b

File tree

1 file changed

+10
-30
lines changed

1 file changed

+10
-30
lines changed

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

Lines changed: 10 additions & 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,25 @@
3331
{
3432
"cell_type": "code",
3533
"execution_count": null,
36-
"id": "07ef2630",
34+
"metadata": {},
35+
"outputs": [],
36+
"source": [
37+
"! pip list | grep sagemaker-experiments"
38+
]
39+
},
40+
{
41+
"cell_type": "code",
42+
"execution_count": null,
3743
"metadata": {},
3844
"outputs": [],
3945
"source": [
4046
"import sys\n",
4147
"\n",
42-
"!{sys.executable} -m pip install sagemaker-experiments==0.1.31 matplotlib"
48+
"!{sys.executable} -m pip install matplotlib"
4349
]
4450
},
4551
{
4652
"cell_type": "markdown",
47-
"id": "5f6e0e4a",
4853
"metadata": {},
4954
"source": [
5055
"### Setup"
@@ -53,7 +58,6 @@
5358
{
5459
"cell_type": "code",
5560
"execution_count": null,
56-
"id": "a919b135",
5761
"metadata": {},
5862
"outputs": [],
5963
"source": [
@@ -74,7 +78,6 @@
7478
{
7579
"cell_type": "code",
7680
"execution_count": null,
77-
"id": "e64e12da",
7881
"metadata": {},
7982
"outputs": [],
8083
"source": [
@@ -88,7 +91,6 @@
8891
},
8992
{
9093
"cell_type": "markdown",
91-
"id": "9fb68336",
9294
"metadata": {},
9395
"source": [
9496
"### Download California Housing dataset and upload to Amazon S3"
@@ -97,7 +99,6 @@
9799
{
98100
"cell_type": "code",
99101
"execution_count": null,
100-
"id": "6ece115e",
101102
"metadata": {},
102103
"outputs": [],
103104
"source": [
@@ -132,7 +133,6 @@
132133
{
133134
"cell_type": "code",
134135
"execution_count": null,
135-
"id": "b066d544",
136136
"metadata": {},
137137
"outputs": [],
138138
"source": [
@@ -148,7 +148,6 @@
148148
},
149149
{
150150
"cell_type": "markdown",
151-
"id": "5a2d2a6e",
152151
"metadata": {},
153152
"source": [
154153
"### Step 1 - Set up the Experiment\n",
@@ -158,7 +157,6 @@
158157
},
159158
{
160159
"cell_type": "markdown",
161-
"id": "c2f86710",
162160
"metadata": {},
163161
"source": [
164162
"### Create an Experiment"
@@ -167,7 +165,6 @@
167165
{
168166
"cell_type": "code",
169167
"execution_count": null,
170-
"id": "4c1fbca9",
171168
"metadata": {},
172169
"outputs": [],
173170
"source": [
@@ -180,7 +177,6 @@
180177
{
181178
"cell_type": "code",
182179
"execution_count": null,
183-
"id": "581b6c8d",
184180
"metadata": {},
185181
"outputs": [],
186182
"source": [
@@ -194,7 +190,6 @@
194190
},
195191
{
196192
"cell_type": "markdown",
197-
"id": "9f872fca",
198193
"metadata": {},
199194
"source": [
200195
"### Step 2 - Track Experiment\n",
@@ -205,7 +200,6 @@
205200
{
206201
"cell_type": "code",
207202
"execution_count": null,
208-
"id": "d0336132",
209203
"metadata": {},
210204
"outputs": [],
211205
"source": [
@@ -218,7 +212,6 @@
218212
},
219213
{
220214
"cell_type": "markdown",
221-
"id": "7680ca71",
222215
"metadata": {},
223216
"source": [
224217
"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 +222,6 @@
229222
{
230223
"cell_type": "code",
231224
"execution_count": null,
232-
"id": "df3f4b99",
233225
"metadata": {},
234226
"outputs": [],
235227
"source": [
@@ -296,7 +288,6 @@
296288
},
297289
{
298290
"cell_type": "markdown",
299-
"id": "79d10cf4",
300291
"metadata": {},
301292
"source": [
302293
"### Compare the model training runs for an experiment\n",
@@ -307,7 +298,6 @@
307298
{
308299
"cell_type": "code",
309300
"execution_count": null,
310-
"id": "54457af4",
311301
"metadata": {},
312302
"outputs": [],
313303
"source": [
@@ -324,7 +314,6 @@
324314
},
325315
{
326316
"cell_type": "markdown",
327-
"id": "ad3c1940",
328317
"metadata": {},
329318
"source": [
330319
"Let's show the accuracy, epochs and optimizer.\n",
@@ -334,7 +323,6 @@
334323
{
335324
"cell_type": "code",
336325
"execution_count": null,
337-
"id": "f970a995",
338326
"metadata": {},
339327
"outputs": [],
340328
"source": [
@@ -344,7 +332,6 @@
344332
},
345333
{
346334
"cell_type": "markdown",
347-
"id": "3fe96a4a",
348335
"metadata": {},
349336
"source": [
350337
"### Visualize experiment\n",
@@ -355,7 +342,6 @@
355342
{
356343
"cell_type": "code",
357344
"execution_count": null,
358-
"id": "5f13ab1e",
359345
"metadata": {},
360346
"outputs": [],
361347
"source": [
@@ -374,7 +360,6 @@
374360
},
375361
{
376362
"cell_type": "markdown",
377-
"id": "777780e4",
378363
"metadata": {},
379364
"source": [
380365
"### Compare Experiments, Trials, and Trial Components in Amazon SageMaker Studio\n",
@@ -395,7 +380,6 @@
395380
},
396381
{
397382
"cell_type": "markdown",
398-
"id": "fa992be5",
399383
"metadata": {},
400384
"source": [
401385
"### Cleanup\n",
@@ -406,7 +390,6 @@
406390
{
407391
"cell_type": "code",
408392
"execution_count": null,
409-
"id": "8672ca44",
410393
"metadata": {},
411394
"outputs": [],
412395
"source": [
@@ -434,7 +417,6 @@
434417
{
435418
"cell_type": "code",
436419
"execution_count": null,
437-
"id": "1da56a6c",
438420
"metadata": {},
439421
"outputs": [],
440422
"source": [
@@ -444,14 +426,12 @@
444426
{
445427
"cell_type": "code",
446428
"execution_count": null,
447-
"id": "3cd76c89",
448429
"metadata": {},
449430
"outputs": [],
450431
"source": []
451432
}
452433
],
453434
"metadata": {
454-
"instance_type": "ml.t3.medium",
455435
"kernelspec": {
456436
"display_name": "Python 3 (TensorFlow 2.3 Python 3.7 CPU Optimized)",
457437
"language": "python",

0 commit comments

Comments
 (0)