NNs for Regression and Classification

This lecture is about the common output layers of neural networks built for regression and classification, and the loss functions used to optimize them.

Main Points

$$ \begin{align*} -\sum_x p(x) \log_2 q(x). \end{align*} $$

$$ \begin{align*} -\sum_x p(x) \log_2 q(x) =& -((1)\log_2(.35)+(0)\log_2(.58)+(0)\log_2(.06))\\ =& 1.515 \end{align*} $$

Multi-Class Classification: You can see a notebook demonstrating a classification problem here.

Binary Classification: The ships demo of a Fully Connected Binary Classifier example with L2 regularization. Binary Ships Classifier Here!.