tensorflow problems with chapter 12
This commit is contained in:
@@ -752,7 +752,7 @@ which equals</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><mpl_toolkits.mplot3d.art3d.Poly3DCollection at 0x7fc6b1bd1790>
|
||||
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span><mpl_toolkits.mplot3d.art3d.Poly3DCollection at 0x7f9f087db790>
|
||||
</pre></div>
|
||||
</div>
|
||||
<img alt="_images/chapteroptimization_56_1.png" src="_images/chapteroptimization_56_1.png" />
|
||||
@@ -810,7 +810,7 @@ which equals</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[<matplotlib.lines.Line2D at 0x7fc6a0739340>]
|
||||
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[<matplotlib.lines.Line2D at 0x7f9f1a921340>]
|
||||
</pre></div>
|
||||
</div>
|
||||
<img alt="_images/chapteroptimization_64_1.png" src="_images/chapteroptimization_64_1.png" />
|
||||
@@ -1067,11 +1067,11 @@ when <span class="math notranslate nohighlight">\(||\nabla_\beta C(\beta_k) || \
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[0.30875823 4.41879302]
|
||||
[[3.96285336]
|
||||
[3.28329188]]
|
||||
[[3.96285336]
|
||||
[3.28329188]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[0.30862336 4.94226154]
|
||||
[[4.09553421]
|
||||
[2.99517651]]
|
||||
[[4.09553421]
|
||||
[2.99517651]]
|
||||
</pre></div>
|
||||
</div>
|
||||
<img alt="_images/chapteroptimization_118_1.png" src="_images/chapteroptimization_118_1.png" />
|
||||
@@ -1100,9 +1100,9 @@ when <span class="math notranslate nohighlight">\(||\nabla_\beta C(\beta_k) || \
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[3.75582035]
|
||||
[3.15167261]]
|
||||
[3.7821634] [3.18303503]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[4.1224808 ]
|
||||
[2.97290346]]
|
||||
[4.09600813] [2.93854356]
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1173,10 +1173,10 @@ C_{\text{ridge}}(\beta) = \frac{1}{n}||X\beta -\mathbf{y}||^2 + \lambda ||\beta|
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[4.05636001]
|
||||
[2.75240368]]
|
||||
[[3.99394477]
|
||||
[2.80463702]]
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[[3.95338481]
|
||||
[2.95611545]]
|
||||
[[3.99545147]
|
||||
[2.91812296]]
|
||||
</pre></div>
|
||||
</div>
|
||||
<img alt="_images/chapteroptimization_127_1.png" src="_images/chapteroptimization_127_1.png" />
|
||||
@@ -1401,21 +1401,19 @@ function.</p>
|
||||
</div>
|
||||
<div class="cell_output docutils container">
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Own inversion
|
||||
[[3.88168518]
|
||||
[3.04348504]]
|
||||
[[3.87218485]
|
||||
[3.01403105]]
|
||||
sgdreg from scikit
|
||||
[3.92115534] [3.13964362]
|
||||
[3.9030809] [3.07154525]
|
||||
theta from own gd
|
||||
[[3.88168518]
|
||||
[3.04348504]]
|
||||
[[3.87218485]
|
||||
[3.01403105]]
|
||||
theta from own sdg
|
||||
[[3.86110774]
|
||||
[3.00070278]]
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>theta from own sdg
|
||||
[[3.92555588]
|
||||
[3.0163616 ]]
|
||||
</pre></div>
|
||||
</div>
|
||||
<img alt="_images/chapteroptimization_141_2.png" src="_images/chapteroptimization_141_2.png" />
|
||||
<img alt="_images/chapteroptimization_141_1.png" src="_images/chapteroptimization_141_1.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user