쉽고 재미있는 AI - S1
MareArts
Easy and Fun AI - MareArts
1. 인공지능이란 무엇?
2. 뉴럴 네트워크는 무엇?
3. 이미지를 위한 뉴럴 네트워크
4. 연속 데이터(시계열)을 위한 뉴럴 네트워크
5. 그래프를 위한 뉴럴 네트워크
Easy and Fun AI - MareArts
Easy and Fun AI - MareArts
인공지능이란?
Alan Turing
First proposed in the paper "Computing Machinery and Intelligence" published in 1950
Easy and Fun AI - MareArts
인공 지능은 어떻게 발전했나?
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
ImageNet Challenge
Easy and Fun AI - MareArts
ImageNet Challenge
Easy and Fun AI - MareArts
What is a neural network?
Easy and Fun AI - MareArts
What is a neural network?
f(X) = WX + b
Easy and Fun AI - MareArts
What is a neural network?
Easy and Fun AI - MareArts
What is a neural network?
X
w
w
w
Easy and Fun AI - MareArts
Training a neural network
f(x) = WX
정답에 얼마나 가깝나? 함수
Easy and Fun AI - MareArts
Training a neural network
f(x) = WX
J(W)
W
핀볼 핀 위치 변경!!
Easy and Fun AI - MareArts
neural network?
f(x) = WX
x1
x2
x3
w1
w2
w3
모델 (model) !!!!
비용함수 (Loss) !!!!
Easy and Fun AI - MareArts
Neural Network Python Code
Easy and Fun AI - MareArts
복잡한 뉴럴네트워크도 문제 없어!
Easy and Fun AI - MareArts
이미지는 어떻게 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
이미지는 어떻게 Neural Network 모델을 만드나?
Easy and Fun AI - MareArts
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
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
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
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
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
CNN Python Code
Easy and Fun AI - MareArts
Alex Net (imageNet 2012 winner)
Easy and Fun AI - MareArts
연속 값 데이터는 어떻게 Neural Network 모델을 만드나?
나는 오늘 엄청 맛있는 것을 먹고 싶다.
Easy and Fun AI - MareArts
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
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
Recurrent Neural Network (RNN)
Easy and Fun AI - MareArts
Recurrent Neural Network (RNN)
Easy and Fun AI - MareArts
Recurrent Neural Network (RNN)
Easy and Fun AI - MareArts
Recurrent Neural Network (RNN)
Easy and Fun AI - MareArts
RNN Python Code
Easy and Fun AI - MareArts
그래프 데이터는 어떻게 Neural Network 모델을 만드나?
Easy and Fun AI - MareArts
그래프 데이터는 어떻게 Neural Network 모델을 만드나?
n1
n2
n3
NN ??
Easy and Fun AI - MareArts
그래프 데이터는 어떻게 Neural Network 모델을 만드나?
n1
n2
n3
NN ??
Easy and Fun AI - MareArts
그래프 데이터는 어떻게 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
그래프 데이터는 어떻게 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
그래프 데이터는 어떻게 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
Python code
Easy and Fun AI - MareArts
다음 시간에 계속~
만약 시간이 된다면…
Easy and Fun AI - MareArts