# Machine Learning

Some ML content I've made, some of which I use for self reference.

**Builds**
1. Semi-Supervised Learning Using Virtual Adversarial Training, this was an exploration in what is the furthest you can go on few [labels](https://drive.google.com/file/d/1qcZ17XNqOHfn67nZs8ltwsT-I9tibYvy/view).
1. Modeling ML methods using regression for sin fitting and digit classification, RL for simulated pole balancing, and recurrent NN's for language [identification](https://www.youtube.com/watch?v=X0H1cJQUFgg). 
1. Autocomplete from [scratch](https://www.youtube.com/watch?v=9DxiJ_HB76g).
1. Feature detection using Harris key points, project summary [here](https://drive.google.com/file/d/1rI1zKDBLfX0N53iilgH_pn45p4xD2EUi/view?usp=sharing).
1. Bonus: first ever CS project, stock prediction by parsing 10K's using [BeautifulSoup](https://www.youtube.com/watch?v=uh_aEzdBs1U). 


**Notebooks**

These are extensive Jupyter notebooks I've written for ML textbooks.

1. [Mathematics for Machine Learning: Python companion.](https://mml-book.github.io/external.html)
1. [Vectors, Matrices, Least Squares: Python and Julia companions.](http://vmls-book.stanford.edu/)

![](taylor.png)

**Interactive Animations**

1. Building these helps me solidify concepts, this selection is ML related.
1. Most are interactive in some way and likely don't display well on mobile.
1. Collapsing cells as you go eases rendering.

````{admonition} Math
:class: dropdown


```{admonition} Derivative
:class: dropdown

<iframe src="https://editor.p5js.org/bartle/embed/3wCzxK26q" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Limit
:class: dropdown

<iframe src="https://editor.p5js.org/bartle/embed/Za0SHSmXJ" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Min, Max
:class: dropdown

<iframe src="https://editor.p5js.org/bartle/embed/H06U9Y3Ro" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Integral
:class: dropdown

<iframe src="https://editor.p5js.org/bartle/embed/FN8lufrfR" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Bayes
:class: dropdown

Button press simulates finger position on catching a globe.
<iframe src="https://editor.p5js.org/bartle/embed/ZCXN_P2J8" height="400" width="550" scrolling="no"></iframe>
````

**Taylor Series (interactive sliders)**

<iframe src="https://editor.p5js.org/bartle/embed/OhuE0hqC" height="550" width="550" scrolling="no"></iframe>


````{admonition} Machine Learning Concepts
:class: dropdown

```{admonition} Linear Regression
:class: dropdown

Click.
<iframe src="https://editor.p5js.org/bartle/embed/0ATJbhuLK" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Least Squares
:class: dropdown

Click and drag.
<iframe src="https://editor.p5js.org/bartle/embed/20V17MCCP" height="400" width="550" scrolling="no"></iframe>
```

```{admonition} Perceptron
:class: dropdown

Click, drag and spacebar.
<iframe src="https://editor.p5js.org/bartle/embed/u1mUomsU7" height="400" width="550" scrolling="no"></iframe>
```
````

**K-Means**
<iframe src="https://editor.p5js.org/bartle/embed/sH4DiPmda" height="400" width="550" scrolling="no"></iframe>


