Skip to content

Commit

Permalink
deploy: c0b7f83
Browse files Browse the repository at this point in the history
  • Loading branch information
kvarada committed Sep 17, 2024
1 parent 05c25ba commit ef46f09
Show file tree
Hide file tree
Showing 47 changed files with 451 additions and 458 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ca2a38899b356a7899cd38661bb1355f
config: 554a59c314e237780ccd0daf6a452d37
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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.
Binary file not shown.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,14 @@
"for idx in test_idx: \n",
" show_nearest_neighbors(idx, nn, Z_valid, X_valid, y_valid)"
]
},
{
"cell_type": "markdown",
"id": "9961525a-1dfe-4f55-a212-18d7bf4460bb",
"metadata": {},
"source": [
"We can use $k$-NNs for more than just classifying images; we can also find the most similar examples in a dataset. You can see how this would be useful in recommendation systems. For instance, if a user is purchasing an item, you can find similar items in the dataset and recommend them to the user! "
]
}
],
"metadata": {
Expand Down
8 changes: 4 additions & 4 deletions docs/python_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ <h2>Plotting with matplotlib<a class="headerlink" href="#plotting-with-matplotli
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f59312d12b0&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7ff1ef9590a0&gt;]
</pre></div>
</div>
<img alt="../_images/6d8e3ea93b7cb9116da742e92520b5c420c6540e375892d6d625581427aa3c26.png" src="../_images/6d8e3ea93b7cb9116da742e92520b5c420c6540e375892d6d625581427aa3c26.png" />
Expand Down Expand Up @@ -580,8 +580,8 @@ <h2>Numpy arrays<a class="headerlink" href="#numpy-arrays" title="Link to this h
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>array([[0.44139625, 0.43626186, 0.65856232],
[0.46108841, 0.7530967 , 0.46051356]])
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>array([[0.11145201, 0.15054698, 0.81753201],
[0.15724602, 0.74952118, 0.01952255]])
</pre></div>
</div>
</div>
Expand All @@ -593,7 +593,7 @@ <h2>Numpy arrays<a class="headerlink" href="#numpy-arrays" title="Link to this h
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.4362618573572439
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.15054698396555055
</pre></div>
</div>
</div>
Expand Down
120 changes: 51 additions & 69 deletions lectures/101-Giulia-lectures/01_intro.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lectures/101-Giulia-lectures/02_terminology-decision-trees.html
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ <h4><code class="docutils literal notranslate"><span class="pre">DecisionTreeCla
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/79001dc601ac1479c4c86ad0e8925ba5021d076a29bbcb6858e2645552c4e9df.png" src="../../_images/79001dc601ac1479c4c86ad0e8925ba5021d076a29bbcb6858e2645552c4e9df.png" />
<img alt="../../_images/98b3c7f65509513b2bb80c6f63b56e461f7aaf02abdab66417cb76b2a6f833d9.png" src="../../_images/98b3c7f65509513b2bb80c6f63b56e461f7aaf02abdab66417cb76b2a6f833d9.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -2550,7 +2550,7 @@ <h3>How does <code class="docutils literal notranslate"><span class="pre">predic
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/79001dc601ac1479c4c86ad0e8925ba5021d076a29bbcb6858e2645552c4e9df.png" src="../../_images/79001dc601ac1479c4c86ad0e8925ba5021d076a29bbcb6858e2645552c4e9df.png" />
<img alt="../../_images/98b3c7f65509513b2bb80c6f63b56e461f7aaf02abdab66417cb76b2a6f833d9.png" src="../../_images/98b3c7f65509513b2bb80c6f63b56e461f7aaf02abdab66417cb76b2a6f833d9.png" />
</div>
</div>
<p>What’s the prediction for the new example?</p>
Expand All @@ -2561,7 +2561,7 @@ <h3>How does <code class="docutils literal notranslate"><span class="pre">predic
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but DecisionTreeClassifier was fitted with feature names
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages/sklearn/base.py:493: UserWarning: X does not have valid feature names, but DecisionTreeClassifier was fitted with feature names
warnings.warn(
</pre></div>
</div>
Expand Down Expand Up @@ -2615,7 +2615,7 @@ <h3>How does <code class="docutils literal notranslate"><span class="pre">fit</s
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/b4d218560842f93a80f7f728f2c8ca74144218d530177c33a81c8f978e3d57bc.png" src="../../_images/b4d218560842f93a80f7f728f2c8ca74144218d530177c33a81c8f978e3d57bc.png" />
<img alt="../../_images/83d5a60cb1a4faf70964b85a505dd42a2ef37171ffbdbae01c4bbf580c585630.png" src="../../_images/83d5a60cb1a4faf70964b85a505dd42a2ef37171ffbdbae01c4bbf580c585630.png" />
</div>
</div>
<div class="warning admonition">
Expand Down Expand Up @@ -2730,7 +2730,7 @@ <h3>Decision trees with continuous features<a class="headerlink" href="#decision
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/daa893b0602811c4f75c8b3e3c7ffd7660807d0462389aab93d51966e84118f2.png" src="../../_images/daa893b0602811c4f75c8b3e3c7ffd7660807d0462389aab93d51966e84118f2.png" />
<img alt="../../_images/4a20ad8a5ff472074d1c66a1b85a29eb5c33724f5594ba3e3cdeb245f9812650.png" src="../../_images/4a20ad8a5ff472074d1c66a1b85a29eb5c33724f5594ba3e3cdeb245f9812650.png" />
</div>
</div>
</section>
Expand Down Expand Up @@ -3083,7 +3083,7 @@ <h3>Decision tree with <code class="docutils literal notranslate"><span class="p
</div>
</div>
<div class="cell_output docutils container">
<img alt="../../_images/392bae792b57872b170e82239299b797e0d1263e1b925f7208e33db2b6934086.png" src="../../_images/392bae792b57872b170e82239299b797e0d1263e1b925f7208e33db2b6934086.png" />
<img alt="../../_images/457f331ee033d246f20d22c20dab407304a36a5b97d060108254e872a95e7df6.png" src="../../_images/457f331ee033d246f20d22c20dab407304a36a5b97d060108254e872a95e7df6.png" />
</div>
</div>
</section>
Expand Down
Loading

0 comments on commit ef46f09

Please sign in to comment.