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를 활용한 머신러닝, 딥러닝 완벽 실무
500
2
신경망과 딥러닝
3.
함수에서 텐서플로 변수 (또는 데이터셋이나 큐와 같은 상태가 있는 다른 텐서플로 객체 )
를 만든다면 처음 호출될 때만 수행되어야 합니다. 아니면 예외가 발생합니다. 일반적
으로 텐서플로 함수밖에서 변수를 생성하는 것이 좋습니다(예를 들면 사용자 정의 층의
build
()
메서드 ). 변수에 새로운 값을 할당하려면
=
연산자 대신에
assign
()
메서드를
사용하세요.
4.
파이썬 함수의 소스 코드는 텐서플로에서 사용 가능해야 합니다. 만약 소스 코드를 사용
할 수 없다면 (예를 들어, 소스 코드에 접근할 수 없는 파이썬 셸에서 함수를 정의하거나
컴파일된
*.
pyc
파이썬 파일을 상용 환경에 배포한다면 ) 그래프 생성 과정이 실패하거
나 일부 기능을 사용할 수 없을 것입니다.
5.
텐서플로는 텐서나 데이터셋을 순회하는
for
문만 감지합니다. 따라서
for
i
in
range
(
x
)
대신
for
i
in
tf
.
range
(
x
)
를 사용해야 합니다. 그렇지 않으면 이 반복문
이 그래프에 표현되지 못할 것입니다. 대신 트레이싱 단계에서 실행됩니다 (일부러 이런
for
문을 사용해 그래프를 만들 수 있습니다. 예를 들면 신경망의 층을 반복문으로 만듭
니다 ).
6.
성능면에서는 반복문보다 가능한 한 벡터화된 구현을 사용하는 것이 좋습니다.
이제 정리할 시간입니다! 텐서플로를 간단히 소개하는 것으로 이 장을 시작했고 텐서, 연산, 변
수, 특별한 데이터 구조를 포함하여 텐서플로의 고수준
API
를 살펴보았습니다. 이런 ...
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