update on video of lecture

This commit is contained in:
Morten Hjorth-Jensen
2021-10-14 15:13:04 +02:00
parent 74064aa123
commit 2a56548ec6
7 changed files with 120 additions and 47 deletions
+1
View File
@@ -350,6 +350,7 @@ MathJax.Hub.Config({
<ul>
<li> Thursday: Building our own Feed-forward Neural Network and discussion of project 2.</li>
<li> <a href="https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage" target="_self">Video of Lecture</a></li>
<li> Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN).</li>
</ul>
+1
View File
@@ -163,6 +163,7 @@ MathJax.Hub.Config({
<ul>
<p><li> Thursday: Building our own Feed-forward Neural Network and discussion of project 2.</li>
<p><li> <a href="https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage" target="_blank">Video of Lecture</a></li>
<p><li> Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN).</li>
</ul>
<p>
@@ -294,6 +294,7 @@ MathJax.Hub.Config({
<ul>
<li> Thursday: Building our own Feed-forward Neural Network and discussion of project 2.</li>
<li> <a href="https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage" target="_blank">Video of Lecture</a></li>
<li> Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN).</li>
</ul>
+1
View File
@@ -299,6 +299,7 @@ MathJax.Hub.Config({
<ul>
<li> Thursday: Building our own Feed-forward Neural Network and discussion of project 2.</li>
<li> <a href="https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage" target="_blank">Video of Lecture</a></li>
<li> Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN).</li>
</ul>
Binary file not shown.
+115 -47
View File
@@ -21,6 +21,8 @@
"\n",
"* Thursday: Building our own Feed-forward Neural Network and discussion of project 2.\n",
"\n",
"* [Video of Lecture](https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage)\n",
"\n",
"* Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN). \n",
"\n",
"Reading suggestions for both days: [Aurelien Geron's chapters 10-11](https://github.com/CompPhysics/MachineLearning/blob/master/doc/T\\\n",
@@ -497,7 +499,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"%matplotlib inline\n",
@@ -566,7 +571,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"from sklearn.model_selection import train_test_split\n",
@@ -688,7 +696,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# building our neural network\n",
@@ -765,7 +776,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# setup the feed-forward pass, subscript h = hidden layer\n",
@@ -930,7 +944,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# to categorical turns our integer vector into a onehot representation\n",
@@ -1029,7 +1046,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"class NeuralNetwork:\n",
@@ -1151,7 +1171,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"epochs = 100\n",
@@ -1185,7 +1208,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"eta_vals = np.logspace(-5, 1, 7)\n",
@@ -1220,7 +1246,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# visual representation of grid search\n",
@@ -1280,7 +1309,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"from sklearn.neural_network import MLPClassifier\n",
@@ -1311,7 +1343,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# optional\n",
@@ -1431,7 +1466,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"\"\"\"\n",
@@ -1513,7 +1551,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# import necessary packages\n",
@@ -1619,7 +1660,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"pip3 install tensorflow"
@@ -1636,7 +1680,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"conda create -n tf tensorflow\n",
@@ -1653,7 +1700,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"conda create -n tf-gpu tensorflow-gpu\n",
@@ -1674,7 +1724,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"conda install keras"
@@ -1696,7 +1749,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# import necessary packages\n",
@@ -1747,7 +1803,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"from tensorflow.keras.layers import Input\n",
@@ -1772,7 +1831,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"\n",
@@ -1798,7 +1860,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"DNN_keras = np.zeros((len(eta_vals), len(lmbd_vals)), dtype=object)\n",
@@ -1821,7 +1886,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# optional\n",
@@ -1867,7 +1935,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"\n",
@@ -2610,7 +2681,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# import necessary packages\n",
@@ -2665,7 +2739,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"from tensorflow.keras import datasets, layers, models\n",
@@ -2703,7 +2780,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"def create_convolutional_neural_network_keras(input_shape, receptive_field,\n",
@@ -2744,7 +2824,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"CNN_keras = np.zeros((len(eta_vals), len(lmbd_vals)), dtype=object)\n",
@@ -2775,7 +2858,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": false,
"editable": true
},
"outputs": [],
"source": [
"# visual representation of grid search\n",
@@ -2822,25 +2908,7 @@
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
+1
View File
@@ -7,6 +7,7 @@ DATE: today
===== Plan for week 41 =====
* Thursday: Building our own Feed-forward Neural Network and discussion of project 2.
* "Video of Lecture":"https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h21/forelesningsvideoer/LectureOctober14.mp4?vrtx=view-as-webpage"
* Friday: Playing around with our own Feed-forward Neural Network and introduction to TensorFlow. Start convolutional Neural Networks (CNN).
Reading suggestions for both days: "Aurelien Geron's chapters 10-11":"https://github.com/CompPhysics/MachineLearning/blob/master/doc/T\