Skip to Content
핸즈온 머신러닝(2판): 사이킷런, 케라스, 텐서플로 2를 활용한 머신러닝, 딥러닝 완벽 실무
book

핸즈온 머신러닝(2판): 사이킷런, 케라스, 텐서플로 2를 활용한 머신러닝, 딥러닝 완벽 실무

by 박해선, 오렐리앙 제롱
May 2020
Beginner to intermediate
952 pages
24h 11m
Korean
Hanbit Media, Inc.
Content preview from 핸즈온 머신러닝(2판): 사이킷런, 케라스, 텐서플로 2를 활용한 머신러닝, 딥러닝 완벽 실무
653
16
장
RNN과 어텐션을 사용한 자연어 처리
그림
16-5
양방향 순환 층
16.3.2
빔 검색
인코더-디코더 모델을 훈련하여 프랑스어 문장 ‘
Comment
vas
-
tu
?’를 영어로 번역한다고
가정해봅시다. 올바른 번역(
How
are
you
?)이 출력되길 기대하지만 안타깝게도 ‘
How
will
you
?’가 출력됩니다. 훈련 세트를 들여다 보니 ‘
How
will
you
play
?’라는 뜻의 ‘
Comment
vas
-
tu
jouer
?’와 같은 문장이 많다는 걸 알았습니다. 모델이 ‘
Comment
vas
’를 보고 ‘
How
will
’을 출력하지 않도록 해야 합니다. 하지만 모델은 실수가 있더라도 뒤로 돌아가 고칠 수 없
으므로, 가능한 최선을 다해 문장을 완성해야 합니다. 스텝마다 무조건 가장 가능성 있는 단어
를 출력해서는 최적의 번역을 만들지 못합니다. 어떻게 모델이 앞선 실수를 고칠 수 있게 할까
요? 널리 사용하는 방법 중 하나가
빔 검색
beam
search
입니다.
k
개의 가능성 있는 (예를 들면 상위
세 개) 문장의 리스트를 유지하고 디코더 단계마다 이 문장의 단어를 하나씩 생성하여 가능성
있는
k
개의 문장을 만듭니다. 파라미터
k
를
빔 너비
beam
width
라고 부릅니다.
예를 들어 빔 너비
3
의 빔 검색으로 ‘
Comment
vas
-
tu
?’를 번역한다고 ...
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: 9791162242964