SlideShare a Scribd company logo
CourseraMachineLearning으로
기계학습배우기:week5
1
개요
지난시간에이어CourseraMachineLearning으로기계학습배우기:week5
정리를진행한다.
해당포스팅은연재글로써지난연재는아래의링크를참고한다.
CourseraMachineLearning으로기계학습배우기:week1
CourseraMachineLearning으로기계학습배우기:week2
CourseraMachineLearning으로기계학습배우기:week3
CourseraMachineLearning으로기계학습배우기:week4
2
글을읽기에앞서…
본글은필자가코세라기계학습을공부를하는과정에서개념을확고히정
리하기위하는데목적이있다.(필자가나중에내용을다시찾아보기위한
목적이있다.)
코세라강의week개수에맞추어포스팅을진행할예정이다.
코세라의슬라이드에한글주석을단것이핵심으로내용에서글을읽을필
요없이슬라이드그림만으로최대한이해가되게끔하는데목적이있다.
수학은한국의고등수학을베이스로한다.수학적개념이나올때가급적
고등학교수학을베이스로내용을정리한다.
정리내용의목차구성을코세라강의와동일하게맞추고또한제목을원문
으로둔다.(원본강의내용과정리내용을서로서로찾아보기쉽게하기위
함이다.)
3
CostFunctionandBackpropagation
CostFunction
4
CostFunction(1/2)
5
CostFunction(2/2)
6
BackpropagationAlgorithm
BackPropagation의또다른이름은Error‑Backpropagation이다.즉에러를
역전파하는알고리즘이라는뜻이다.
7
BackpropagationAlgorithm(1/4)
8
BackpropagationAlgorithm(2/4)
9
BackpropagationAlgorithm(3/4)
10
BackpropagationAlgorithm(4/4)
11
BackpropagationIntuition
12
BackpropagationIntuition(1/4)
13
BackpropagationIntuition(2/4)
14
BackpropagationIntuition(3/4)
15
BackpropagationIntuition(4/4)
16
BackpropagationinPractice
Implementationnote:UnrollingParameters
17
Implementationnote:UnrollingParameters(1/7)
18
Implementationnote:UnrollingParameters(2/7)
19
Implementationnote:UnrollingParameters(3/7)
20
Implementationnote:UnrollingParameters(4/7)
직접옥타브로실습하여어떤개념인지구체적으로이해해보자.
>> Theta1 = ones(10,11)
Theta1 =
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
21
Implementationnote:UnrollingParameters(5/7)
>> Theta2 = 2*ones(10,11)
Theta2 =
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2
22
Implementationnote:UnrollingParameters(6/7)
>> Theta3 = 3*ones(1,11)
Theta3 =
3 3 3 3 3 3 3 3 3 3 3
>> thetaVec = [Theta1(:); Theta2(:); Theta3(:)];
>> size(thetaVec )
ans =
231 1
23
Implementationnote:UnrollingParameters(7/7)
thetaVec에서세타1으로사용할행렬을reshape을통해추출할수있다.
>> reshape(thetaVec(1:110), 10, 11)
ans =
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1
24
GradientChecking
25
GradientChecking(1/4)
26
GradientChecking(2/4)
27
GradientChecking(3/4)
28
GradientChecking(4/4)
29
RandomInitialization
30
RandomInitialization(1/3)
31
RandomInitialization(2/3)
32
RandomInitialization(3/3)
33
PuttingitTogether
34
PuttingitTogether(1/6)
35
PuttingitTogether(2/6)
36
PuttingitTogether(3/6)
37
PuttingitTogether(4/6)
38
PuttingitTogether(5/6)
39
PuttingitTogether(6/6)
40

More Related Content

