Sam Hammamy - 5 months ago 58

Python Question

I'm new to numpy but not python. Have a question about the

`numpy`

`def _my_function(weights, features, bias):`

# the pure python way

value = 0.

for i in range(len(weights)):

value += (weights[i]*features[i])

return value+bias

What is the numpy way to do this?

Answer