Let's assume that there is sigmoid functions that I defined.
def sigmoid(self, x):
return something
I have arrays.
a = np.array([1, 2, 3, 4, 5, 6])
I wanna make "a" like this:
a = [sigmoid(1), sigmoid(2), sigmoid(3), sigmoid(4), sigmoid(5), sigmoid(6)]
Is there anyway that don't use for loops? I mean, some numpy functions?