摘要: 本文是吴恩达 (Andrew Ng)老师《机器学习》课程，第五章《多变量线性回归》中第35课时《如何完成及提交编程练习》的视频原文字幕。为本人在视频学习过程中记录下来并加以修正，使其更加简洁，方便阅读，以便日后查阅使用。现分享给大家。如有错误，欢迎大家批评指正，在此表示诚挚地感谢！同时希望对大家的学习能有所帮助。
In this video/article, I want to just quickly step you through the logistics of how to work on homeworks in this class and how to use the submission system which will let you verify right away that you got the right answer for your machine learning programming exercises.
Here's my Octave window and let's just get to my desktop. I saved the files for my first exercise, some of the files on my desktop. In this directory, 'my-class-ex1'. And we provide a number of files and ask you to edit some of them. So the first file should meet the details in the PDF file for this programming exercises to get details. But one of the files we ask you to edit is this file called warmUpExercise.m, where the exercise is really just to make sure that you're familiar with the submission system. And all you need to do is return the identity matrix. So the solution to this exercise I just showed you is to write . So that modifies this function to generate the identity matrix. And this function now returns the identity matrix. And I'm just going to save it. So I've done the first part of the homework. Going backup to my Octave window, let's now go to my directory. And if I want to make sure that I've implemented this, type '' like so. And yup, it returns the identity matrix that we just wrote the code to create. And I can now submit the code as follows. I'm going to type '' in this directory and I'm ready to submit part 1 so I'm going to enter choice '1'. So it asks me for my email address. I'm going to the course website. This is an internal test site, so your version of website may look a little bit different. But that's my email address and this is my submission password, and I'm just going to type them here. So I have email@example.com and my submission password is 9yC75USsGf. I'm going to hit enter; it connects the server and submits it and right away it tells you "Congratulations! You have successfully completed Homework 1 Part 1". And this gives you a verification that you got this part right. And if you don't submit the right answer, then it will give you a message indicating that you haven't quite gotten it right yet. And by the way, you can use this submission password and you can generate new passwords; it doesn't matter. But you can also use your regular website login password, but because this password here is typed in clear text on your monitor, we gave you this extra submission password in case you don't want to type in your website's normal password onto a window, that, depending on your operating system, this password may or may not appear as text when you type it into the Octave submission script.
So, that's how you submit the homework after you've done it. Good luck. And when you get around to homework, I hope you get all of them right. And finally, in the next and final Octave tutorial video, I want to tell you about vectorization, which is a way to get your Octave code to run much more efficiently.