ENG100/400 — Lecture 7
We’ll simulate reflectance sensors and thresholds to follow a path.
We’ll use local test images to keep everything offline.
Live preview sparkles for effect (full app is separate).
Using pre‑canned images locally (no heavy model in‑browser).
ReLU \( f(x) = \max(0, x) \)
Sigmoid \( \sigma(x) = \frac{1}{1+e^{-x}} \)
tanh \( \tanh(x) = \frac{e^{x}-e^{-x}}{e^{x}+e^{-x}} \)
Derivatives: \( f'(x)=\begin{cases}0 & x<0 \\ 1 & x>0\end{cases} \), \( \sigma'(x)=\sigma(x)(1-\sigma(x)) \), \( (\tanh x)' = 1 - \tanh^2 x \).
We’ll visualize a tiny 2→3→1 net and step gradient descent by hand.
Media used on these slides are stored in lec7/images for offline viewing.
External links require internet access; the lecture apps and media remain available offline in this repository.