Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvarada committed Oct 30, 2023
1 parent 16dbd43 commit 0a26b5c
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 38 deletions.
3 changes: 2 additions & 1 deletion README.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
Expand Down
12 changes: 10 additions & 2 deletions _sources/lectures/class_demos/09_class-demo.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "7fefd2d8-8ad4-4191-80e2-435406d85c3d",
"metadata": {},
"source": [
"# Lecture 9: Class demo"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down Expand Up @@ -1203,7 +1211,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:cpsc330]",
"display_name": "conda-env-cpsc330-py",
"language": "python",
"name": "conda-env-cpsc330-py"
},
Expand All @@ -1217,7 +1225,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion _sources/lectures/class_demos/15_class-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"source": [
"## Let's cluster images!!"
"Let's cluster images!!"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
Expand Down
24 changes: 15 additions & 9 deletions lectures/class_demos/09_class-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Exploring classification metrics &#8212; CPSC 330 Applied Machine Learning 2023W1</title>
<title>Lecture 9: Class demo &#8212; CPSC 330 Applied Machine Learning 2023W1</title>



Expand Down Expand Up @@ -64,7 +64,7 @@
<script>DOCUMENTATION_OPTIONS.pagename = 'lectures/class_demos/09_class-demo';</script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Let’s cluster images!!" href="14_class-demo.html" />
<link rel="next" title="Lecture 14: Class demo" href="14_class-demo.html" />
<link rel="prev" title="Lectures 7: Class demo" href="07_class-demo.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
Expand Down Expand Up @@ -177,9 +177,10 @@
<li class="toctree-l1"><a class="reference internal" href="04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Exploring classification metrics</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Lecture 9: Class demo</a></li>

<li class="toctree-l1"><a class="reference internal" href="14_class-demo.html">Let’s cluster images!!</a></li>

<li class="toctree-l1"><a class="reference internal" href="14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Attribution</span></p>
<ul class="nav bd-sidenav">
Expand Down Expand Up @@ -321,7 +322,7 @@


<div id="jb-print-docs-body" class="onlyprint">
<h1>Exploring classification metrics</h1>
<h1>Lecture 9: Class demo</h1>
<!-- Table of contents -->
<div id="print-main-content">
<div id="jb-print-toc">
Expand All @@ -331,7 +332,8 @@ <h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#">Exploring classification metrics</a><ul class="visible nav section-nav flex-column">
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#">Lecture 9: Class demo</a></li>
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#exploring-classification-metrics">Exploring classification metrics</a><ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#dataset-for-demonstration">Dataset for demonstration</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#loading-the-data">Loading the data</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#comparing-pr-curves">Comparing PR curves</a><ul class="nav section-nav flex-column">
Expand Down Expand Up @@ -361,7 +363,9 @@ <h2> Contents </h2>
<div id="searchbox"></div>
<article class="bd-article" role="main">

<div class="cell docutils container">
<section class="tex2jax_ignore mathjax_ignore" id="lecture-9-class-demo">
<h1>Lecture 9: Class demo<a class="headerlink" href="#lecture-9-class-demo" title="Permalink to this heading">#</a></h1>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">sys</span>
Expand Down Expand Up @@ -405,6 +409,7 @@ <h2> Contents </h2>
</div>
</div>
</div>
</section>
<section class="tex2jax_ignore mathjax_ignore" id="exploring-classification-metrics">
<h1>Exploring classification metrics<a class="headerlink" href="#exploring-classification-metrics" title="Permalink to this heading">#</a></h1>
<section id="dataset-for-demonstration">
Expand Down Expand Up @@ -1154,7 +1159,7 @@ <h2>❓❓ Questions for group discussion<a class="headerlink" href="#questions-
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">Let’s cluster images!!</p>
<p class="prev-next-title">Lecture 14: Class demo</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
Expand All @@ -1176,7 +1181,8 @@ <h2>❓❓ Questions for group discussion<a class="headerlink" href="#questions-
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#">Exploring classification metrics</a><ul class="visible nav section-nav flex-column">
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#">Lecture 9: Class demo</a></li>
<li class="toc-h1 nav-item toc-entry"><a class="reference internal nav-link" href="#exploring-classification-metrics">Exploring classification metrics</a><ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#dataset-for-demonstration">Dataset for demonstration</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#loading-the-data">Loading the data</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#comparing-pr-curves">Comparing PR curves</a><ul class="nav section-nav flex-column">
Expand Down
7 changes: 4 additions & 3 deletions lectures/class_demos/14_class-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Attributions" href="../../attribution.html" />
<link rel="prev" title="Exploring classification metrics" href="09_class-demo.html" />
<link rel="prev" title="Lecture 9: Class demo" href="09_class-demo.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>
Expand Down Expand Up @@ -177,7 +177,8 @@
<li class="toctree-l1"><a class="reference internal" href="04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1 current active"><a class="current reference internal" href="#">Lecture 14: Class demo</a></li>
</ul>
Expand Down Expand Up @@ -936,7 +937,7 @@ <h2>Let’s cluster images!!<a class="headerlink" href="#let-s-cluster-images" t
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">Exploring classification metrics</p>
<p class="prev-next-title">Lecture 9: Class demo</p>
</div>
</a>
<a class="right-next"
Expand Down
27 changes: 10 additions & 17 deletions lectures/class_demos/15_class-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@
<li class="toctree-l1"><a class="reference internal" href="04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="09_class-demo.html">Lecture 9: Class demo</a></li>

<li class="toctree-l1"><a class="reference internal" href="14_class-demo.html">Let’s cluster images!!</a></li>

<li class="toctree-l1"><a class="reference internal" href="14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Attribution</span></p>
<ul class="nav bd-sidenav">
Expand Down Expand Up @@ -329,11 +330,8 @@ <h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#let-s-cluster-images">Let’s cluster images!!</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#clustering-faces-with-dbscan">Clustering faces with DBSCAN</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#hierarchical-clustering">Hierarchical clustering</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#clustering-faces-with-dbscan">Clustering faces with DBSCAN</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#hierarchical-clustering">Hierarchical clustering</a></li>
</ul>
</nav>
</div>
Expand All @@ -347,8 +345,7 @@ <h2> Contents </h2>

<section class="tex2jax_ignore mathjax_ignore" id="lecture-15-class-demo">
<h1>Lecture 15: Class demo<a class="headerlink" href="#lecture-15-class-demo" title="Permalink to this heading">#</a></h1>
<section id="let-s-cluster-images">
<h2>Let’s cluster images!!<a class="headerlink" href="#let-s-cluster-images" title="Permalink to this heading">#</a></h2>
<p>Let’s cluster images!!</p>
<p><img alt="" src="../../_images/eva-fun-times.png" /></p>
<p>For this demo, I’m going to use the following image dataset:</p>
<ol class="arabic simple">
Expand Down Expand Up @@ -1173,7 +1170,7 @@ <h2>Let’s cluster images!!<a class="headerlink" href="#let-s-cluster-images" t
</div>
<p><br><br></p>
<section id="clustering-faces-with-dbscan">
<h3>Clustering faces with DBSCAN<a class="headerlink" href="#clustering-faces-with-dbscan" title="Permalink to this heading">#</a></h3>
<h2>Clustering faces with DBSCAN<a class="headerlink" href="#clustering-faces-with-dbscan" title="Permalink to this heading">#</a></h2>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">dbscan</span> <span class="o">=</span> <span class="n">DBSCAN</span><span class="p">()</span>
Expand Down Expand Up @@ -1480,7 +1477,7 @@ <h3>Clustering faces with DBSCAN<a class="headerlink" href="#clustering-faces-wi
</ul>
</section>
<section id="hierarchical-clustering">
<h3>Hierarchical clustering<a class="headerlink" href="#hierarchical-clustering" title="Permalink to this heading">#</a></h3>
<h2>Hierarchical clustering<a class="headerlink" href="#hierarchical-clustering" title="Permalink to this heading">#</a></h2>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">set_seed</span><span class="p">(</span><span class="n">seed</span><span class="o">=</span><span class="mi">42</span><span class="p">)</span>
Expand Down Expand Up @@ -1547,7 +1544,6 @@ <h3>Hierarchical clustering<a class="headerlink" href="#hierarchical-clustering"
<li><p>Some clusters correspond to people with distinct faces, age, facial expressions, hair colour and hair style, lighting and skin tone.</p></li>
</ul>
</section>
</section>
</section>

<script type="text/x-thebe-config">
Expand Down Expand Up @@ -1599,11 +1595,8 @@ <h3>Hierarchical clustering<a class="headerlink" href="#hierarchical-clustering"
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#let-s-cluster-images">Let’s cluster images!!</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#clustering-faces-with-dbscan">Clustering faces with DBSCAN</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#hierarchical-clustering">Hierarchical clustering</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#clustering-faces-with-dbscan">Clustering faces with DBSCAN</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#hierarchical-clustering">Hierarchical clustering</a></li>
</ul>
</nav></div>

Expand Down
3 changes: 2 additions & 1 deletion lectures/slides/05_slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
<li class="toctree-l1"><a class="reference internal" href="../class_demos/04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1"><a class="reference internal" href="../class_demos/14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion lectures/slides/12_slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
<li class="toctree-l1"><a class="reference internal" href="../class_demos/04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="../class_demos/09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1"><a class="reference internal" href="../class_demos/14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
Expand Down
Binary file modified objects.inv
Binary file not shown.
3 changes: 2 additions & 1 deletion search.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/04_class-demo.html">Lecture 4: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/05-06_class-demo.html">Lectures 5 and 6: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/07_class-demo.html">Lectures 7: Class demo</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Exploring classification metrics</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/09_class-demo.html">Lecture 9: Class demo</a></li>


<li class="toctree-l1"><a class="reference internal" href="lectures/class_demos/14_class-demo.html">Lecture 14: Class demo</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 0a26b5c

Please sign in to comment.