prof. dr. lambert schomaker shattering two binary dimensions over a number of classes kunstmatige...

29
prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

Post on 22-Dec-2015

224 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

prof. dr. Lambert Schomaker

Shattering two binary dimensionsover a number of classes

Kunstmatige Intelligentie / RuG

Page 2: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

2

Samples and classes

In order to understand the principle of shattering sample points into classes we will look at the simple case of

two dimensions

of binary value

Page 3: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

3

2-D feature space

0

0

1

1

f1

f2

Page 4: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

4

2-D feature space, 2 classes

0

0

1

1

f1

f2

Page 5: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

5

the other class…

0

0

1

1

f1

f2

Page 6: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

6

2 left vs 2 right

0

0

1

1

f1

f2

Page 7: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

7

top vs bottom

0

0

1

1

f1

f2

Page 8: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

8

right vs left

0

0

1

1

f1

f2

Page 9: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

9

bottom vs top

0

0

1

1

f1

f2

Page 10: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

10

lower-right outlier

0

0

1

1

f1

f2

Page 11: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

11

lower-left outlier

0

0

1

1

f1

f2

Page 12: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

12

upper-left outlier

0

0

1

1

f1

f2

Page 13: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

13

upper-right outlier

0

0

1

1

f1

f2

Page 14: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

14

etc.

0

0

1

1

f1

f2

Page 15: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

15

2-D feature space

0

0

1

1

f1

f2

Page 16: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

16

2-D feature space

0

0

1

1

f1

f2

Page 17: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

17

2-D feature space

0

0

1

1

f1

f2

Page 18: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

18

XOR configuration A

0

0

1

1

f1

f2

Page 19: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

19

XOR configuration B

0

0

1

1

f1

f2

Page 20: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

20

2-D feature space, two classes: 16 hypotheses

f1=0f1=1f2=0f2=1

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

“hypothesis” = possible class partioning of all data samples

Page 21: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

21

2-D feature space, two classes, 16 hypotheses

f1=0f1=1f2=0f2=1

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

two XOR class configurations:

2/16 of hypotheses requires a non-linear separatrix

Page 22: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

22

XOR, a possible non-linear separation

0

0

1

1

f1

f2

Page 23: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

23

XOR, a possible non-linear separation

0

0

1

1

f1

f2

Page 24: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

24

2-D feature space, three classes, # hypotheses?

f1=0f1=1f2=0f2=1

0 1 2 3 4 5 6 7 8

…………

Page 25: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

25

2-D feature space, three classes, # hypotheses?

f1=0f1=1f2=0f2=1

0 1 2 3 4 5 6 7 8

…………

34 = 81 possible hypotheses

Page 26: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

26

Maximum, discrete space

Four classes: 44 = 256 hypotheses Assume that there are no more classes than

discrete cells Nhypmax = ncellsnclasses

Page 27: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

27

2-D feature space, three classes…

0

0

1

1

f1

f2

In this example, is linearly separatablefrom the rest, as is .

But is not linearly separatable from the rest of the classes.

Page 28: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

28

2-D feature space, four classes…

0

0

1

1

f1

f2 Minsky & Papert:simple tablelookup or logic will do nicely.

Page 29: Prof. dr. Lambert Schomaker Shattering two binary dimensions over a number of classes Kunstmatige Intelligentie / RuG

29

2-D feature space, four classes…

0

0

1

1

f1

f2 Spheres or radial-basisfunctions may offer a compact classencapsulation in case of limited noise andlimited overlap

(but in the end the datawill tell: experimentationrequired!)