Question: Modify the training set of Fig. 12.6 so that example b also includes the word nigeria (yet remains a negative example perhaps someone telling about
Modify the training set of Fig. 12.6 so that example b also includes the word nigeria (yet remains a negative example perhaps someone telling about their trip to Nigeria). Find a weight vector th at separates the positive and negative examples, using: (a) The basic training method of Section 12.2.1. (b) The Winnow method of Section 12.2.3.
Example 12.6:
Let us modify the training set of Fig. 12.6 to incorporate a sixth word that represents the negative of the threshold. The new data is shown in Fig. 12.8.
http://infolab.stanford.edu/~ullman/mmds/book.pdf
| and | viagra | the | of | nigeria | y | ||
| a | 1 | 1 | 0 | 1 | 1 | -1 | +1 |
| b | 0 | 0 | 1 | 1 | 0 | -1 | -1 |
| c | 0 | 1 | 1 | 0 | 0 | -1 | +1 |
| d | 1 | 0 | 0 | 1 | 0 | -1 | -1 |
| e | 1 | 0 | 1 | 0 | 1 | -1 | +1 |
| f | 1 | 0 | 1 | 1 | 0 | -1 | -1 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
