1.8 Machine Learning Overview | Jupyter Notebooks --[Machine Learning | Andrew Ng]
 So far in the videos, you've seen supervised learning and unsupervised learning, and also examples of both. For you to more deeply understand these concepts, I'd like to invite you in this class to see, run, and maybe later write code yourself to implement these concepts. The most widely used tool by machine learning and data science practitioners today is the Jupyter Notebook. This is the default environment that a lot of us use to code up and experiment and try things out. And so in this class, right here in your web browser, you'll be able to use a Jupyter Notebook environment to test out some of these ideas for yourself as well. This is not some made up, simplified environment. This is the exact same environment, the exact same tool, the Jupyter Notebook that developers are using in many large companies right now. One type of lab that you see throughout this class are optional labs, which are ones you can open and run one line at a time with usually not needing to write any code yourself. So optional labs are designed to be very easy, and I can guarantee you will get full marks for every single one of them, because there are no marks. All you need to do is open it up and just run the code we've provided. And by reading through and running the code in the optional labs, you see how machine learning code runs. And you should be able to complete them relatively quickly, just by running it one line at a time from top to bottom. Optional labs are completely optional, so you don't have to do them at all if you don't want to. But I hope you will take a look, because running through them will give you a deeper feel, give you a little bit more experience with what machine learning algorithms, what machine learning code actually looks like. Starting next week, there will also be some practice labs, which will give you an opportunity to write some of that code yourself. But we'll get to that next week, so don't worry about it for now. And I hope you just go through the next optional lab and get through the rest of the content for this week. So let's take a look at an example of a notebook. This is what you see when you go to the first optional lab. Feel free to scroll up and down and browse and mouse over the different menus and take a look at the different options here. You might notice that there are two types of these blocks, also called cells, in the notebook. And there are two types of cells. One is what's called a markdown cell, which means basically a bunch of text. So here you can actually edit the text if you don't like the text that we wrote. But this is text that describes the code. Then there's a second type of block or cell, which looks like this, which is a code cell. So here we've already provided the code. And if you want to run this code cell, hitting shift enter will run the code in this code cell. Oh, and by the way, if you click on a markdown cell, so it's showing all this formatting, go ahead and hit shift enter on your keyboard as well. And that will also convert it back to this nicely formatted text. This optional lab shows some common Python code. So you can go ahead and run this afterwards in your own Jupyter notebook. When you jump into this notebook yourself, what I'd like you to do is select the cells and hit shift enter. Well, read through the code, see if it makes sense, you know, try to make a prediction about what you think this code will do, and then hit shift enter and then see what the code actually does. And if you feel like it, feel free to go in and edit the code, you know, change the code and then run it and see what happens. And if you haven't played in a Jupyter notebook environment before, I hope you become more familiar with Python in a Jupyter notebook. I spend a lot of hours playing around in Jupyter notebooks, and so I hope you have fun with them too. And after that, I look forward to seeing you in the next video, where we'll take the supervised learning problem and start to flesh out our first supervised learning algorithm. I hope that'll be fun too, and look forward to seeing you there.
