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

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

by 사이토 고키, 개앞맵시(이복연)
January 2017
Beginner to intermediate
312 pages
7h 3m
Korean
Hanbit Media, Inc.
Content preview from 밑바닥부터 시작하는 딥러닝
243
7
장
-
합성곱 신경망(CNN)
7.4.2
im2col
로 데이터 전개하기
합성곱 연산을 곧이곧대로 구현하려면
for
문을 겹겹이 써야겠죠. 생각만 해도 귀찮고, 또 넘파
이에
for
문을 사용하면 성능이 떨어진다는 단점도 있습니다 (넘파이에서는 원소에 접근할 때
for
문을 사용하지 않는 것이 바람직합니다 ). 이번 절에서는
for
문 대신
im2col
이라는 편의
함수를 사용해 간단하게 구현해보겠습니다.
im2col
은 입력 데이터를 필터링(가중치 계산)하기 좋게 전개하는 (펼치는) 함수입니다. [그림
7
-
17
]과 같이
3
차원 입력 데이터에
im2col
을 적용하면
2
차원 행렬로 바뀝니다 (정확히는 배
치 안의 데이터 수까지 포함한
4
차원 데이터를
2
차원으로 변환합니다).
그림
7-17
(대략적인)
im2col
의 동작
입력 데이터
im2col
은 필터링하기 좋게 입력 데이터를 전개합니다. 구체적으로는 [그림
7
-
18
]과 같이 입
력 데이터에서 필터를 적용하는 영역(
3
차원 블록 )을 한 줄로 늘어놓습니다. 이 전개를 필터를
적용하는 모든 영역에서 수행하는 게
im2col
입니다.
그림
7-18
필터 적용 영역을 앞에서부터 순서대로
1
줄로 펼친다.
244
밑바닥부터 시작하는 딥러닝
[그림
7
-
18
]에서는 보기에 좋게끔 스트라이드를 크게 잡아 필터의 적용 영역이 겹치지 ...
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