1 of 41

쉽고 재미있는 AI - S1

MareArts

Easy and Fun AI - MareArts

2 of 41

1. 인공지능이란 무엇?

2. 뉴럴 네트워크는 무엇?

3. 이미지를 위한 뉴럴 네트워크

4. 연속 데이터(시계열)을 위한 뉴럴 네트워크

5. 그래프를 위한 뉴럴 네트워크

Easy and Fun AI - MareArts

3 of 41

강의 자료

  • www.marearts.com -> Fun and Easy AI

프로그래밍 언어

  • Python
  • 구글 코랩
  • VS Code

인공지능 라이브러리

  • PyTorch

Easy and Fun AI - MareArts

4 of 41

인공지능이란?

Alan Turing

First proposed in the paper "Computing Machinery and Intelligence" published in 1950

Easy and Fun AI - MareArts

5 of 41

인공 지능은 어떻게 발전했나?

ImageNet Competition

2012

“Attention is All You Need” paper released

2017

?

SkyNet

Terminator

Lage model

Lage multimodal model

Quantum computer

2024

Machine learning using traditional methods

1998

Easy and Fun AI - MareArts

6 of 41

ImageNet Challenge

Easy and Fun AI - MareArts

7 of 41

ImageNet Challenge

Easy and Fun AI - MareArts

8 of 41

What is a neural network?

Easy and Fun AI - MareArts

9 of 41

What is a neural network?

f(X) = WX + b

Easy and Fun AI - MareArts

10 of 41

What is a neural network?

Easy and Fun AI - MareArts

11 of 41

What is a neural network?

X

w

w

w

Easy and Fun AI - MareArts

12 of 41

Training a neural network

f(x) = WX

정답에 얼마나 가깝나? 함수

Easy and Fun AI - MareArts

13 of 41

Training a neural network

f(x) = WX

J(W)

W

핀볼 핀 위치 변경!!

Easy and Fun AI - MareArts

14 of 41

neural network?

f(x) = WX

x1

x2

x3

w1

w2

w3

모델 (model) !!!!

비용함수 (Loss) !!!!

Easy and Fun AI - MareArts

15 of 41

Neural Network Python Code

Easy and Fun AI - MareArts

16 of 41

복잡한 뉴럴네트워크도 문제 없어!

Easy and Fun AI - MareArts

17 of 41

이미지는 어떻게 Neural Network 모델을 만드나?

2

3

1

3

2

1

1

2

1

SUM

w1

w2�w3

w4

w5

w6

w7

w8

w9

y

Easy and Fun AI - MareArts

18 of 41

이미지는 어떻게 Neural Network 모델을 만드나?

Easy and Fun AI - MareArts

19 of 41

Convolution Neural Network

https://towardsdatascience.com/intuitively-understanding-convolutions-for-deep-learning-1f6f42faee1

w1

w2�w3

w4

w5

w6

w7

w8

w9

i1�i2

i3

i6

i7

i8

i11

i12

i13

X

w1

w2�w3

w4

w5

w6

w7

w8

w9

i2�i3

i4

i5

i6

i7�i12

i13

i14

X

w1

w2�w3

w4

w5

w6

w7

w8

w9

i3�i4

i5

i8

i9

i10�i13

i14

i15

X

= h1

= h2

= h3

Easy and Fun AI - MareArts

20 of 41

Convolution Neural Network

https://towardsdatascience.com/intuitively-understanding-convolutions-for-deep-learning-1f6f42faee1

w1

w2�w3

w4

w5

w6

w7

w8

w9

i6�i7

i8

i11

i12

i13

i16

i17

i18

X

w1

w2�w3

w4

w5

w6

w7

w8

w9

i7�i8

i9

i12

i13

i14�i17

i18

i19

X

w1

w2�w3

w4

w5

w6

w7

w8

w9

i8�i9

i10

i13

i14

i15�i18

i19

i20

X

= h4

= h5

= h6

Easy and Fun AI - MareArts

21 of 41

Convolution Neural Network

https://towardsdatascience.com/intuitively-understanding-convolutions-for-deep-learning-1f6f42faee1

