Complete the code to calculate the weighted sum in forward propagation.
weighted_sum = sum(inputs[i] * weights[i] for i in range(len(inputs))) + [1]
The weighted sum includes the bias term added to the sum of inputs times weights.
Complete the code to apply the activation function in forward propagation.
output = [1](weighted_sum)The activation function is applied to the weighted sum to produce the output.
Fix the error in the code to correctly compute the output of a neuron.
output = activation_function([1])The activation function should be applied to the weighted sum, not directly to inputs or weights.
Fill both blanks to complete the forward propagation step for one neuron.
weighted_sum = sum([1][i] * [2][i] for i in range(len(inputs))) + bias
Inputs and weights are multiplied element-wise and summed to get the weighted sum.
Fill all three blanks to complete the forward propagation for a layer of neurons.
outputs = [activation_function(sum([1][i] * [2][j][i] for i in range(len([3]))) + biases[j]) for j in range(len(weights))]
For each neuron j, multiply inputs by weights[j], sum, add bias, then apply activation.