Skip to content

Commit

Permalink
pdf and fix to html of week1
Browse files Browse the repository at this point in the history
  • Loading branch information
dicook committed Feb 28, 2024
1 parent a13be89 commit 8b3f333
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 12 deletions.
34 changes: 31 additions & 3 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"href": "week1/slides.html#confusion-misclassification-matrix",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Confusion (misclassification) matrix",
"text": "Confusion (misclassification) matrix\n\n\n\n\n\n\n\n\n\n\npredicted\n\n\n\n\n\n\n\n\n1\n\n\n0\n\n\n\n\ntrue\n\n\n1\n\n\na\n\n\nb\n\n\n\n\n\n\n0\n\n\nc\n\n\nd\n\n\n\n\nConsider 1=positive (P), 0=negative (N).\n\nTrue positive (TP): a\nTrue negative (TN): d\nFalse positive (FP): b (Type I error)\nFalse negative (FN): c (Type II error)\n\n\n\nSensitivity, recall, hit rate, or true positive rate (TPR): TP/P = a/(a+b)\nSpecificity, selectivity or true negative rate (TNR): TN/N = d/(c+d)\nPrevalence: P/(P+N) = (a+b)/(a+b+c+d)\nAccuracy: (TP+TN)/(P+N) = (a+d)/(a+b+c+d)\nBalanced accuracy: (TPR + TNR)/2 (or average class errors)"
"text": "Confusion (misclassification) matrix\n\n\n\n\n\n\n\n\n\n\npredicted\n\n\n\n\n\n\n\n\n1\n\n\n0\n\n\n\n\ntrue\n\n\n1\n\n\na\n\n\nb\n\n\n\n\n\n\n0\n\n\nc\n\n\nd\n\n\n\n\nConsider 1=positive (P), 0=negative (N).\n\nTrue positive (TP): a\nTrue negative (TN): d\nFalse positive (FP): c (Type I error)\nFalse negative (FN): b (Type II error)\n\n\n\nSensitivity, recall, hit rate, or true positive rate (TPR): TP/P = a/(a+b)\nSpecificity, selectivity or true negative rate (TNR): TN/N = d/(c+d)\nPrevalence: P/(P+N) = (a+b)/(a+b+c+d)\nAccuracy: (TP+TN)/(P+N) = (a+d)/(a+b+c+d)\nBalanced accuracy: (TPR + TNR)/2 (or average class errors)"
},
{
"objectID": "week1/slides.html#confusion-misclassification-matrix-computing",
Expand Down Expand Up @@ -767,7 +767,7 @@
"href": "week2/slides.html#data-in-the-model-space",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Data-in-the-model-space",
"text": "Data-in-the-model-space"
"text": "Data-in-the-model-space\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nPredictive probabilities are aspects of the model. It is useful to plot. What do we learn here?\n\nBut it doesn’t tell you why there is a difference."
},
{
"objectID": "week2/slides.html#how-do-you-visualise-beyond-2d",
Expand All @@ -781,7 +781,7 @@
"href": "week2/slides.html#scatterplot-matrix",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Scatterplot matrix",
"text": "Scatterplot matrix"
"text": "Scatterplot matrix\n\n\n Start simply! Make static plots that organise the variables on a page. \nPlot all the pairs of variables. When laid out in a matrix format this is called a scatterplot matrix.\n Here, we see linear association, clumping and clustering, potentially some outliers."
},
{
"objectID": "week2/slides.html#parallel-coordinate-plot",
Expand Down Expand Up @@ -824,5 +824,33 @@
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "UMAP",
"text": "UMAP"
},
{
"objectID": "week2/slides.html#model-in-the-data-space-1",
"href": "week2/slides.html#model-in-the-data-space-1",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Model-in-the-data-space",
"text": "Model-in-the-data-space\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nModel is displayed, as a grid of predicted points in the original variable space. Data is overlaid, using text labels. What do you learn?\n\nOne model has a linear boundary, and the other has the highly non-linear boundary, which matches the class cluster better. Also …"
},
{
"objectID": "week2/slides.html#scatterplot-matrix-drawbacks",
"href": "week2/slides.html#scatterplot-matrix-drawbacks",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Scatterplot matrix: drawbacks",
"text": "Scatterplot matrix: drawbacks\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThere is an outlier in the data on the right, like the one in the left, but it is hidden in a combination of variables. It’s not visible in any pair of variables."
},
{
"objectID": "week2/slides.html#hiding-in-high-d-22",
"href": "week2/slides.html#hiding-in-high-d-22",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Hiding in high-d (2/2) ",
"text": "Hiding in high-d (2/2)"
},
{
"objectID": "week2/slides.html#perception",
"href": "week2/slides.html#perception",
"title": "ETC3250/5250 Introduction to Machine Learning",
"section": "Perception",
"text": "Perception\n\nAspect ratio for scatterplots needs to be equal, or square!\n\nWhen you make a scatterplot of two variables from a multivariate data set, most software renders it with an unequal aspect ratio, as a rectangle. You need to over-ride this and force the square aspect ratio. Why?\n\nBecause it adversely affects the perception of correlation and association between variables."
}
]
4 changes: 2 additions & 2 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</url>
<url>
<loc>https://iml.numbat.space/week1/slides.html</loc>
<lastmod>2024-02-27T01:22:58.414Z</lastmod>
<lastmod>2024-02-28T04:27:00.780Z</lastmod>
</url>
<url>
<loc>https://iml.numbat.space/resources.html</loc>
Expand Down Expand Up @@ -70,6 +70,6 @@
</url>
<url>
<loc>https://iml.numbat.space/week2/slides.html</loc>
<lastmod>2024-02-27T01:01:22.011Z</lastmod>
<lastmod>2024-02-28T01:09:51.335Z</lastmod>
</url>
</urlset>
4 changes: 2 additions & 2 deletions docs/week1/slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -1916,8 +1916,8 @@ <h2>Confusion (misclassification) matrix</h2>
<ul>
<li>True positive (TP): <code>a</code></li>
<li>True negative (TN): <code>d</code></li>
<li>False positive (FP): <code>b</code> (Type I error)</li>
<li>False negative (FN): <code>c</code> (Type II error)</li>
<li>False positive (FP): <code>c</code> (Type I error)</li>
<li>False negative (FN): <code>b</code> (Type II error)</li>
</ul>
</div><div class="column">
<ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/week1/slides.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ Consider `1`=positive (P), `0`=negative (N).

- True positive (TP): `a`
- True negative (TN): `d`
- False positive (FP): `b` (Type I error)
- False negative (FN): `c` (Type II error)
- False positive (FP): `c` (Type I error)
- False negative (FN): `b` (Type II error)

:::
::: {.column}
Expand Down
3 changes: 2 additions & 1 deletion setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ library(patchwork)
library(MASS)
library(randomForest)
library(gridExtra)

library(GGally)
library(geozoo)

# Locations
current_file <- knitr::current_input()
Expand Down
Binary file modified week1/slides.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions week1/slides.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ Consider `1`=positive (P), `0`=negative (N).

- True positive (TP): `a`
- True negative (TN): `d`
- False positive (FP): `b` (Type I error)
- False negative (FN): `c` (Type II error)
- False positive (FP): `c` (Type I error)
- False negative (FN): `b` (Type II error)

:::
::: {.column}
Expand Down

0 comments on commit 8b3f333

Please sign in to comment.