update on notes
This commit is contained in:
@@ -338,6 +338,11 @@ const thebe_selector_output = ".output, .cell_output"
|
||||
Exercises Week 42: Logistic Regression and Optimization, reminders from week 38 and week 40
|
||||
</a>
|
||||
</li>
|
||||
<li class="toctree-l1">
|
||||
<a class="reference internal" href="week43.html">
|
||||
Week 43: Deep Learning: Constructing a Neural Network code and solving differential equations
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p aria-level="2" class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
@@ -1320,10 +1325,10 @@ covariance matrix through the <strong>np.linalg.eig()</strong> function.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.10454793727627841
|
||||
4.330660516571777
|
||||
[[0.89100924 2.77618181]
|
||||
[2.77618181 9.5086728 ]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>-0.1982973034395375
|
||||
3.328462040651484
|
||||
[[ 1.08036056 3.23565337]
|
||||
[ 3.23565337 10.80845707]]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1360,10 +1365,10 @@ a more brute force way. Here we scale the mean values for each column of the des
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.08559230156092426
|
||||
1.6576130374029565
|
||||
[[1. 0.71664506]
|
||||
[0.71664506 1. ]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.08154221680664263
|
||||
2.12282958127703
|
||||
[[1. 0.6177137]
|
||||
[0.6177137 1. ]]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1393,32 +1398,30 @@ this matrix we easily see that it is a positive definite matrix.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[-0.34732758 -0.3068659 ]
|
||||
[ 1.21333606 3.23015412]
|
||||
[-0.54442191 -0.07166646]
|
||||
[ 0.51470773 1.33570831]
|
||||
[-0.31568288 -1.20511614]
|
||||
[-0.14218838 0.19488947]
|
||||
[ 1.15599422 2.35798999]
|
||||
[-0.91029443 -3.07195418]
|
||||
[-0.92262217 -3.09512539]
|
||||
[ 0.29849933 0.63198618]]
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0 1
|
||||
0 -0.347328 -0.306866
|
||||
1 1.213336 3.230154
|
||||
2 -0.544422 -0.071666
|
||||
3 0.514708 1.335708
|
||||
4 -0.315683 -1.205116
|
||||
5 -0.142188 0.194889
|
||||
6 1.155994 2.357990
|
||||
7 -0.910294 -3.071954
|
||||
8 -0.922622 -3.095125
|
||||
9 0.298499 0.631986
|
||||
0 1
|
||||
0 1.00000 0.94652
|
||||
1 0.94652 1.00000
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[ 0.14690374 -1.08896995]
|
||||
[-0.14465374 -0.8889085 ]
|
||||
[-0.01877081 0.85085928]
|
||||
[-0.20536579 -1.03613164]
|
||||
[ 0.28162714 0.25445 ]
|
||||
[-0.25588843 -2.27916593]
|
||||
[-0.11479519 -0.41788797]
|
||||
[ 0.19483625 1.37363888]
|
||||
[-0.03282533 0.94863824]
|
||||
[ 0.14893216 2.28347758]]
|
||||
0 1
|
||||
0 0.146904 -1.088970
|
||||
1 -0.144654 -0.888908
|
||||
2 -0.018771 0.850859
|
||||
3 -0.205366 -1.036132
|
||||
4 0.281627 0.254450
|
||||
5 -0.255888 -2.279166
|
||||
6 -0.114795 -0.417888
|
||||
7 0.194836 1.373639
|
||||
8 -0.032825 0.948638
|
||||
9 0.148932 2.283478
|
||||
0 1
|
||||
0 1.000000 0.631471
|
||||
1 0.631471 1.000000
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1475,37 +1478,37 @@ this matrix we easily see that it is a positive definite matrix.</p>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0 1 2 3 4 5 6 7 \
|
||||
0 0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
|
||||
1 0.0 0.081845 0.082878 0.080997 0.085369 0.089785 0.071580 0.075878
|
||||
2 0.0 0.082878 0.084934 0.080301 0.085150 0.090174 0.070017 0.074524
|
||||
3 0.0 0.080997 0.080301 0.084987 0.088609 0.092062 0.077953 0.082043
|
||||
4 0.0 0.085369 0.085150 0.088609 0.092703 0.096690 0.080658 0.085099
|
||||
5 0.0 0.089785 0.090174 0.092062 0.096690 0.101288 0.083092 0.087909
|
||||
6 0.0 0.071580 0.070017 0.077953 0.080658 0.083092 0.073392 0.076829
|
||||
7 0.0 0.075878 0.074524 0.082043 0.085099 0.087909 0.076829 0.080576
|
||||
8 0.0 0.080448 0.079369 0.086306 0.089761 0.093004 0.080353 0.084440
|
||||
9 0.0 0.085295 0.084568 0.090721 0.094630 0.098371 0.083930 0.088390
|
||||
10 0.0 0.062310 0.060384 0.069636 0.071646 0.073349 0.066841 0.069680
|
||||
11 0.0 0.066030 0.064186 0.073411 0.075677 0.077641 0.070178 0.073270
|
||||
12 0.0 0.070021 0.068289 0.077414 0.079967 0.082230 0.073684 0.077053
|
||||
13 0.0 0.074301 0.072721 0.081652 0.084531 0.087135 0.077358 0.081031
|
||||
14 0.0 0.078889 0.077510 0.086130 0.089377 0.092374 0.081194 0.085201
|
||||
1 0.0 0.072263 0.073863 0.075238 0.072577 0.069597 0.068931 0.065674
|
||||
2 0.0 0.073863 0.076665 0.078474 0.076248 0.073525 0.072653 0.069507
|
||||
3 0.0 0.075238 0.078474 0.083331 0.081232 0.078589 0.079443 0.076163
|
||||
4 0.0 0.072577 0.076248 0.081232 0.079487 0.077139 0.077899 0.074866
|
||||
5 0.0 0.069597 0.073525 0.078589 0.077139 0.075058 0.075761 0.072967
|
||||
6 0.0 0.068931 0.072653 0.079443 0.077899 0.075761 0.077837 0.074911
|
||||
7 0.0 0.065674 0.069507 0.076163 0.074866 0.072967 0.074911 0.072226
|
||||
8 0.0 0.062481 0.066354 0.072859 0.071774 0.070087 0.071919 0.069457
|
||||
9 0.0 0.059398 0.063264 0.069606 0.068701 0.067204 0.068939 0.066680
|
||||
10 0.0 0.061779 0.065469 0.073182 0.072011 0.070273 0.073144 0.070581
|
||||
11 0.0 0.058670 0.062345 0.069785 0.068797 0.067249 0.069948 0.067597
|
||||
12 0.0 0.055715 0.059348 0.066520 0.065690 0.064311 0.066854 0.064699
|
||||
13 0.0 0.052918 0.056491 0.063401 0.062709 0.061482 0.063883 0.061907
|
||||
14 0.0 0.050281 0.053781 0.060435 0.059864 0.058774 0.061045 0.059233
|
||||
|
||||
8 9 10 11 12 13 14
|
||||
0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
|
||||
1 0.080448 0.085295 0.062310 0.066030 0.070021 0.074301 0.078889
|
||||
2 0.079369 0.084568 0.060384 0.064186 0.068289 0.072721 0.077510
|
||||
3 0.086306 0.090721 0.069636 0.073411 0.077414 0.081652 0.086130
|
||||
4 0.089761 0.094630 0.071646 0.075677 0.079967 0.084531 0.089377
|
||||
5 0.093004 0.098371 0.073349 0.077641 0.082230 0.087135 0.092374
|
||||
6 0.080353 0.083930 0.066841 0.070178 0.073684 0.077358 0.081194
|
||||
7 0.084440 0.088390 0.069680 0.073270 0.077053 0.081031 0.085201
|
||||
8 0.088680 0.093045 0.072551 0.076411 0.080493 0.084801 0.089338
|
||||
9 0.093045 0.097873 0.075416 0.079566 0.083970 0.088636 0.093572
|
||||
10 0.072551 0.075416 0.061795 0.064667 0.067662 0.070774 0.073993
|
||||
11 0.076411 0.079566 0.064667 0.067758 0.070991 0.074360 0.077857
|
||||
12 0.080493 0.083970 0.067662 0.070991 0.074482 0.078131 0.081931
|
||||
13 0.084801 0.088636 0.070774 0.074360 0.078131 0.082085 0.086218
|
||||
14 0.089338 0.093572 0.073993 0.077857 0.081931 0.086218 0.090717
|
||||
1 0.062481 0.059398 0.061779 0.058670 0.055715 0.052918 0.050281
|
||||
2 0.066354 0.063264 0.065469 0.062345 0.059348 0.056491 0.053781
|
||||
3 0.072859 0.069606 0.073182 0.069785 0.066520 0.063401 0.060435
|
||||
4 0.071774 0.068701 0.072011 0.068797 0.065690 0.062709 0.059864
|
||||
5 0.070087 0.067204 0.070273 0.067249 0.064311 0.061482 0.058774
|
||||
6 0.071919 0.068939 0.073144 0.069948 0.066854 0.063883 0.061045
|
||||
7 0.069457 0.066680 0.070581 0.067597 0.064699 0.061907 0.059233
|
||||
8 0.066896 0.064314 0.067935 0.065156 0.062446 0.059827 0.057312
|
||||
9 0.064314 0.061915 0.065282 0.062695 0.060163 0.057711 0.055349
|
||||
10 0.067935 0.065282 0.069784 0.066877 0.064054 0.061333 0.058726
|
||||
11 0.065156 0.062695 0.066877 0.064176 0.061545 0.059003 0.056561
|
||||
12 0.062446 0.060163 0.064054 0.061545 0.059093 0.056718 0.054432
|
||||
13 0.059827 0.057711 0.061333 0.059003 0.056718 0.054500 0.052360
|
||||
14 0.057312 0.055349 0.058726 0.056561 0.054432 0.052360 0.050357
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user