Implement a single neuron from first principles: weighted sum, bias, then ReLU. Make the scalar output explicit before adding training.
Required APIdef neuron_forward(weights, inputs, bias):
return activation(weighted_sum)BehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
neuron_forward([1, 2], [3, 4], -3)the forward pass is a weighted sum plus bias
neuron_forward([1, -2], [1, 1], 0)ReLU must suppress negative evidence
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.