Skip to content

Commit

Permalink
deploy: be04114
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm committed Sep 6, 2024
1 parent 9ea8ad6 commit e939147
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 72 deletions.
14 changes: 13 additions & 1 deletion _sources/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,19 @@ If the `conda env create -f cpsc330env.yml` command above results in an error on
- Get rid of the line with that package from your local copy of `cpsc330env.yml`.
- Try creating the environment again with the modified `cpsc330env.yml`.
- Once the environment is created, activate the environment and install the missing packages manually in the environment. You may have to install these packages using `pip install` in some cases, as the most recent version of the package might not available via `conda` for your operating system yet.
- If you still have trouble with the environment and running lecture notebooks on your machine, make use of office hours and tutorials.
- If you still have trouble with the environment and running lecture notebooks on your machine, make use of office hours and tutorials.
## [Optional] Jupyterlab and/or Python
Here is a short video of an introduction to JupyterLab and Python - I created the video for another course that uses similar tooling.
If you're new to Jupyterlab and/or Python, I encourage you to watch this to get familiar with the tools:
<div class="container youtube">
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1006820659?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Introduction to Jupyterlab and Python"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
</div>
## Credit
Expand Down
8 changes: 4 additions & 4 deletions docs/python_notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,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 0x7f98a00c8650&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f3c46a48740&gt;]
</pre></div>
</div>
<img alt="../_images/6d8e3ea93b7cb9116da742e92520b5c420c6540e375892d6d625581427aa3c26.png" src="../_images/6d8e3ea93b7cb9116da742e92520b5c420c6540e375892d6d625581427aa3c26.png" />
Expand Down Expand Up @@ -569,8 +569,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.6222033 , 0.42350422, 0.25712732],
[0.72397462, 0.9256539 , 0.59178441]])
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>array([[0.29273471, 0.22913786, 0.10973042],
[0.40477697, 0.19258179, 0.30670774]])
</pre></div>
</div>
</div>
Expand All @@ -582,7 +582,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.42350421557951057
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.22913786063655406
</pre></div>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions docs/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ <h2> Contents </h2>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#debugging">Debugging</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#optional-jupyterlab-and-or-python">[Optional] Jupyterlab and/or Python</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#credit">Credit</a></li>
</ul>
</nav>
Expand Down Expand Up @@ -517,6 +518,14 @@ <h3>Debugging<a class="headerlink" href="#debugging" title="Link to this heading
</ul>
</section>
</section>
<section id="optional-jupyterlab-and-or-python">
<h2>[Optional] Jupyterlab and/or Python<a class="headerlink" href="#optional-jupyterlab-and-or-python" title="Link to this heading">#</a></h2>
<p>Here is a short video of an introduction to JupyterLab and Python - I created the video for another course that uses similar tooling.</p>
<p>If you’re new to Jupyterlab and/or Python, I encourage you to watch this to get familiar with the tools:</p>
<div class="container youtube">
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1006820659?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Introduction to Jupyterlab and Python"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
</div>
</section>
<section id="credit">
<h2>Credit<a class="headerlink" href="#credit" title="Link to this heading">#</a></h2>
<p>These installation instructions are based on <a class="reference external" href="https://ubc-mds.github.io/resources_pages/installation_instructions/">the MDS software installation instructions</a>.</p>
Expand Down Expand Up @@ -582,6 +591,7 @@ <h2>Credit<a class="headerlink" href="#credit" title="Link to this heading">#</a
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#debugging">Debugging</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#optional-jupyterlab-and-or-python">[Optional] Jupyterlab and/or Python</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#credit">Credit</a></li>
</ul>
</nav></div>
Expand Down
68 changes: 34 additions & 34 deletions lectures/101-Giulia-lectures/01_intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -732,38 +732,38 @@ <h4>Predicting on unseen data using the trained model<a class="headerlink" href=
</div>
<div class="cell_output docutils container">
<div class="output text_html"><style type="text/css">
#T_65cdf_row0_col0, #T_65cdf_row0_col1, #T_65cdf_row1_col0, #T_65cdf_row1_col1, #T_65cdf_row2_col0, #T_65cdf_row2_col1, #T_65cdf_row3_col0, #T_65cdf_row3_col1 {
#T_e36b6_row0_col0, #T_e36b6_row0_col1, #T_e36b6_row1_col0, #T_e36b6_row1_col1, #T_e36b6_row2_col0, #T_e36b6_row2_col1, #T_e36b6_row3_col0, #T_e36b6_row3_col1 {
text-align: left;
}
</style>
<table id="T_65cdf">
<table id="T_e36b6">
<thead>
<tr>
<th class="blank level0" >&nbsp;</th>
<th id="T_65cdf_level0_col0" class="col_heading level0 col0" >sms</th>
<th id="T_65cdf_level0_col1" class="col_heading level0 col1" >spam_predictions</th>
<th id="T_e36b6_level0_col0" class="col_heading level0 col0" >sms</th>
<th id="T_e36b6_level0_col1" class="col_heading level0 col1" >spam_predictions</th>
</tr>
</thead>
<tbody>
<tr>
<th id="T_65cdf_level0_row0" class="row_heading level0 row0" >3245</th>
<td id="T_65cdf_row0_col0" class="data row0 col0" >Funny fact Nobody teaches volcanoes 2 erupt, tsunamis 2 arise, hurricanes 2 sway aroundn no 1 teaches hw 2 choose a wife Natural disasters just happens</td>
<td id="T_65cdf_row0_col1" class="data row0 col1" >ham</td>
<th id="T_e36b6_level0_row0" class="row_heading level0 row0" >3245</th>
<td id="T_e36b6_row0_col0" class="data row0 col0" >Funny fact Nobody teaches volcanoes 2 erupt, tsunamis 2 arise, hurricanes 2 sway aroundn no 1 teaches hw 2 choose a wife Natural disasters just happens</td>
<td id="T_e36b6_row0_col1" class="data row0 col1" >ham</td>
</tr>
<tr>
<th id="T_65cdf_level0_row1" class="row_heading level0 row1" >944</th>
<td id="T_65cdf_row1_col0" class="data row1 col0" >I sent my scores to sophas and i had to do secondary application for a few schools. I think if you are thinking of applying, do a research on cost also. Contact joke ogunrinde, her school is one me the less expensive ones</td>
<td id="T_65cdf_row1_col1" class="data row1 col1" >ham</td>
<th id="T_e36b6_level0_row1" class="row_heading level0 row1" >944</th>
<td id="T_e36b6_row1_col0" class="data row1 col0" >I sent my scores to sophas and i had to do secondary application for a few schools. I think if you are thinking of applying, do a research on cost also. Contact joke ogunrinde, her school is one me the less expensive ones</td>
<td id="T_e36b6_row1_col1" class="data row1 col1" >ham</td>
</tr>
<tr>
<th id="T_65cdf_level0_row2" class="row_heading level0 row2" >1044</th>
<td id="T_65cdf_row2_col0" class="data row2 col0" >We know someone who you know that fancies you. Call 09058097218 to find out who. POBox 6, LS15HB 150p</td>
<td id="T_65cdf_row2_col1" class="data row2 col1" >spam</td>
<th id="T_e36b6_level0_row2" class="row_heading level0 row2" >1044</th>
<td id="T_e36b6_row2_col0" class="data row2 col0" >We know someone who you know that fancies you. Call 09058097218 to find out who. POBox 6, LS15HB 150p</td>
<td id="T_e36b6_row2_col1" class="data row2 col1" >spam</td>
</tr>
<tr>
<th id="T_65cdf_level0_row3" class="row_heading level0 row3" >2484</th>
<td id="T_65cdf_row3_col0" class="data row3 col0" >Only if you promise your getting out as SOON as you can. And you'll text me in the morning to let me know you made it in ok.</td>
<td id="T_65cdf_row3_col1" class="data row3 col1" >ham</td>
<th id="T_e36b6_level0_row3" class="row_heading level0 row3" >2484</th>
<td id="T_e36b6_row3_col0" class="data row3 col0" >Only if you promise your getting out as SOON as you can. And you'll text me in the morning to let me know you made it in ok.</td>
<td id="T_e36b6_row3_col1" class="data row3 col1" >ham</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1535,58 +1535,58 @@ <h4>Example 2: Predicting the label of a given image<a class="headerlink" href="
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0%| | 0.00/528M [00:00&lt;?, ?B/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 6%| | 33.1M/528M [00:00&lt;00:01, 347MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 6%| | 31.5M/528M [00:00&lt;00:01, 329MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 13%|█▎ | 66.2M/528M [00:00&lt;00:01, 318MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 13%|█▎ | 68.8M/528M [00:00&lt;00:01, 365MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 18%|█ | 96.9M/528M [00:00&lt;00:01, 310MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 20%|█ | 105M/528M [00:00&lt;00:01, 372MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 24%|██ | 127M/528M [00:00&lt;00:01, 298MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 27%|██ | 142M/528M [00:00&lt;00:01, 379MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 29%|██ | 155M/528M [00:00&lt;00:01, 293MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 34%|███▍ | 178M/528M [00:00&lt;00:01, 339MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 35%|███ | 183M/528M [00:00&lt;00:01, 294MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 40%|███ | 211M/528M [00:00&lt;00:01, 322MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 40%|████ | 212M/528M [00:00&lt;00:01, 297MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 46%|████ | 243M/528M [00:00&lt;00:00, 308MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 46%|████ | 241M/528M [00:00&lt;00:01, 298MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 52%|█████▏ | 272M/528M [00:00&lt;00:00, 301MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 51%|█████ | 270M/528M [00:00&lt;00:00, 301MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 57%|█████ | 301M/528M [00:00&lt;00:00, 294MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 57%|█████ | 299M/528M [00:01&lt;00:00, 295MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 62%|██████▏ | 330M/528M [00:01&lt;00:00, 288MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 62%|██████ | 328M/528M [00:01&lt;00:00, 295MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 68%|██████ | 357M/528M [00:01&lt;00:00, 285MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 67%|██████▋ | 356M/528M [00:01&lt;00:00, 296MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 73%|███████▎ | 384M/528M [00:01&lt;00:00, 285MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 73%|███████ | 385M/528M [00:01&lt;00:00, 299MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 78%|███████ | 412M/528M [00:01&lt;00:00, 283MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 78%|███████▊ | 414M/528M [00:01&lt;00:00, 295MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 83%|████████▎ | 439M/528M [00:01&lt;00:00, 281MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 84%|████████ | 442M/528M [00:01&lt;00:00, 286MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 88%|████████ | 466M/528M [00:01&lt;00:00, 281MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 89%|████████▉ | 470M/528M [00:01&lt;00:00, 288MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 93%|█████████▎| 492M/528M [00:01&lt;00:00, 282MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 94%|█████████▍| 499M/528M [00:01&lt;00:00, 292MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 98%|█████████▊| 519M/528M [00:01&lt;00:00, 280MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|██████████| 528M/528M [00:01&lt;00:00, 297MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|██████████| 528M/528M [00:01&lt;00:00, 301MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>
Expand Down
Loading

0 comments on commit e939147

Please sign in to comment.