Skip to content

Commit

Permalink
Build notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
papajohn committed Jul 28, 2017
1 parent 64b20f0 commit 710ed4e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 621 deletions.
612 changes: 0 additions & 612 deletions OLD_Normal.ipynb

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ This is the textbook for the [Foundations of Data Science class at UC Berkeley][
[data8]: http://data8.org/
[gitbook]: https://ds8.gitbooks.io/textbook/content/

The contents of this book are licensed for reuse under [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)](http://creativecommons.org/licenses/by-nc/4.0/)
The contents of this book are licensed for free consumption under the following license:
[Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)](https://creativecommons.org/licenses/by-nc-nd/4.0/)
Binary file added book.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions notebooks-html/Multiple_Regression.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ <h4 id="Interpreting-Multiple-Regression">Interpreting Multiple Regression<a cla
<span class="k">return</span> <span class="nb">sum</span><span class="p">(</span><span class="n">best_slopes</span> <span class="o">*</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">row</span><span class="p">))</span>

<span class="n">test</span><span class="o">.</span><span class="n">with_column</span><span class="p">(</span><span class="s1">'Fitted'</span><span class="p">,</span> <span class="n">test</span><span class="o">.</span><span class="n">drop</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="n">fit</span><span class="p">))</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="s1">'Fitted'</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mf">5e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mf">5e5</span><span class="p">]);</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mi">5</span><span class="n">e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">5</span><span class="n">e5</span><span class="p">]);</span>
</pre></div></div></div>
<div class="output_png output_subarea ">
<img src="/notebooks-images/Multiple_Regression_26_0.png"/></div>
Expand All @@ -262,7 +262,7 @@ <h4 id="Interpreting-Multiple-Regression">Interpreting Multiple Regression<a cla
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">test</span><span class="o">.</span><span class="n">with_column</span><span class="p">(</span><span class="s1">'Residual'</span><span class="p">,</span> <span class="n">test_prices</span><span class="o">-</span><span class="n">test</span><span class="o">.</span><span class="n">drop</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="n">fit</span><span class="p">))</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="s1">'Residual'</span><span class="p">)</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mf">7e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]);</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mi">7</span><span class="n">e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]);</span>
</pre></div></div></div>
<div class="output_png output_subarea ">
<img src="/notebooks-images/Multiple_Regression_28_0.png"/></div>
Expand Down Expand Up @@ -404,7 +404,7 @@ <h4 id="Evaluation">Evaluation<a class="anchor-link" href="#Evaluation">¶</a></
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">test</span><span class="o">.</span><span class="n">with_column</span><span class="p">(</span><span class="s1">'Residual'</span><span class="p">,</span> <span class="n">test_prices</span><span class="o">-</span><span class="n">nn_test_predictions</span><span class="p">)</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="s1">'Residual'</span><span class="p">)</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mf">7e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]);</span>
<span class="n">plots</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">0</span><span class="p">,</span> <span class="mi">7</span><span class="n">e5</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]);</span>
</pre></div></div></div>
<div class="output_png output_subarea ">
<img src="/notebooks-images/Multiple_Regression_41_0.png"/></div></div>
8 changes: 4 additions & 4 deletions notebooks-html/Numbers.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,25 @@ <h2 id="Float-Values">Float Values<a class="anchor-link" href="#Float-Values">¶
<p>The first limit can be observed in two ways. If the result of a computation is a very large number, then it is represented as infinite. If the result is a very small number, then it is represented as zero.</p></div></div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mf">2e306</span> <span class="o">*</span> <span class="mi">10</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">2</span><span class="n">e306</span> <span class="o">*</span> <span class="mi">10</span>
</pre></div></div></div>
<div class="output_text output_subarea output_execute_result">
<pre>2e+307</pre></div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mf">2e306</span> <span class="o">*</span> <span class="mi">100</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">2</span><span class="n">e306</span> <span class="o">*</span> <span class="mi">100</span>
</pre></div></div></div>
<div class="output_text output_subarea output_execute_result">
<pre>inf</pre></div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mf">2e-322</span> <span class="o">/</span> <span class="mi">10</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">2</span><span class="n">e</span><span class="o">-</span><span class="mi">322</span> <span class="o">/</span> <span class="mi">10</span>
</pre></div></div></div>
<div class="output_text output_subarea output_execute_result">
<pre>2e-323</pre></div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mf">2e-322</span> <span class="o">/</span> <span class="mi">100</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">2</span><span class="n">e</span><span class="o">-</span><span class="mi">322</span> <span class="o">/</span> <span class="mi">100</span>
</pre></div></div></div>
<div class="output_text output_subarea output_execute_result">
<pre>0.0</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion notebooks-html/Visualizing_Numerical_Distributions.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h3 id="Visualizing-the-Distribution-of-the-Adjusted-Receipts">Visualizing the D
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">millions</span> <span class="o">=</span> <span class="n">top</span><span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">with_column</span><span class="p">(</span><span class="s1">'Adjusted Gross'</span><span class="p">,</span>
<span class="n">np</span><span class="o">.</span><span class="n">round</span><span class="p">(</span><span class="n">top</span><span class="o">.</span><span class="n">column</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span><span class="o">/</span><span class="mf">1e6</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span>
<span class="n">np</span><span class="o">.</span><span class="n">round</span><span class="p">(</span><span class="n">top</span><span class="o">.</span><span class="n">column</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span><span class="o">/</span><span class="mi">1</span><span class="n">e6</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span>
<span class="n">millions</span>
</pre></div></div></div>
<div class="output_html rendered_html output_subarea output_execute_result">
Expand Down

0 comments on commit 710ed4e

Please sign in to comment.