= h7

= h8

= h9

X7 * W

X8 * W

X9 * W

Easy and Fun AI - MareArts

22 of 41

Convolution Neural Network

https://towardsdatascience.com/intuitively-understanding-convolutions-for-deep-learning-1f6f42faee1

h1

h2

h3

h4

h5

h6

h7

h8

h9

Easy and Fun AI - MareArts

23 of 41

Convolution Neural Network

SUM

y

i1

i2

i3

i4

i5

i6

i7

i8

i9

i10

i11

i12

i13

i14

i15

i16

i17

i18

i19

i20

i21

i22

i23

i24

i25

3x3

Conv

h1

h2

h3

h4

h5

h6

h7

h8

h9

h1

h2

h3

h4

h5

h6

h7

h8

h9

w1

w2�w3

w4

w5

w6

w7

w8

w9

Easy and Fun AI - MareArts

24 of 41

CNN Python Code

Easy and Fun AI - MareArts

25 of 41

Alex Net (imageNet 2012 winner)

Easy and Fun AI - MareArts

26 of 41

연속 값 데이터는 어떻게 Neural Network 모델을 만드나?

나는 오늘 엄청 맛있는 것을 먹고 싶다.

Easy and Fun AI - MareArts

27 of 41

Recurrent Neural Network (RNN)

영화

정말

재미없어

0.3

0.11

1.2

0.32

0.2

2.3

0.21

0.11

2.3

0

1.2

0.11

x1

x2

x3

x4

Easy and Fun AI - MareArts

28 of 41

Recurrent Neural Network (RNN)

x1

W0

h1=x1*W0

x2

W0

h2=h2+h1

h1=h1*W1

h2 = x2*W0

W1

x3

W0

h3 = h3+h2

h2=h2*W1

h3 = x3*W0

W1

x4

W0

h4 = h4+h3

h3=h3*W1

h4 = x4*W0

W1

y1=h1*W2

W2

y2=h2*W2

W2

y3=h3*W2

W2

y4=h4*W2

W2

Easy and Fun AI - MareArts

29 of 41

Recurrent Neural Network (RNN)

Easy and Fun AI - MareArts

30 of 41

Recurrent Neural Network (RNN)

Easy and Fun AI - MareArts

31 of 41

Recurrent Neural Network (RNN)

Easy and Fun AI - MareArts

32 of 41

Recurrent Neural Network (RNN)

Easy and Fun AI - MareArts

33 of 41

RNN Python Code

Easy and Fun AI - MareArts

34 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

Easy and Fun AI - MareArts

35 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

n1

n2

n3

NN ??

Easy and Fun AI - MareArts

36 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

n1

n2

n3

NN ??

Easy and Fun AI - MareArts

37 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

n1

n2

n3

x1=[ 1.2 ]

x2=[ 2.2 ]

x3=[ 1.3 ]

1 0 0

0 1 0

0 0 1

*

x1

x2

x3

*

w1 w2 w3

= x1*w1

x2*w2

x3*w3

Easy and Fun AI - MareArts

38 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

n1

n2

n3

x1=[ 1.2 ]

x2=[ 2.2 ]

x3=[ 1.3 ]

1 1 0

1 1 0

0 0 1

*

x1

x2

x3

*

w1 w2 w3

= (x1+x2)*w1

(x1+ x2)*w2

x3*w3

Easy and Fun AI - MareArts

39 of 41

그래프 데이터는 어떻게 Neural Network 모델을 만드나?

n1

n2

n3

x1=[ 1.2 ]

x2=[ 2.2 ]

x3=[ 1.3 ]

1 1 0

1 1 1

0 1 1

*

[x1, x2, x3]

*

w1

w2

w3

= (x1+x2)*w1 +(x1+ x2+x3)*w2 + (x2+x3)*w3

Easy and Fun AI - MareArts

40 of 41

Python code

Easy and Fun AI - MareArts

41 of 41

다음 시간에 계속~

만약 시간이 된다면…

Easy and Fun AI - MareArts