Feed Forward Mechanism(Multiple Neurons) example with Simple Python

Simple Python Simulation (No Libraries)

# Inputs
inputs = [0.5, 0.3, 0.2]

# Weights for 2 neurons
weights = [
    [0.2, 0.4, 0.6],  # Neuron 1
    [0.5, 0.1, 0.9]   # Neuron 2
]

# Activation (ReLU)
def relu(x):
    return max(0, x)

# Compute feed forward
outputs = []
for neuron_weights in weights:
    z = sum(i*w for i, w in zip(inputs, neuron_weights))
    a = relu(z)
    outputs.append(a)

print("Feed Forward Output:", outputs)

Visual Flow Diagram (Markdown)

Feed Forward mechanism with multiple Neurons – Visual Roadmap