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를 활용한 머신러닝, 딥러닝 완벽 실무
609
15
장
RNN과 CNN을 사용해 시퀀스 처리하기
앞질렀네요!
마지막 층은 이상적이지 않습니다. 단변량 시계열을 예측하기 때문에 하나의 유닛이 필요하
고 이는 타임 스텝마다 하나의 출력을 만들어야 한다는 뜻입니다. 하나의 유닛을 가진다는 것
은 은닉 상태가 하나의 숫자라는 뜻입니다. 많지는 않지만 쓸모가 있진 않습니다. 아마 이
RNN
은 한 타임 스텝에서 다음 타임 스텝으로 필요한 모든 정보를 나르기 위해 다른 순환 층
의 은닉 상태를 주로 사용할 것입니다. 마지막 층의 은닉 상태는 크게 필요하지 않습니다. 또
한
SimpleRNN
층은 기본적으로
tanh
활성화 함수를 사용하기 때문에 예측된 값이 -
1
과
1
사
이 범위에 놓입니다. 다른 활성화 함수를 사용하려면 어떻게 할까요? 이런 이유로 출력층을
Dense
층으로 바꾸는 경우가 많습니다.
9
더 빠르면서 정확도는 거의 비슷합니다. 또한 원하는
활성화 함수를 선택할 수 있습니다. 이렇게 바꾸려면 (이제는 마지막이 된) 두 번째 순환 층에
서
return
_
sequences
=
True
를 제거합니다.
model = keras.models.Sequential([
keras.layers.SimpleRNN(20, return_sequences=True, input_shape=[None, 1]),
keras
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