1 of 86

Figures From �Artificial Intelligence Engines

Some figures are copied with permission from other sources (see book).

Other figures created by JV Stone for this book are are licensed under a Creative Commons Attribution-Non Commercial 4.0 International License.

JV Stone

j.v.stone@sheffield.ac.uk

2 of 86

3 of 86

Figure 1.2

4 of 86

Figure 1.1

5 of 86

Figure 1.3

6 of 86

Figure 1.4

7 of 86

Perceptron

Backprop network

Hopfield Net

Boltzmann machine

Deep neural network

Figure 1.5

8 of 86

Figure 1.6

9 of 86

Figure 1.7

10 of 86

Figure 2.1

11 of 86

Figure 2.2

12 of 86

Figure 2.3

13 of 86

Figure 2.4

ΔE

Δw

gradient = ΔE/Δw

w*

w

14 of 86

Figure 2.5

15 of 86

Figure 2.6

16 of 86

Figure 2.7

17 of 86

Figure 2.8

18 of 86

Figure 3.1

19 of 86

Figure 3.2

20 of 86

Figure 3.3

21 of 86

Figure 3.4

22 of 86

Figure 3.5

.

θ

Classified as C1

Classified as C2

x

w.x

Decision

boundary

.

.

.

.

.

.

.

.

.

.

.

x1

x2

α

.

.

.

.

w

23 of 86

Figure 3.6

-1 +1

+1

-1

a

Weight

Vector

x

w

x1

x2

=

=

=

=

=

=

x

24 of 86

Figure 3.7

25 of 86

Figure 4.1

26 of 86

Figure 4.2

27 of 86

Figure 4.3

28 of 86

Figure 4.4

29 of 86

Figure 4.5

30 of 86

Figure 4.6

31 of 86

Figure 4.7

32 of 86

Figure 4.8

33 of 86

Figure 4.9

34 of 86

Figure 4.10

w1

w2

Local

minimum

Global

minimum

E(w)

35 of 86

Figure 4.11

Error function E

Weight

Global

minimum

Local

minima

36 of 86

Figure 4.12

-- i -- c o u l

Phoneme = /k/

Input units

Hidden units

Output units

37 of 86

Figure 4.13

38 of 86

Figure 4.14

39 of 86

Figure 5.1

40 of 86

Figure 5.2

41 of 86

Figure 6.1

42 of 86

For each

training vector:

1) Clamp

2) Anneal

3) Measure

E[yiyj]Wake

E[yiyj]Wake - E[yiyj]Sleep

  1. Anneal
  2. Measure E[yiyj]Sleep

Δwij

Update weights

1

1

0

0

0

0

0

0

Inner loop - wake

Inner loop - sleep

wij = wij + Δwij

Outer loop

Figure 6.2

43 of 86

Figure 6.3

44 of 86

Figure 6.4

45 of 86

Figure 6.5

46 of 86

Figure 7.1

47 of 86

Figure 7.2

48 of 86

Figure 7.3

49 of 86

Figure 7.4

50 of 86

Figure 7.5

51 of 86

Figure 7.6

52 of 86

Figure 7.7

53 of 86

Figure 7.8

54 of 86

Figure 8.1

Encoder

Encoder

network

z1

z2

input = x

Decoder

network

Decoder

output = x’

Latent variables

55 of 86

Figure 8.2

56 of 86

Figure 8.3

z1

.

encode

decode

z2

input = x

output = x’

Latent space

57 of 86

Figure 8.4

58 of 86

Figure 8.5

z1

z2

59 of 86

Figure 8.6

60 of 86

Figure 8.7

Encoder

Encoder

network

Decoder

network

Decoder

zi

μt

Σt

Sampled vector

zi ~ q(z|xt)

xt ~ p(x)

input = xt

output = xt

q(z|xt)

61 of 86

Figure 8.8

Decoder

x1

x2

z1

z2

μ1

.

μ2

.

q(z|x1)

q(z|x2)

p(x’|μ1)

p(x’|μ2)

62 of 86

Figure 8.9

w*

L

Weight

Log probability

log p(x)

D(q(z|x)||p(z|x))

63 of 86

Figure 8.10

x’

p(x|x’)

p(x’)

x

Probability

64 of 86

Figure 9.1

Ganglion cell

outputs

Cone outputs

Ganglion cell

receptive field

Ganglion cell

Cone

Retinal image

65 of 86

Figure 9.2

Hidden layer

Pixels

(visible layer)

Receptive field

Visible unit output

Hidden unit output

Visible unit input

Image

Hidden layer outputs

Connection weight

Hidden unit input

66 of 86

Figure 9.3

67 of 86

Figure 9.4

68 of 86

Figure 9.5

Input

Layer

16x16 image

Hidden

Layer 1

12 8x8 feature maps

Hidden

Layer 2

12 4x4

feature

maps

Hidden

Layer 3

30 units

5x5

convolution

5x5

convolution

Output

Layer

10 units

69 of 86

Figure 9.6

70 of 86

Figure 9.7

71 of 86

Figure 9.8

72 of 86

Figure 9.8

x

+

x

H(x) = F(x) + x

H(x) = F(x) + x

F(x) = H(x) - x

Input layer

Hidden layer

73 of 86

Figure 9.10

x

x

y

ŷ

noise

noise

noise

Noisy Encoder

Decoder

Encoder

74 of 86

Figure 9.11

a

?

b

c

d

Class A

Class B

Class A

Class A

Class A

Class B

Class B

Class B

X

75 of 86

Figure 9.12

76 of 86

Figure 9.13

Discriminator

Generator

Random

noise z

Training

set

Generated

image

Decision

image x

77 of 86

Figure 9.13

78 of 86

Figure 9.14

79 of 86

Figure 10.1

80 of 86

Figure 10.2

81 of 86

Figure 10.3

82 of 86

Figure 10.4

v* π*

Improving V

Improving π

Estimate V with fixed π

Estimate π with fixed V

Optimal v and π

Initial estimate

of policy and

state-value function

Estimate π with fixed V

83 of 86

Figure 10.5

Environment

Policy

State-Value

Function

Reward

Actor

Action

TD error

State

Critic

84 of 86

Figure 10.6

85 of 86

Figure 10.7

86 of 86

The end