PPTX
HA with RelStorage and Postgres
PDF
I Need Serious Help with this assignment. Plenty Points to be earned.pdf
PDF
Coursera Machine Learning으로 기계학습 배우기 : week3
PDF
Coursera Machine Learning으로 기계학습 배우기 : week4
KEY
Into Clojure
PPTX
CP1-Chp6-Matrices (2).pptx used for revision
PDF
19 Jo P July 08
PPTX
D1T4S2_클라우드를 넘어, 보험사의 미래를 그리다_241104_블로그포스팅용....
HA with RelStorage and Postgres
I Need Serious Help with this assignment. Plenty Points to be earned.pdf
Coursera Machine Learning으로 기계학습 배우기 : week3
Coursera Machine Learning으로 기계학습 배우기 : week4
Into Clojure
CP1-Chp6-Matrices (2).pptx used for revision
19 Jo P July 08
D1T4S2_클라우드를 넘어, 보험사의 미래를 그리다_241104_블로그포스팅용....

More from Kwangsik Lee (17)

PDF
MLAAS(Machine Learning As A Service) 기술관점 분석
PDF
Azure ML Studio를 분석해보자.
PDF
Amazon Personalize를 분석해보자.
PDF
Supervisord 사용법을 간단히 알아보자!
PDF
[개념정리] DB: Recovery
PDF
[개념정리] DB: Concurrency Control
PDF
[개념정리] DB: Indexing과 Hashing
PDF
Visual AI(시각 인공지능) Lecture 5 : Backpropagation
PDF
Week4Visual AI(시각 인공지능) Lecture 4 : Multiple Layer Perceptron (MLP)
PDF
Visual AI(시각 인공지능) Lecture 3 : Optimization by Gradient Descent
PDF
Visual AI(시각 인공지능) Lecture 2 : Neural Networks and Preceptron
PDF
Visual AI(시각 인공지능) Lecture 1 : 최신 Trend 소개
PDF
Coursera Machine Learning으로 기계학습 배우기 : week2
PDF
[논문분석] Segmentation based lyrics-audio alignment using dynamic programming
PDF
Coursera Machine Learning으로 기계학습 배우기 : week1
PDF
CycleGAN이 무엇인지 알아보자
PPTX
알아두면 쓸데있는 신비한 딥러닝 이야기
MLAAS(Machine Learning As A Service) 기술관점 분석
Azure ML Studio를 분석해보자.
Amazon Personalize를 분석해보자.
Supervisord 사용법을 간단히 알아보자!
[개념정리] DB: Recovery
[개념정리] DB: Concurrency Control
[개념정리] DB: Indexing과 Hashing
Visual AI(시각 인공지능) Lecture 5 : Backpropagation
Week4Visual AI(시각 인공지능) Lecture 4 : Multiple Layer Perceptron (MLP)
Visual AI(시각 인공지능) Lecture 3 : Optimization by Gradient Descent
Visual AI(시각 인공지능) Lecture 2 : Neural Networks and Preceptron
Visual AI(시각 인공지능) Lecture 1 : 최신 Trend 소개
Coursera Machine Learning으로 기계학습 배우기 : week2
[논문분석] Segmentation based lyrics-audio alignment using dynamic programming
Coursera Machine Learning으로 기계학습 배우기 : week1
CycleGAN이 무엇인지 알아보자
알아두면 쓸데있는 신비한 딥러닝 이야기
Ad

Recently uploaded (20)

PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Hybrid model detection and classification of lung cancer
PDF
project resource management chapter-09.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Mushroom cultivation and it's methods.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
OMC Textile Division Presentation 2021.pptx
A comparative analysis of optical character recognition models for extracting...
Zenith AI: Advanced Artificial Intelligence
Univ-Connecticut-ChatGPT-Presentaion.pdf
Tartificialntelligence_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DP Operators-handbook-extract for the Mautical Institute
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25-Week II
TLE Review Electricity (Electricity).pptx
Chapter 5: Probability Theory and Statistics
Unlocking AI with Model Context Protocol (MCP)
Hybrid model detection and classification of lung cancer
project resource management chapter-09.pdf
A comparative study of natural language inference in Swahili using monolingua...
SOPHOS-XG Firewall Administrator PPT.pptx
Web App vs Mobile App What Should You Build First.pdf
Mushroom cultivation and it's methods.pdf
Ad

Coursera Machine Learning으로 기계학습 배우기 : week5