diff --git a/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.css b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.css new file mode 100644 index 0000000..288b0b9 --- /dev/null +++ b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.css @@ -0,0 +1,87 @@ +/* when setting overlay, + * (see metadata in notebook) + * + * it's your responsability to put all the pieces where you want + * even in the middle if that was what you wanted + * + */ + +div.myheader { + position: right; + margin-top: 1%; + margin-left: 5%; + font-size: large; +} + +.myheader img { + float: right; + width: 200px; +} + + +div.myfooter { + position: absolute; + background: red; + font-size: 120%; + right: 10%; +} + +div.cell.selected:before, div.cell.selected.jupyter-soft-selected:before{ + + background: #812432; +} + +div.cell.selected, div.cell.selected.jupyter-soft-selected { + border: 0px; +} + + +/* +RISE +*/ +.rise-enabled { + background-color: #ffffff !important; + border-top: 0px #812432 solid; + border-bottom: 0px #812432 solid; +} + +.rise-enabled .chalkboard-button i { + display: block !important; + bottom: 0em !important; + font-size: .8em !important; + color: #727272 !important; +} + +.rise-enabled .reveal .progress span { + background: #812432; +} +.question { + color: #008; +} + +.your_turn { + color: #e08414; + font-size: 150%; + font-weight: bold; +} + +.rendered_html h1 { + color: #812432; +} + +.fa-4x { + font-size: 2em; +} + +.rendered_html h2:first-child { + margin-top: -0.056em; +} + +.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td { + font-size: 95%; +} + +.container.slides .celltoolbar, .container.slides .hide-in-slideshow { + display: None ! important; +} + diff --git a/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.html b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.html new file mode 100644 index 0000000..5f90a9f --- /dev/null +++ b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.html @@ -0,0 +1,20146 @@ + + + + + +13_perceptron_logistic_reg + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+ + +
+ +
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+ + +
+ +
+ + + + + +
+ +
+
+ + +
+ +
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + +
+ +
+ + + + + + + + + diff --git a/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.ipynb b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.ipynb new file mode 100644 index 0000000..870ea80 --- /dev/null +++ b/AA2324/course/13_perceptron_logistic_reg/13_perceptron_logistic_reg.ipynb @@ -0,0 +1,5552 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "slideshow": { + "slide_type": "slide" + } + }, + "source": [ + "# Artificial Intelligence and Machine Learning\n", + "\n", + "## Unit II\n", + "\n", + "## Perceptron and Logistic Regression" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "hide_input": false, + "slideshow": { + "slide_type": "skip" + } + }, + "source": [ + "## My own latex definitions\n", + "\n", + "$$\\def\\mbf#1{\\mathbf{#1}}$$\n", + "$$\\def\\bmf#1{\\boldsymbol{#1}}$$\n", + "$$\\def\\bx{\\mbf{x}}$$\n", + "$$\\def\\bv{\\mbf{v}}$$\n", + "$$\\def\\bz{\\mbf{z}}$$\n", + "$$\\def\\bmu{\\bmf{\\mu}}$$\n", + "$$\\def\\bsigma{\\bmf{\\Sigma}}$$\n", + "$$\\def\\Rd#1{\\in \\mathbb{R}^{#1}}$$" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "hide_input": true, + "slideshow": { + "slide_type": "skip" + } + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/var/folders/rt/lg7n4lt1489270pz_18qn1_c0000gp/T/ipykernel_18217/1496334134.py:5: MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-