ANN Q3

0. Consider the vector a = [1.2,-2.5,2.4,3]. What will the following line of code do?
import numpy as np
a = np.asarray ([1.2, -2.5, 2.4, 3])
a = np.exp(a)
a = a/np.sum(a)
1. It will compute the softmax of a
2. It will compute the element-wise sigmoid of a
3. It will compute the e-th power of each element of a

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *