Course Overview
Applied Deep LearningInteractive Neural Network & Activation Playground
0% Done
Interactive Lab25 minutes
Interactive Neural Network & Activation Playground
Lesson Summary: Hands-on virtual laboratory exploring feedforward perceptron layers, non-linear activation response curves, and real-time loss backpropagation.
Interactive LabReal-Time Feedforward
Artificial Neuron & Activation Simulator
Adjust inputs, synaptic weights, and activation functions to see how a single biological-inspired node processes signals.
Presets:
z = (1.50 × 1.00) + (-2.00 × -0.50) + 0.20 = 2.700
a = relu(2.700) = 2.7000
Input x₁1.00
Input x₂-0.50
Weight w₁1.50
Weight w₂-2.00
Bias b0.20
Welcome to the Deep Neural Network & Backpropagation Playground.
Deep neural networks rely on composing linear transformations () with non-linear activation functions () to approximate arbitrary decision boundaries. In this interactive lab, you can tweak weights, select activations, and observe forward-backward passes step-by-step.
Lab Objectives
- Understand how activation function choice (ReLU, Sigmoid, Tanh, GELU) impacts gradient saturation and vanishing gradients.
- Trace the exact chain rule computation during reverse-mode automatic differentiation.
- Test how changing learning rate parameters influences weight convergence and stability.
Interactive Model Playground
Use the live visualizer below to inject input values, adjust weights interactively, and inspect pre-activation vs post-activation values.
import numpy as np
def relu(z):
return np.maximum(0, z)
def relu_grad(z):
return (z > 0).astype(float)
# Forward pass through a single hidden layer
x = np.array([0.7, -1.2])
W1 = np.array([[0.5, -0.3], [0.8, 0.2]])
b1 = np.array([0.1, -0.1])
z1 = np.dot(W1, x) + b1
h1 = relu(z1)
print(f"Input features: {x}")
print(f"Hidden Pre-activation z: {np.round(z1, 4)}")
print(f"Hidden Activation h (ReLU): {np.round(h1, 4)}")
Core Architecture Insights
- Dead ReLUs: If an input pushes pre-activation , the gradient , stopping weight updates for that neuron. Modern architectures use Leaky ReLU or GELU to mitigate dead neurons.
- Logit Calibration: In multi-class classification, softmax transforms unconstrained logit vectors into a normalized probability distribution where .