[{"start": 0.0, "end": 8.6, "text": " So far in the videos, you've seen supervised learning and unsupervised learning, and also"}, {"start": 8.6, "end": 10.6, "text": " examples of both."}, {"start": 10.6, "end": 16.72, "text": " For you to more deeply understand these concepts, I'd like to invite you in this class to see,"}, {"start": 16.72, "end": 21.98, "text": " run, and maybe later write code yourself to implement these concepts."}, {"start": 21.98, "end": 26.740000000000002, "text": " The most widely used tool by machine learning and data science practitioners today is the"}, {"start": 26.740000000000002, "end": 28.46, "text": " Jupyter Notebook."}, {"start": 28.46, "end": 33.44, "text": " This is the default environment that a lot of us use to code up and experiment and try"}, {"start": 33.44, "end": 34.92, "text": " things out."}, {"start": 34.92, "end": 40.28, "text": " And so in this class, right here in your web browser, you'll be able to use a Jupyter Notebook"}, {"start": 40.28, "end": 45.08, "text": " environment to test out some of these ideas for yourself as well."}, {"start": 45.08, "end": 48.72, "text": " This is not some made up, simplified environment."}, {"start": 48.72, "end": 54.24, "text": " This is the exact same environment, the exact same tool, the Jupyter Notebook that developers"}, {"start": 54.24, "end": 57.64, "text": " are using in many large companies right now."}, {"start": 57.64, "end": 62.36, "text": " One type of lab that you see throughout this class are optional labs, which are ones you"}, {"start": 62.36, "end": 70.04, "text": " can open and run one line at a time with usually not needing to write any code yourself."}, {"start": 70.04, "end": 76.12, "text": " So optional labs are designed to be very easy, and I can guarantee you will get full marks"}, {"start": 76.12, "end": 80.02, "text": " for every single one of them, because there are no marks."}, {"start": 80.02, "end": 84.68, "text": " All you need to do is open it up and just run the code we've provided."}, {"start": 84.68, "end": 89.2, "text": " And by reading through and running the code in the optional labs, you see how machine"}, {"start": 89.2, "end": 91.44000000000001, "text": " learning code runs."}, {"start": 91.44000000000001, "end": 97.88000000000001, "text": " And you should be able to complete them relatively quickly, just by running it one line at a"}, {"start": 97.88000000000001, "end": 100.68, "text": " time from top to bottom."}, {"start": 100.68, "end": 104.76, "text": " Optional labs are completely optional, so you don't have to do them at all if you don't"}, {"start": 104.76, "end": 105.76, "text": " want to."}, {"start": 105.76, "end": 111.4, "text": " But I hope you will take a look, because running through them will give you a deeper feel,"}, {"start": 111.4, "end": 115.64, "text": " give you a little bit more experience with what machine learning algorithms, what machine"}, {"start": 115.64, "end": 119.12, "text": " learning code actually looks like."}, {"start": 119.12, "end": 123.36000000000001, "text": " Starting next week, there will also be some practice labs, which will give you an opportunity"}, {"start": 123.36000000000001, "end": 126.0, "text": " to write some of that code yourself."}, {"start": 126.0, "end": 129.08, "text": " But we'll get to that next week, so don't worry about it for now."}, {"start": 129.08, "end": 133.76, "text": " And I hope you just go through the next optional lab and get through the rest of the content"}, {"start": 133.76, "end": 134.76, "text": " for this week."}, {"start": 134.76, "end": 138.84, "text": " So let's take a look at an example of a notebook."}, {"start": 138.84, "end": 142.36, "text": " This is what you see when you go to the first optional lab."}, {"start": 142.36, "end": 147.6, "text": " Feel free to scroll up and down and browse and mouse over the different menus and take"}, {"start": 147.6, "end": 151.28, "text": " a look at the different options here."}, {"start": 151.28, "end": 156.24, "text": " You might notice that there are two types of these blocks, also called cells, in the"}, {"start": 156.24, "end": 157.72, "text": " notebook."}, {"start": 157.72, "end": 160.24, "text": " And there are two types of cells."}, {"start": 160.24, "end": 166.36, "text": " One is what's called a markdown cell, which means basically a bunch of text."}, {"start": 166.36, "end": 171.4, "text": " So here you can actually edit the text if you don't like the text that we wrote."}, {"start": 171.4, "end": 175.48000000000002, "text": " But this is text that describes the code."}, {"start": 175.48000000000002, "end": 182.76000000000002, "text": " Then there's a second type of block or cell, which looks like this, which is a code cell."}, {"start": 182.76000000000002, "end": 185.16000000000003, "text": " So here we've already provided the code."}, {"start": 185.16000000000003, "end": 190.64000000000001, "text": " And if you want to run this code cell, hitting shift enter will run the code in this code"}, {"start": 190.64000000000001, "end": 191.64000000000001, "text": " cell."}, {"start": 191.64, "end": 197.64, "text": " Oh, and by the way, if you click on a markdown cell, so it's showing all this formatting,"}, {"start": 197.64, "end": 201.67999999999998, "text": " go ahead and hit shift enter on your keyboard as well."}, {"start": 201.67999999999998, "end": 206.48, "text": " And that will also convert it back to this nicely formatted text."}, {"start": 206.48, "end": 209.77999999999997, "text": " This optional lab shows some common Python code."}, {"start": 209.77999999999997, "end": 214.5, "text": " So you can go ahead and run this afterwards in your own Jupyter notebook."}, {"start": 214.5, "end": 219.33999999999997, "text": " When you jump into this notebook yourself, what I'd like you to do is select the cells"}, {"start": 219.33999999999997, "end": 221.2, "text": " and hit shift enter."}, {"start": 221.2, "end": 225.48, "text": " Well, read through the code, see if it makes sense, you know, try to make a prediction"}, {"start": 225.48, "end": 232.07999999999998, "text": " about what you think this code will do, and then hit shift enter and then see what the"}, {"start": 232.07999999999998, "end": 234.07999999999998, "text": " code actually does."}, {"start": 234.07999999999998, "end": 238.16, "text": " And if you feel like it, feel free to go in and edit the code, you know, change the code"}, {"start": 238.16, "end": 240.95999999999998, "text": " and then run it and see what happens."}, {"start": 240.95999999999998, "end": 245.28, "text": " And if you haven't played in a Jupyter notebook environment before, I hope you become more"}, {"start": 245.28, "end": 248.76, "text": " familiar with Python in a Jupyter notebook."}, {"start": 248.76, "end": 253.72, "text": " I spend a lot of hours playing around in Jupyter notebooks, and so I hope you have fun with"}, {"start": 253.72, "end": 255.12, "text": " them too."}, {"start": 255.12, "end": 259.92, "text": " And after that, I look forward to seeing you in the next video, where we'll take the supervised"}, {"start": 259.92, "end": 265.86, "text": " learning problem and start to flesh out our first supervised learning algorithm."}, {"start": 265.86, "end": 279.36, "text": " I hope that'll be fun too, and look forward to seeing you there."}]