Professional Documents
Culture Documents
W I N N E R: Ireless Nternet A D Etwork Ngineering Esearch Lab
W I N N E R: Ireless Nternet A D Etwork Ngineering Esearch Lab
Lec 3
(AI, 기초 머신러닝)
2023.03.14
q 인공지능
Jongtae Lee
인공지능(Artificial Intelligence)이란?
The study of the computations that make it Computional Intelligence is the study of the
possible to perceive, reason, and act. design of intelligent agents.
인공지능 – 현대적 접근
Jongtae Lee
인공지능(Artificial Intelligence)이란?
q 인공지능의 4가지 유형
Jongtae Lee
인공지능(Artificial Intelligence)이란?
머신러닝
딥러닝
사고나 학습 등 인간이 가진
컴퓨터가 스스로 학습 인간의 뉴런과 비슷한
지적 능력을 컴퓨터를 하여 인공신경망 방식으로 정보
통해 구현하는 기술 인공지능의 성능을 향상 처리
시키는 기술 방법
5
Jongtae Lee
머신러닝(Machine Learning)
q 머신러닝(Machine Learning) 정의
Ø Arthur Lee Samuel 의 1959년 정의
Ø 일반적인 프로그램
“ A 입력에 B조건이 성립하면 X를 동작시킨다” 를 인간이 작성.
Ø 머신 러닝
A라는 정보를 입력할 때 대답이 X가 되는 조건 B를 찾도록 기계를 학습.
8
Jongtae Lee
머신러닝(Machine Learning)
q 머신러닝(Machine Learning) 정의
Ø Tom Mitchell의 1998년 정의 - 현대에는 Tom Mitchell의 정의를 사용
Ø Ex) 필기체 문자 인식
8
Jongtae Lee
머신러닝(Machine Learning)
q 머신러닝(Machine Learning) 분류
Ø Supervised Learning(지도학습)
ü 입력과 결과 값을 이용한 학습
입력 값과 함께 결과값을 같이 주고 학습시키는 방법
ex) 분류, 회귀 – 학습모델 : SVM, Decision Tree, KNN, 선형/로지스터 회귀
Ø Unsupervised Learning(비지도학습)
ü 입력만을 이용한 학습
결과 값(정답) 없이 입력 값 만을 이용하여 학습을 시키는 방법
ex) 군집화, 압축 – 학습모델 : K – means 클러스터링
Ø Reinforcement Learning(강화학습)
ü 결과값 대신 리워드(reward) 주어짐
현재의 상태(State)에서 어떤 행동(Action)을 취하는 것이 최적인지를 학습
ex) Action Selection, Policy Learning – 학습모델 : MDP(Markov Decision Process)
8
Jongtae Lee
머신러닝(Machine Learning)
q 머신러닝(Machine Learning) 분류
8
Jongtae Lee
머신러닝(Machine Learning)
q Supervised learning
Ø To learn with correct answer (Pre-Training Post-Experiment)
Ø Most common problem type in ML
Ø Classification example
① ②
or Training
dog cat
<Input>
Label(ex. File name)
③
⑤
④
Cat or Dog or
<Output>
9
Jongtae Lee
머신러닝(Machine Learning)
q Unsupervised learning
Ø To learn without correct answer
Ø Clustering example
<Input>
<Output>
Ø Anomaly detection example
신용카드 거래내역 정보
<Input>
<Output> 10
Jongtae Lee
머신러닝(Machine Learning)
q Reinforcement learning
Ø To learn by obtaining some reward from taking some action against a given
environment state on policy.
Ø R/L example
<Component> <Result> 11
Jongtae Lee
머신러닝(Machine Learning)
q Reinforcement learning
Ø R/L example
<Reinforcement learning> 12
Jongtae Lee
머신러닝(Machine Learning)
q
Target Y
입력(Input) 출력(Output)
Black
box
Learning
13
Jongtae Lee
머신러닝(Machine Learning)
q Black-box approach
Ø Input and Output is expressed as a vector(Image, Video, Sound..)
ü 고양이 : [1,0,0], 개:[0,1,0],…)
ü 블랙박스 함수 모델은 다양한 방식으로 구현될 수 있지만 현재는 신경망(Neural Networks)이 선
호됨
Target Y
입력(Input) 출력(Output)
Neural
Networks
Learning
14
Jongtae Lee
머신러닝(Machine Learning)
q Process
① Select Subject
② Select Input Variables and Output Variables
③ Collect Data set
④ Design Neural Networks
⑤ Simulate and modify
→ How?
15
Jongtae Lee
머신러닝(Machine Learning)
q Linear Regression (선형회귀)
X Y
1 1
2 2
3 3
4 ?
(2)
(3)
I N O
X W, b Y
H(x) = Wx + b → Y = Wx + b
*W : weight(가중치), b : bias(편향)
머신러닝은?
Hypothesis ( H(x) = Wx + b )를 세워 가장 적절한 Hypothesis를 찾는다
H(x) = Wx + b
18
Jongtae Lee
머신러닝(Machine Learning)
q
19
Jongtae Lee
머신러닝(Machine Learning)
q Cost function minimization (Formal definition)
Ø Simplified cost function:
ü Cost(W)
Gradient
20
Jongtae Lee
머신러닝(Machine Learning)
q Cost function minimization with gradient descent method
Ø
Ø
Iterative computation (until there is no changes)
21
Jongtae Lee
머신러닝(Machine Learning)
q Learning rate
Ø Gradient descent method
https://hunkim.github.io/ml/
22
Jongtae Lee
머신러닝(Machine Learning)
q Learning rate
Ø Gradient descent method
https://hunkim.github.io/ml/
23
Jongtae Lee
머신러닝(Machine Learning)
q Local Minima
Ø 극소점이 아닌 기울기가 0인 다른 지점에서 학습이 멈추는 것
24
Jongtae Lee
머신러닝(Machine Learning)
q Linear Regression
X(hours) Y(score)
10 9
9 8 regression
3 5
2 3
X=7 Y=?
26
Jongtae Lee
머신러닝(Machine Learning)
q Linear Regression
Y = 0.6613X + 2.2793
X = 7 , Y = 6.907
27
Jongtae Lee
머신러닝(Machine Learning)
q Multi-Variable linear regression(다중선형회귀)
Ø Example) Final exam score prediction based on multiple Quiz scores
Ø Hypothesis
Ø Cost
X
W
https://hunkim.github.io/ml/
30
Jongtae Lee
머신러닝(Machine Learning)
q Hypothesis using matrix
Ø Data sample : #5
Ø Variables : #3
https://hunkim.github.io/ml/
31
Jongtae Lee
Thank you !
Q&A
32
Jongtae Lee