Skip to content

Commit 79d1731

Browse files
Update in advance of conference
1 parent 69cd8b3 commit 79d1731

8 files changed

+5009
-21
lines changed

1 - Simple linear regression in Keras.ipynb

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"## 1 - Simple regression model in TensorFlow 2.0"
88
]
99
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"https://www.tensorflow.org/tutorials/keras/regression"
15+
]
16+
},
1017
{
1118
"cell_type": "markdown",
1219
"metadata": {},
@@ -364,7 +371,7 @@
364371
},
365372
{
366373
"cell_type": "code",
367-
"execution_count": 8,
374+
"execution_count": 7,
368375
"metadata": {},
369376
"outputs": [],
370377
"source": [
@@ -381,16 +388,16 @@
381388
},
382389
{
383390
"cell_type": "code",
384-
"execution_count": 9,
391+
"execution_count": 8,
385392
"metadata": {},
386393
"outputs": [
387394
{
388395
"data": {
389396
"text/plain": [
390-
"<seaborn.axisgrid.PairGrid at 0x133915e48>"
397+
"<seaborn.axisgrid.PairGrid at 0x13cd809e8>"
391398
]
392399
},
393-
"execution_count": 9,
400+
"execution_count": 8,
394401
"metadata": {},
395402
"output_type": "execute_result"
396403
},
@@ -589,7 +596,7 @@
589596
},
590597
{
591598
"cell_type": "code",
592-
"execution_count": 11,
599+
"execution_count": 10,
593600
"metadata": {},
594601
"outputs": [],
595602
"source": [
@@ -606,7 +613,7 @@
606613
},
607614
{
608615
"cell_type": "code",
609-
"execution_count": 12,
616+
"execution_count": 11,
610617
"metadata": {},
611618
"outputs": [],
612619
"source": [
@@ -619,7 +626,7 @@
619626
},
620627
{
621628
"cell_type": "code",
622-
"execution_count": 14,
629+
"execution_count": 12,
623630
"metadata": {},
624631
"outputs": [],
625632
"source": [
@@ -640,7 +647,7 @@
640647
},
641648
{
642649
"cell_type": "code",
643-
"execution_count": 15,
650+
"execution_count": 13,
644651
"metadata": {},
645652
"outputs": [],
646653
"source": [
@@ -649,7 +656,7 @@
649656
},
650657
{
651658
"cell_type": "code",
652-
"execution_count": 16,
659+
"execution_count": 14,
653660
"metadata": {},
654661
"outputs": [
655662
{
@@ -677,9 +684,16 @@
677684
"model.summary()"
678685
]
679686
},
687+
{
688+
"cell_type": "markdown",
689+
"metadata": {},
690+
"source": [
691+
"Pass an example batch through the model."
692+
]
693+
},
680694
{
681695
"cell_type": "code",
682-
"execution_count": 17,
696+
"execution_count": 40,
683697
"metadata": {},
684698
"outputs": [
685699
{
@@ -692,19 +706,19 @@
692706
{
693707
"data": {
694708
"text/plain": [
695-
"array([[ 0.4062208 ],\n",
696-
" [ 0.14854293],\n",
697-
" [-0.53726494],\n",
698-
" [ 0.4551225 ],\n",
699-
" [ 0.03993351],\n",
700-
" [ 0.10648736],\n",
701-
" [ 0.07059113],\n",
702-
" [ 0.3804471 ],\n",
703-
" [ 0.00926753],\n",
704-
" [ 0.2917318 ]], dtype=float32)"
709+
"array([[ 0.00580749],\n",
710+
" [ 0.11364451],\n",
711+
" [-1.0010507 ],\n",
712+
" [-0.00943041],\n",
713+
" [ 0.17769842],\n",
714+
" [ 0.07948378],\n",
715+
" [ 0.22951826],\n",
716+
" [-0.01827377],\n",
717+
" [-0.08627713],\n",
718+
" [ 0.22824478]], dtype=float32)"
705719
]
706720
},
707-
"execution_count": 17,
721+
"execution_count": 40,
708722
"metadata": {},
709723
"output_type": "execute_result"
710724
}

0 commit comments

Comments
 (0)