Review Questions
Class 1 Review
What happens when alpha, the learning rate is too large? Too small?
How can we combat overfitting our data?
True or False?: You must adjust the learning rate alpha throughout the course of your program.
How do you calculate the MSE (Mean Squared Error), or the cost function?
Class 2 Review
Qualitatively, how do we add two vectors? What about matrix addition?
What is the definition of a vector geometrically?
If the dimensions of two matrices are "m"x"n" and "p"x"q", then what are the dimensions of the product of these two matrices? What must be true in order for matrix multiplication to be defined?
Class 3 Review
Qualitatively, what is the transpose of a matrix?
Up to how many elements can we have in a vector?
What kind of Python variable names will not work? (Hint: There are 3 types.)
How do we take the elements at index 2,3,4, and 5 from a list using list slicing? (Hint: Remember, in list slicing, the first number determines the index of the starting element and the last number determines the index of the last element called. Note that the element at the index indicated by the last number is not called.)
How do we define a NumPy array?
How do we multiply the corresponding elements of two arrays? How do we multiply the two arrays through matrix multiplication? How are these two different?