Skip to content

Commit

Permalink
publish sql2
Browse files Browse the repository at this point in the history
  • Loading branch information
lillianw101 committed Apr 4, 2024
1 parent 71bc751 commit 6ecef24
Show file tree
Hide file tree
Showing 330 changed files with 5,639 additions and 5,419 deletions.
File renamed without changes.
File renamed without changes.
Binary file added docs/case_study_HCE/images/data_life_cycle.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/case_study_HCE/images/vis_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ <h4 data-number="16.1.1.1" class="anchored" data-anchor-id="test-sets"><span cla
<span id="cb4-14"><a href="#cb4-14" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="ss">f"Test error: </span><span class="sc">{</span>test_error<span class="sc">}</span><span class="ss">"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Training error: 17.85851684101209
Test error: 23.192405629701074</code></pre>
Test error: 23.192405629736058</code></pre>
</div>
</div>
</section>
Expand Down Expand Up @@ -606,7 +606,7 @@ <h3 data-number="16.2.2" class="anchored" data-anchor-id="l1-lasso-regularizatio
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a>lasso_model.fit(X_train, Y_train)</span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a>lasso_model.coef_</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="4">
<div class="cell-output cell-output-display" data-execution_count="284">
<pre><code>array([-2.54932056e-01, -9.48597165e-04, 8.91976284e-06, -1.22872290e-08])</code></pre>
</div>
</div>
Expand All @@ -621,7 +621,7 @@ <h3 data-number="16.2.3" class="anchored" data-anchor-id="scaling-features-for-r
<summary>Code</summary>
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>X_train.head()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
<div class="cell-output cell-output-display" data-execution_count="5">
<div class="cell-output cell-output-display" data-execution_count="285">
<div>


Expand Down Expand Up @@ -681,7 +681,7 @@ <h3 data-number="16.2.3" class="anchored" data-anchor-id="scaling-features-for-r
<p>By inspecting the fitted parameters of our model, we see that this is the case – the parameter for <code>hp</code> is much larger in magnitude than the parameter for <code>hp^4</code>.</p>
<div class="cell" data-execution_count="6">
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>pd.DataFrame({<span class="st">"Feature"</span>:X_train.columns, <span class="st">"Parameter"</span>:lasso_model.coef_})</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="6">
<div class="cell-output cell-output-display" data-execution_count="286">
<div>


Expand Down Expand Up @@ -748,8 +748,8 @@ <h3 data-number="16.2.4" class="anchored" data-anchor-id="l2-ridge-regularizatio
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a>ridge_model.fit(X_train, Y_train)</span>
<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-4"><a href="#cb10-4" aria-hidden="true" tabindex="-1"></a>ridge_model.coef_</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="7">
<pre><code>array([ 5.89130559e-02, -6.42445915e-03, 4.44468157e-05, -8.83981945e-08])</code></pre>
<div class="cell-output cell-output-display" data-execution_count="287">
<pre><code>array([ 5.89130560e-02, -6.42445916e-03, 4.44468157e-05, -8.83981945e-08])</code></pre>
</div>
</div>
</section>
Expand Down
Binary file added docs/cv_regularization/images/constrained_gd.png
Binary file added docs/cv_regularization/images/diamond.png
Binary file added docs/cv_regularization/images/diamondpoint.png
Binary file added docs/cv_regularization/images/diamondreg.png
Binary file added docs/cv_regularization/images/largerq.png
Binary file added docs/cv_regularization/images/model_selection.png
Binary file added docs/cv_regularization/images/summary.png
Binary file added docs/cv_regularization/images/unconstrained.png
Binary file added docs/cv_regularization/images/validation_set.png
Binary file added docs/cv_regularization/images/verylarge.png
Binary file added docs/data100_logo.png
2,542 changes: 1,265 additions & 1,277 deletions eda/eda.html → docs/eda/eda.html

Large diffs are not rendered by default.

Binary file added docs/eda/images/variable.png
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ <h2 data-number="14.5" class="anchored" data-anchor-id="polynomial-features"><sp
<span id="cb6-12"><a href="#cb6-12" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="ss">f"MSE of model with (hp^2) feature: </span><span class="sc">{</span>np<span class="sc">.</span>mean((Y<span class="op">-</span>hp2_model_predictions)<span class="op">**</span><span class="dv">2</span>)<span class="sc">}</span><span class="ss">"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>MSE of model with (hp^2) feature: 18.984768907617223</code></pre>
<pre><code>MSE of model with (hp^2) feature: 18.984768907617216</code></pre>
</div>
<div class="cell-output cell-output-display">
<p><img src="feature_engineering_files/figure-html/cell-6-output-2.png" width="585" height="429"></p>
Expand Down
Binary file added docs/feature_engineering/images/bias.png
Binary file added docs/feature_engineering/images/bvt.png
Binary file added docs/feature_engineering/images/complex.png
Binary file added docs/feature_engineering/images/gd.png
Binary file added docs/feature_engineering/images/ohe.png
Binary file added docs/feature_engineering/images/ohemodel.png
Binary file added docs/feature_engineering/images/phi.png
Binary file added docs/feature_engineering/images/pytorchsgd.png
Binary file added docs/feature_engineering/images/remove.png
Binary file added docs/feature_engineering/images/resamples.png
Binary file added docs/feature_engineering/images/sgd.png
Binary file added docs/feature_engineering/images/train_error.png

Large diffs are not rendered by default.

Binary file added docs/gradient_descent/images/arbitrary.png
Binary file added docs/gradient_descent/images/convex.png
Binary file added docs/gradient_descent/images/grad_descent_1.png
Binary file added docs/gradient_descent/images/grad_descent_3.png
Binary file added docs/gradient_descent/images/local.png
Binary file added docs/gradient_descent/images/loss_surface.png
Binary file added docs/gradient_descent/images/neg_step.png
Binary file added docs/gradient_descent/images/pos_step.png
Binary file added docs/gradient_descent/images/step.png
Binary file added docs/gradient_descent/images/stochastic.png
File renamed without changes.
Binary file added docs/inference_causality/images/bootstrap.png
Binary file added docs/inference_causality/images/confounder.png
Binary file added docs/inference_causality/images/experiment.png
Binary file added docs/inference_causality/images/observational.png
Binary file added docs/inference_causality/images/plover_eggs.jpg
Loading

0 comments on commit 6ecef24

Please sign in to comment.