1. np.expand_dims >> X = np.random.randint(0, 9, (2, 3)) >> mean_X = np.mean(X, axis=0) >> X - mean_X # 这样做是没有问题的 >> mean_X = np.mean(X, axis=1) >> X - mean_X ValueError: operands could not be broadcast together with shapes (…
Python Basics with numpy (optional)Welcome to your first (Optional) programming exercise of the deep learning specialization. In this assignment you will: - Learn how to use numpy. - Implement some basic core deep learning functions such as the softm…