Go to the lab that uses lab_utils_uni.py, then on the menu bar, click â€śFileâ€ť > â€śOpenâ€ť, and it will show a file browser interface where you can look for that file.

Regarding your query over the use of 2m and m, I would just say that itâ€™s a convenient method to get the computation done for gradient descent. The derivative term of the square function gets cancel out with 1/2 term.

The 1/m averages the squared error over the no. of components to reduce its impact on the function.