1 00:00:00,000 --> 00:00:04,909 [MUSIC] 2 00:00:04,909 --> 00:00:09,301 Now that we've defined a notation, let's go back to a decision boundary example and 3 00:00:09,301 --> 00:00:12,534 look at the impact of those coefficients that we've learned on 4 00:00:12,534 --> 00:00:15,890 the actual decision boundary that we've obtained. 5 00:00:15,890 --> 00:00:18,354 So in the example that we had, 6 00:00:18,354 --> 00:00:24,080 the score was defined by 1.0 times awesome- 1.5 times awful. 7 00:00:24,080 --> 00:00:28,828 That means that, W1 was 1.0, W2 was -1.5, and here, W0 was 0. 8 00:00:28,828 --> 00:00:33,910 I didn't show that 0 there, it was kind of saying that 0 is 0. 9 00:00:35,120 --> 00:00:41,370 And that's how we got a decision boundary, where the score below the line 10 00:00:41,370 --> 00:00:47,500 was greater than 0 and the score above the line was less than 0 and that's 11 00:00:47,500 --> 00:00:52,670 what made the predictions be positive on one side, negative on the other. 12 00:00:52,670 --> 00:00:58,450 Now, lets say that instead I had learned that the coefficient W0 was 1.0, 13 00:00:58,450 --> 00:00:58,950 instead of 0. 14 00:00:58,950 --> 00:01:00,843 What does that mean? 15 00:01:00,843 --> 00:01:06,044 That means that our Score function now has this extra term, 16 00:01:06,044 --> 00:01:11,363 1.0 times + 1.0 times awesome- 1.5 times awful. 17 00:01:11,363 --> 00:01:13,270 So what happens to the line to that decision boundary? 18 00:01:13,270 --> 00:01:15,660 Well, that line gets shifted up. 19 00:01:15,660 --> 00:01:20,880 And so if you look at that point on the lower left, which is close to 0.0, 20 00:01:20,880 --> 00:01:24,470 which before we predicted as being a negative review. 21 00:01:24,470 --> 00:01:28,120 After we make that change, we now predict it to be a positive review, so 22 00:01:28,120 --> 00:01:30,480 it turns from orange to blue. 23 00:01:30,480 --> 00:01:34,940 On the other hand, if you take the coefficient awful, which is now -1.5, and 24 00:01:34,940 --> 00:01:39,220 we increase it, we say it's -3.0, so awfuls are just really awful. 25 00:01:41,080 --> 00:01:41,766 What happens to our equation? 26 00:01:41,766 --> 00:01:46,625 Well, the -1.5 gets replaced by -3.0, so 27 00:01:46,625 --> 00:01:52,728 it becomes 1.0 + 1.0#awesomes,- 3 times #awfuls. 28 00:01:52,728 --> 00:01:57,110 And that curve tilts down a little bit. 29 00:01:57,110 --> 00:02:01,889 So if you look at that new point that was on the positive prediction side, 30 00:02:03,010 --> 00:02:08,220 it gets shifted to the other side of the decision boundary and it turns from blue 31 00:02:08,220 --> 00:02:13,320 to orange and that's because you have two awfuls in it and awfuls are just awfuls. 32 00:02:13,320 --> 00:02:18,140 And before they were counter balanced by the four awesomes in that data point, 33 00:02:18,140 --> 00:02:22,170 but now the four awesomes can't counter balance the two awfuls. 34 00:02:22,170 --> 00:02:26,449 [MUSIC]