1 00:00:01,110 --> 00:00:08,830 Hello, today we are going to teach machine learning for kids how to predict numbers, okay? 2 00:00:09,029 --> 00:00:14,109 So the first thing we are going to use is the normal Scratch webpage. 3 00:00:15,349 --> 00:00:20,350 We go to it, we google it, we can click on it, we don't need to log in, we can click on create. 4 00:00:20,890 --> 00:00:24,129 And we are going to use a basket simulator, okay? 5 00:00:24,809 --> 00:00:27,589 You already have the sb3 file, okay? 6 00:00:28,230 --> 00:00:32,450 You can download it, and the moment you have downloaded it, you can load it from your computer. 7 00:00:33,149 --> 00:00:37,189 Load it from your computer, and the file is called Basket, the SB3 file, okay? 8 00:00:38,030 --> 00:00:40,109 So, this is a simulator. 9 00:00:40,409 --> 00:00:44,310 Every time you press on the green flag, the ball moves to a random position. 10 00:00:44,469 --> 00:00:52,469 Now it's minus 64, minus 55, and here you can decide the power and the direction of your shot. 11 00:00:52,950 --> 00:00:56,429 So, let's consider that 529, I find. 12 00:00:56,429 --> 00:01:23,310 If you click on the ball and you press S, you shot the ball. And it's a score. Fine, perfect. So you are going to, if you click on R, if you press on R, I mean, you will type these values. You will register these values. So I'm going to register them using the block. You can register them on a sheet of paper, but I think it's easier if you use the block. You will see why later. 13 00:01:23,310 --> 00:01:50,349 x, y, power and direction. These are the four values you need to register. Direction. So x minus 64. You can see it here. Y minus 55. Every value must be separated by commas. Power 5, 29. 14 00:01:50,349 --> 00:02:10,349 So every time you score, you must register the X position, the Y position, the initial ones, the power and direction. So if you click on the red button, again on the green flag, the ball changes its original position. 15 00:02:10,349 --> 00:02:16,650 now is minus 215 and minus 40 so if I click on the ball very important click 16 00:02:16,650 --> 00:02:23,250 on the ball and then press S now is now we are failing so we need to go back to 17 00:02:23,250 --> 00:02:28,289 this position we press on air very very very important air don't press the red 18 00:02:28,289 --> 00:02:33,849 button air we go back to the our X and Y initial position I think I need a more 19 00:02:33,849 --> 00:02:38,969 powerful one let's try with seven I press on S no don't remember to click on 20 00:02:38,969 --> 00:02:52,330 Now I press on S, and almost, R, don't press, and now instead of 7, I'm going to use 8, I 8, I click on it, I press S, and now I have a score. 21 00:02:52,330 --> 00:02:56,629 this is a good position again, a good shot 22 00:02:56,629 --> 00:02:59,490 I press on air, again I'm going to copy 23 00:02:59,490 --> 00:03:05,129 I go to the block, minus 215 24 00:03:05,129 --> 00:03:08,110 comma minus 40 25 00:03:08,110 --> 00:03:11,949 comma 8 26 00:03:11,949 --> 00:03:14,310 comma 29 27 00:03:14,310 --> 00:03:19,969 to change the position, remember just to change the position, red button, green flag 28 00:03:19,969 --> 00:03:49,129 And now to shot, if I press S, I click on it, let's try a little bit less powerful, maybe 4S, no, remember, don't forget to click on the ball, now S, again shot, so R, I press on R and I have minus 32 is the X initial position, minus 2 is the Y initial position, 4,29. 29 00:03:49,129 --> 00:04:12,789 So you will repeat 10 times until you have 10 sets of different values that allow you to score. And the moment you have them, you will have to save it. For example, data.csv. Okay, this is the way you will save the information. 30 00:04:12,789 --> 00:04:16,689 I already had one, so I'm going to upload it. 31 00:04:17,189 --> 00:04:20,290 So, imagine you have ten different values, okay? 32 00:04:20,410 --> 00:04:22,769 So, we have finished with Scratch. 33 00:04:23,129 --> 00:04:24,930 Now, we go back to Machine Learning for Kids. 34 00:04:28,129 --> 00:04:35,350 The exercise we did, the part we did with Scratch was just to find a group of values 35 00:04:35,350 --> 00:04:38,670 that are the ones that allow us to score. 36 00:04:39,029 --> 00:04:40,750 Now, we are going to use a new project. 37 00:04:40,970 --> 00:04:42,550 We click on AƱadir un nuevo proyecto. 38 00:04:42,790 --> 00:05:01,790 Nombre del proyecto, basket, name of the project, basket, project type, predictive numbers, storage, your web browser. Remember that if you use the web browser, you are not allowed to open exactly this one in a different computer, okay? Just on this one. 39 00:05:01,790 --> 00:05:20,389 So, create, crear. Okay, I already have my project. If I click on it, I need to train it, as always, and I need to add the values I already have. I can type them one by one, but it's easier if you type them this way. 40 00:05:20,389 --> 00:05:39,850 If you use the upload CSV file. If you click on it, I will upload this one. This one is larger than the one I created before. So I have it. And I need to, I have all the values, but I need something else. I need to select the values I'm going to predict. 41 00:05:39,850 --> 00:05:46,829 I want to predict power, and I want to predict two directions. 42 00:05:47,529 --> 00:05:52,310 So, as you already know, I have two values that are going to be predicted, power and direction. 43 00:05:52,810 --> 00:05:59,930 Okay, so the moment I have two of them, I can go back to the project, and I can train the model. 44 00:06:00,750 --> 00:06:02,470 Entry a new model, or train the model. 45 00:06:03,089 --> 00:06:07,149 I click on it, and the system will need some time to train a new one. 46 00:06:08,250 --> 00:06:09,610 It's been really, really fast. 47 00:06:09,850 --> 00:06:32,250 So, for instance, imagine I'm again in Scratch, and I click on the red button, green flag, and I'm here in this position. Minus 2, minus 66. I'm going to try to, I'm going to ask the Machine Learning for Kids what are the power and direction correct values to score. 48 00:06:32,250 --> 00:06:48,209 minus 2, minus 86 are my values, minus 2, minus 86, minus 86, probar, try, and these are the solutions. 49 00:06:48,209 --> 00:07:24,569 I will need to round, for example, I will use 5 and 27, so I go back here, 5 and 27, 27, 5 and 27, 27, now, I click on the ball and I press S, I fail because my model is not perfect, but I can correct it, I can, for instance, if the direction is a bit, 50 00:07:24,870 --> 00:07:43,459 For instance, instead of 27, I can use 24. Let's try again. I click on the ball, and I press S. And this one is correct, okay? So I have, and now I have a new value that is correct. Minus 2, minus x is 6, 5, and 24. 51 00:07:43,459 --> 00:07:56,339 The machine made a mistake, it happens from time to time, remember we have a short number of pieces of information, but it doesn't matter. 52 00:07:56,339 --> 00:08:26,319 So, what else? I have my model and the exercise, your exercise will be about the creating part. You will create, click on create and you will go to scratch, open in scratch and here again you will open the file already, I have already given to you, archivo file, load from your computer and here you will 53 00:08:26,319 --> 00:08:33,379 use the basket.sb3 file and here you will complete it, but the instructions to 54 00:08:33,379 --> 00:08:37,720 complete it, you will read it in the instructions of your task, ok?