Skip to content
C

Single Neuron Forward Pass

Easypython

Manually compute a single neuron's output, following the notes' own formula exactly: output = activation((input1 x weight1) + (input2 x weight2) + ... + bias).

Approach: compute the weighted sum of inputs and weights, add the bias, then apply ReLU as the activation function.

Input: Three lines: the inputs (space-separated), the weights (space-separated, same count as inputs), and the bias.

Output: One line: the neuron's output, rounded to 4 decimal places.

Input (stdin)

Output

Run your code to see output here...