diff --git a/doc/pub/week34/html/._week34-bs000.html b/doc/pub/week34/html/._week34-bs000.html index 92b2c270b..453306eef 100644 --- a/doc/pub/week34/html/._week34-bs000.html +++ b/doc/pub/week34/html/._week34-bs000.html @@ -384,7 +384,7 @@ MathJax.Hub.Config({
-
diff --git a/doc/pub/week34/html/._week34-bs037.html b/doc/pub/week34/html/._week34-bs037.html index 9fa8d668c..dc8c8109e 100644 --- a/doc/pub/week34/html/._week34-bs037.html +++ b/doc/pub/week34/html/._week34-bs037.html @@ -367,6 +367,9 @@ MathJax.Hub.Config({
+"Video of Lecture August 27, 2021":"https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h21/forelesningsvideoer/LectureThursdayAugust27.mp4?vrtx=view-as-webpage +
Video of Lecture from fall 2020 and Handwritten notes diff --git a/doc/pub/week34/html/week34-bs.html b/doc/pub/week34/html/week34-bs.html index 92b2c270b..453306eef 100644 --- a/doc/pub/week34/html/week34-bs.html +++ b/doc/pub/week34/html/week34-bs.html @@ -384,7 +384,7 @@ MathJax.Hub.Config({
-
diff --git a/doc/pub/week34/html/week34-reveal.html b/doc/pub/week34/html/week34-reveal.html index 07e207628..194d7a642 100644 --- a/doc/pub/week34/html/week34-reveal.html +++ b/doc/pub/week34/html/week34-reveal.html @@ -148,7 +148,7 @@ MathJax.Hub.Config({
-
@@ -1442,6 +1442,9 @@ For multidimensional arrays, we recommend strongly Friday August 27
+
+"Video of Lecture August 27, 2021":"https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h21/forelesningsvideoer/LectureThursdayAugust27.mp4?vrtx=view-as-webpage
+
Video of Lecture from fall 2020 and Handwritten notes
diff --git a/doc/pub/week34/html/week34-solarized.html b/doc/pub/week34/html/week34-solarized.html
index 537a3b7fa..1931daac5 100644
--- a/doc/pub/week34/html/week34-solarized.html
+++ b/doc/pub/week34/html/week34-solarized.html
@@ -300,7 +300,7 @@ MathJax.Hub.Config({
-
+"Video of Lecture August 27, 2021":"https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h21/forelesningsvideoer/LectureThursdayAugust27.mp4?vrtx=view-as-webpage
+
Video of Lecture from fall 2020 and Handwritten notes
diff --git a/doc/pub/week34/html/week34.html b/doc/pub/week34/html/week34.html
index 808fa980d..05fd55162 100644
--- a/doc/pub/week34/html/week34.html
+++ b/doc/pub/week34/html/week34.html
@@ -305,7 +305,7 @@ MathJax.Hub.Config({
-
+"Video of Lecture August 27, 2021":"https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h21/forelesningsvideoer/LectureThursdayAugust27.mp4?vrtx=view-as-webpage
+
Video of Lecture from fall 2020 and Handwritten notes
diff --git a/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz b/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz
index cf39415ef..8c95f811d 100644
Binary files a/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz and b/doc/pub/week34/ipynb/ipynb-week34-src.tar.gz differ
diff --git a/doc/pub/week34/ipynb/week34.ipynb b/doc/pub/week34/ipynb/week34.ipynb
index 6031333d1..ced05ff31 100644
--- a/doc/pub/week34/ipynb/week34.ipynb
+++ b/doc/pub/week34/ipynb/week34.ipynb
@@ -10,7 +10,7 @@
" \n",
"**Morten Hjorth-Jensen**, Department of Physics, University of Oslo and Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University\n",
"\n",
- "Date: **Aug 27, 2021**\n",
+ "Date: **Aug 28, 2021**\n",
"\n",
"Copyright 1999-2021, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license\n",
"\n",
@@ -819,7 +819,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np"
@@ -835,7 +838,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"n = 10\n",
@@ -854,7 +860,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -873,7 +882,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -897,7 +909,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -919,7 +934,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -937,7 +955,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -955,7 +976,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -977,7 +1001,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -995,7 +1022,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1014,7 +1044,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1033,7 +1066,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1053,7 +1089,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1073,7 +1112,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1157,7 +1199,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# Importing various packages\n",
@@ -1180,7 +1225,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"%matplotlib inline\n",
@@ -1223,7 +1271,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import pandas as pd\n",
@@ -1250,7 +1301,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"data_pandas = pd.DataFrame(data,index=['Frodo','Bilbo','Aragorn','Sam'])\n",
@@ -1267,7 +1321,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"display(data_pandas.loc['Aragorn'])"
@@ -1283,7 +1340,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"new_hobbit = {'First Name': [\"Peregrin\"],\n",
@@ -1306,7 +1366,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1334,7 +1397,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"df.columns = ['First', 'Second', 'Third', 'Fourth', 'Fifth']\n",
@@ -1367,7 +1433,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"b = np.arange(16).reshape((4,4))\n",
@@ -1392,6 +1461,11 @@
"\n",
"## Friday August 27\n",
"\n",
+ "\n",
+ "\"Video of Lecture August 27, 2021\":\"https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h21/forelesningsvideoer/LectureThursdayAugust27.mp4?vrtx=view-as-webpage\n",
+ "\n",
+ "\n",
+ "\n",
"[Video of Lecture from fall 2020](https://www.uio.no/studier/emner/matnat/fys/FYS-STK3155/h20/forelesningsvideoer/LectureAug21.mp4?vrtx=view-as-webpage) and [Handwritten notes](https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/NotesAugust21.pdf)\n",
"\n",
"\n",
@@ -1458,7 +1532,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# Importing various packages\n",
@@ -1587,7 +1664,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np\n",
@@ -1629,7 +1709,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import numpy as np \n",
@@ -1802,7 +1885,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
@@ -2006,7 +2092,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# Common imports\n",
@@ -2054,7 +2143,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"from pylab import plt, mpl\n",
@@ -2087,7 +2179,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"\"\"\" \n",
@@ -2115,7 +2210,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# Read the experimental data with Pandas\n",
@@ -2157,7 +2255,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"A = Masses['A']\n",
@@ -2179,7 +2280,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# Now we set up the design matrix X\n",
@@ -2201,7 +2305,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"clf = skl.LinearRegression().fit(X, Energies)\n",
@@ -2219,7 +2326,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"# The mean squared error \n",
@@ -2256,7 +2366,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"\n",
@@ -2304,7 +2417,10 @@
{
"cell_type": "code",
"execution_count": null,
- "metadata": {},
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
"outputs": [],
"source": [
"from sklearn.neural_network import MLPRegressor\n",
@@ -2716,161 +2832,12 @@
},
{
"cell_type": "code",
- "execution_count": 1,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- " 267 rows × 5 columns
Aug 27, 2021
Aug 28, 2021
@@ -1545,6 +1545,9 @@ For multidimensional arrays, we recommend strongly Friday August 27
+
Aug 27, 2021
Aug 28, 2021
@@ -1550,6 +1550,9 @@ For multidimensional arrays, we recommend strongly Friday August 27
+\n",
- " \n",
- "
\n",
- "\n",
- " \n",
- " \n",
- " 1 \n",
- " A \n",
- " A^(2/3) \n",
- " A^(-1/3) \n",
- " 1/A \n",
- " \n",
- " \n",
- " \n",
- " \n",
- " A \n",
- " \n",
- " \n",
- " \n",
- " \n",
- " \n",
- " \n",
- " \n",
- " 1 \n",
- " 1.0 \n",
- " 1.0 \n",
- " 1.000000 \n",
- " 1.000000 \n",
- " 1.000000 \n",
- " \n",
- " \n",
- " 2 \n",
- " 1.0 \n",
- " 2.0 \n",
- " 1.587401 \n",
- " 0.793701 \n",
- " 0.500000 \n",
- " \n",
- " \n",
- " 3 \n",
- " 1.0 \n",
- " 3.0 \n",
- " 2.080084 \n",
- " 0.693361 \n",
- " 0.333333 \n",
- " \n",
- " \n",
- " 4 \n",
- " 1.0 \n",
- " 4.0 \n",
- " 2.519842 \n",
- " 0.629961 \n",
- " 0.250000 \n",
- " \n",
- " \n",
- " 5 \n",
- " 1.0 \n",
- " 5.0 \n",
- " 2.924018 \n",
- " 0.584804 \n",
- " 0.200000 \n",
- " \n",
- " \n",
- " ... \n",
- " ... \n",
- " ... \n",
- " ... \n",
- " ... \n",
- " ... \n",
- " \n",
- " \n",
- " 264 \n",
- " 1.0 \n",
- " 264.0 \n",
- " 41.153106 \n",
- " 0.155883 \n",
- " 0.003788 \n",
- " \n",
- " \n",
- " 265 \n",
- " 1.0 \n",
- " 265.0 \n",
- " 41.256962 \n",
- " 0.155687 \n",
- " 0.003774 \n",
- " \n",
- " \n",
- " 266 \n",
- " 1.0 \n",
- " 266.0 \n",
- " 41.360688 \n",
- " 0.155491 \n",
- " 0.003759 \n",
- " \n",
- " \n",
- " 269 \n",
- " 1.0 \n",
- " 269.0 \n",
- " 41.671089 \n",
- " 0.154911 \n",
- " 0.003717 \n",
- " \n",
- " \n",
- " \n",
- "270 \n",
- " 1.0 \n",
- " 270.0 \n",
- " 41.774300 \n",
- " 0.154720 \n",
- " 0.003704 \n",
- "