Vectorization part 2

image

The formula below, why don’t we use the np.dot function instead? If we don’t need it, why did we use it earlier?

w = w - .1 * d

If you’re applying a constant factor to all elements of d, then you use an element-wise product, That’s the ‘*’ operator.