Interactive Neuron
Adjust Inputs
Understanding the Neuron
Step 1: Inputs (x₁, x₂, x₃)
The neuron receives multiple input values. In CartPole, these are the state values: cart position, velocity, pole angle, and angular velocity.
Step 2: Weights (w₁, w₂, w₃)
Each input has an associated weight that determines its importance. Positive weights amplify, negative weights suppress. These weights are what the network learns during training.
Step 3: Weighted Sum
Multiply each input by its weight and sum them all:
Step 4: Add Bias
The bias shifts the activation threshold. It lets the neuron fire even when inputs are zero, or require stronger inputs to fire.
Step 5: Activation Function (ReLU)
ReLU (Rectified Linear Unit) is simple: if the value is positive, keep it; if negative, output zero.
Step 6: Output
The final output can be passed to the next layer of neurons, or used directly as the network's prediction.