teachTensor, validityScore,
findPredicates, and findArg2s.
You might find it useful to look at this code, if you
are unsure about the algorithmic description in the lectures.
A solution is not appropriate for this exercise.
Answer: From the lecture notes, carrot is represented by ½×(1, 1, –1, –1), and mouse is represented by ½×(1, –1, 1, –1). So the outer product is 0.25 ×
| 1 | –1 | 1 | –1 |
| 1 | –1 | 1 | –1 |
| –1 | 1 | –1 | 1 |
| –1 | 1 | –1 | 1 |
Answer: From the lecture notes, rabbit is represented by ½×(1, 1, 1, 1), and cat is represented by ½×(1, –1, –1, 1). So the outer product is 0.25 ×
| 1 | –1 | –1 | 1 |
| 1 | –1 | –1 | 1 |
| 1 | –1 | –1 | 1 |
| 1 | –1 | –1 | 1 |
Answer: ½ ×
| 1 | –1 | 0 | 0 |
| 1 | –1 | 0 | 0 |
| 0 | 0 | –1 | 1 |
| 0 | 0 | –1 | 1 |
Answer: It represents the relation {(carrot, mouse), (rabbit, cat)}. Since we were thinking of this as an is eaten by relation, you could say that it represents the relation in which mouse eats carrot and cat eats rabbit.
Answer: 2
Answer: 16 = 4 × 4
Copyright © Bill Wilson, 2008.
Bill Wilson's contact info
UNSW's CRICOS Provider No. is 00098G