Skip to Content
밑바닥부터 시작하는 딥러닝
book

밑바닥부터 시작하는 딥러닝

by 사이토 고키, 개앞맵시(이복연)
January 2017
Beginner to intermediate
312 pages
7h 3m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 딥러닝
119
4
장
-
신경망 학습
np
.
arange
(
batch
_
size
)는 [
0
,
1
,
2
,
3
,
4
]라는 넘파이 배열을 생성합니다.
t
에는 레이블이
[
2
,
7
,
0
,
9
,
4
]와 같이 저장되어 있으므로
y
[
np
.
arange
(
batch
_
size
),
t
]는 각 데이터의 정
답 레이블에 해당하는 신경망의 출력을 추출합니다 (이 예에서는
y
[
np
.
arange
(
batch
_
size
),
t
]는 [
y
[
0
,
2
],
y
[
1
,
7
],
y
[
2
,
0
],
y
[
3
,
9
],
y
[
4
,
4
]]인 넘파이 배열을 생성합니다).
4.2.5
왜 손실 함수를 설정하는가?
이쯤이면 손실 함수의 정의는 이해하셨을 겁니다. 그렇다면 왜 굳이 손실 함수를 사용해야 하
는 걸까요? 예컨대 숫자 인식의 경우도 우리의 궁극적인 목적은 높은 ‘정확도’를 끌어내는 매개
변수 값을 찾는 것입니다. 그렇다면 ‘정확도’라는 지표를 두고 중간에 손실 함수의 값을 거치는
것은 쉬운 길을 빙 돌아가는 것은 아닐까요?
이 의문은 신경망 학습에서의 ‘미분’의 역할에 주목한다면 해결됩니다. 자세한 것은 다음 절에
서 설명합니다만, 신경망 학습에서는 최적의 매개변수 (가중치와 편향 )를 탐색할 때 손실 함수
의 값을 가능한 한 작게 하는 매개변수 값을 찾습니다. 이때 매개변수의 미분(정확히는 기울
기)을 계산하고, 그 미분 값을 단서로 매개변수의 값을 서서히 갱신하는 과정을 반복합니다.
가령 여기에 가상의 신경망이 있고 그 신경망의 어느 한 가중치 매개변수에 주목한다고 합시
다. 이때 그 가중치 매개변수의 손실 함수의 미분이란 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

밑바닥부터 시작하는 비트코인

밑바닥부터 시작하는 비트코인

류정필, 송재준
엑셀이 편해지는 파이썬

엑셀이 편해지는 파이썬

펠릭스 춤슈타인

Publisher Resources

ISBN: 9788968484636