Skip to content

Commit 135a2bc

Browse files
committed
changed newline
1 parent 2067f7b commit 135a2bc

File tree

1 file changed

+41
-14
lines changed

1 file changed

+41
-14
lines changed

introduction_to_applying_machine_learning/breast_cancer_prediction/Breast Cancer Prediction.ipynb

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"cell_type": "code",
5353
"execution_count": null,
5454
"metadata": {
55+
"collapsed": true,
5556
"isConfigCell": true,
5657
"nbpresent": {
5758
"id": "6427e831-8f89-45c0-b150-0b134397d79a"
@@ -85,6 +86,7 @@
8586
"cell_type": "code",
8687
"execution_count": null,
8788
"metadata": {
89+
"collapsed": true,
8890
"nbpresent": {
8991
"id": "bb88eea9-27f3-4e47-9133-663911ea09a9"
9092
}
@@ -121,6 +123,7 @@
121123
"cell_type": "code",
122124
"execution_count": null,
123125
"metadata": {
126+
"collapsed": true,
124127
"nbpresent": {
125128
"id": "f8976dad-6897-4c7e-8c95-ae2f53070ef5"
126129
}
@@ -175,7 +178,9 @@
175178
{
176179
"cell_type": "code",
177180
"execution_count": null,
178-
"metadata": {},
181+
"metadata": {
182+
"collapsed": true
183+
},
179184
"outputs": [],
180185
"source": [
181186
"rand_split = np.random.rand(len(data))\n",
@@ -212,6 +217,7 @@
212217
"cell_type": "code",
213218
"execution_count": null,
214219
"metadata": {
220+
"collapsed": true,
215221
"nbpresent": {
216222
"id": "cd8e3431-79d9-40b6-91d1-d67cd61894e7"
217223
}
@@ -242,6 +248,7 @@
242248
"cell_type": "code",
243249
"execution_count": null,
244250
"metadata": {
251+
"collapsed": true,
245252
"nbpresent": {
246253
"id": "bd113b8e-adc1-4091-a26f-a426149fe604"
247254
}
@@ -285,10 +292,12 @@
285292
{
286293
"cell_type": "code",
287294
"execution_count": null,
288-
"metadata": {},
295+
"metadata": {
296+
"collapsed": true
297+
},
289298
"outputs": [],
290299
"source": [
291-
"# See 'Algorithms Provided by Amazon SageMaker: Common Parameters' in the SageMaker documentation for an explanation of these values.",
300+
"# See 'Algorithms Provided by Amazon SageMaker: Common Parameters' in the SageMaker documentation for an explanation of these values.\n",
292301
"containers = {'us-west-2': '174872318107.dkr.ecr.us-west-2.amazonaws.com/linear-learner:latest',\n",
293302
" 'us-east-1': '382416733822.dkr.ecr.us-east-1.amazonaws.com/linear-learner:latest',\n",
294303
" 'us-east-2': '404615174143.dkr.ecr.us-east-2.amazonaws.com/linear-learner:latest',\n",
@@ -299,6 +308,7 @@
299308
"cell_type": "code",
300309
"execution_count": null,
301310
"metadata": {
311+
"collapsed": true,
302312
"nbpresent": {
303313
"id": "397fb60a-c48b-453f-88ea-4d832b70c919"
304314
}
@@ -377,7 +387,9 @@
377387
{
378388
"cell_type": "code",
379389
"execution_count": null,
380-
"metadata": {},
390+
"metadata": {
391+
"collapsed": true
392+
},
381393
"outputs": [],
382394
"source": [
383395
"%%time\n",
@@ -417,6 +429,7 @@
417429
"cell_type": "code",
418430
"execution_count": null,
419431
"metadata": {
432+
"collapsed": true,
420433
"nbpresent": {
421434
"id": "c88fb868-01d2-4991-8953-28814c022bdc"
422435
}
@@ -449,7 +462,9 @@
449462
{
450463
"cell_type": "code",
451464
"execution_count": null,
452-
"metadata": {},
465+
"metadata": {
466+
"collapsed": true
467+
},
453468
"outputs": [],
454469
"source": [
455470
"linear_endpoint_config = 'linear-endpoint-config-' + time.strftime(\"%Y-%m-%d-%H-%M-%S\", time.gmtime())\n",
@@ -475,7 +490,9 @@
475490
{
476491
"cell_type": "code",
477492
"execution_count": null,
478-
"metadata": {},
493+
"metadata": {
494+
"collapsed": true
495+
},
479496
"outputs": [],
480497
"source": [
481498
"%%time\n",
@@ -534,7 +551,9 @@
534551
{
535552
"cell_type": "code",
536553
"execution_count": null,
537-
"metadata": {},
554+
"metadata": {
555+
"collapsed": true
556+
},
538557
"outputs": [],
539558
"source": [
540559
"def np2csv(arr):\n",
@@ -553,7 +572,9 @@
553572
{
554573
"cell_type": "code",
555574
"execution_count": null,
556-
"metadata": {},
575+
"metadata": {
576+
"collapsed": true
577+
},
557578
"outputs": [],
558579
"source": [
559580
"runtime= boto3.client('sagemaker-runtime')\n",
@@ -576,7 +597,9 @@
576597
{
577598
"cell_type": "code",
578599
"execution_count": null,
579-
"metadata": {},
600+
"metadata": {
601+
"collapsed": true
602+
},
580603
"outputs": [],
581604
"source": [
582605
"test_mae_linear = np.mean(np.abs(test_y - test_pred))\n",
@@ -596,7 +619,9 @@
596619
{
597620
"cell_type": "code",
598621
"execution_count": null,
599-
"metadata": {},
622+
"metadata": {
623+
"collapsed": true
624+
},
600625
"outputs": [],
601626
"source": [
602627
"test_pred_class = (test_pred > 0.5)+0;\n",
@@ -619,7 +644,9 @@
619644
{
620645
"cell_type": "code",
621646
"execution_count": null,
622-
"metadata": {},
647+
"metadata": {
648+
"collapsed": true
649+
},
623650
"outputs": [],
624651
"source": [
625652
"#sm.delete_endpoint(EndpointName =linear_endpoint)"
@@ -640,9 +667,9 @@
640667
],
641668
"metadata": {
642669
"kernelspec": {
643-
"display_name": "Environment (conda_python3)",
670+
"display_name": "Python 3",
644671
"language": "python",
645-
"name": "conda_python3"
672+
"name": "python3"
646673
},
647674
"language_info": {
648675
"codemirror_mode": {
@@ -654,7 +681,7 @@
654681
"name": "python",
655682
"nbconvert_exporter": "python",
656683
"pygments_lexer": "ipython3",
657-
"version": "3.6.3"
684+
"version": "3.6.1"
658685
},
659686
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the License). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the license file accompanying this file. This file is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
660687
},

0 commit comments

Comments
 (0)