Posts Coursera Deep Learning Notes
Post
Cancel

Coursera Deep Learning Notes

Python Part

  1. The input of math libarary should be real numbers, while numpy accepts vectors and matrices. So we prefer numpy.
  2. Normalizing the data will improve the performance because gradient descent converges faster after normalization. Dividing each row of the matrix by its norm. Or, to make each row has unit norm.
  3. axis = 0 means column, axis = 1 means rows.
  4. np.random.randn(a, b), don’t use parenthesis; np.zeros((a, b)), use parenthesis. np.random.randn() generates samples from normal distribution, while np.random.rand() generates samples from 0-1 uniform distribution.
Updated Feb 23, 2020 2020-02-23T15:14:05-06:00
This post is licensed under CC BY 4.0