2025 USA-NA-AIO Round 1, Problem 3, Part 16

Part 16 (5 points, coding task)

Define a function called my_signoid:

  • Input: A numpy array with any shape.

  • Output: Elementwise sigmoid functional values.

  • No loop in the body of your function.

### WRITE YOUR SOLUTION HERE ###
def my_sigmoid(z):
    return 1 / (1 + np.exp(-z))

""" END OF THIS PART """