Skip to Content
핸즈온 머신러닝: 사이킷런과 텐서플로를 활용한 머신러닝, 딥러닝 실무
book

핸즈온 머신러닝: 사이킷런과 텐서플로를 활용한 머신러닝, 딥러닝 실무

by 박해선, 오렐리앙 제롱
May 2018
Beginner to intermediate
672 pages
16h 54m
Korean
Hanbit Media, Inc.
Content preview from 핸즈온 머신러닝: 사이킷런과 텐서플로를 활용한 머신러닝, 딥러닝 실무
299
9
텐서플로 시작하기
그다음에는 텐서플로를 설치합니다.
$
pip3 install
--
upgrade tensorflow
NOTE
_
GPU
를 사용하려면
tensorflow
대신
tensorflow
-
gpu
를 설치해야 합니다. 더 자세한 내용은
1
2
장을 참조하세요.
설치가 잘되었는지 확인하려면 다음 명령을 실행합니다. 설치한 텐서플로의 버전이 출력되어야
합니다.
$
python3
-
c
'
import tensorflow
;
print
(
tensorflow
.
__
version
__
)'
1
.
7
.
0
9.2
첫 번째 계산 그래프를 만들어 세션에서 실행하기
다음 코드는 [그림
9
-
1
]의 계산 그래프를 만듭니다.
import tensorflow as tf
x
=
tf
.
Variable
(
3
,
name
=
"
x
")
y
=
tf
.
Variable
(
4
,
name
=
"
y
")
f
=
x
*
x
*
y
+
y
+
2
이게 전부입니다! 꼭 이해해야 할 중요한 점은 이 코드가 (특히 마지막 줄에서) 뭔가 계산하는
것 같아 보이지만 실제로 어떤 계산도 수행하지 않는다는 사실입니다. 단지 계산 그래프만 만
들 뿐입니다. 사실 변수조차도 초기화되지 않습니다. 이 계산 그래프를 평가
6
하려면 텐서플로
세션을 시작하고 변수를 초기화한 다음
f
를 평가해야 합니다. 텐서플로 세션은 연산을
CPU
6
옮긴이_ 계산 그래프나 노드를 ...
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

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

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

박해선, 오렐리앙 제롱

Publisher Resources

ISBN: 9791162240731