SlideShare a Scribd company logo
1 of 21
 About 10 min Lecture
 Programming tutorial using Tensorflow
 Neural networks
 Deep Learning
 CNN
 RNN
 Bidirectional Neural networks
 Google이 만든 머신러닝을 위한 오픈소스 라이
브러리
 64비트 Linux, Windows, MacOS의 데스크탑이
나 서버시스템의 여러 개의 CPU, GPU에서 구동
됨
 GPU에서 일반 연산을 가능하게 해주는 CUDA
확장기능을 사용
 여러 ML/Machine Intelligence를 위한 라이브러
리들 중에 contribution, fork, issue 최다
 공부할 수 있는 자료가 가장 많다.
 많은 모델이 구현되었고 소스 또한 오픈되어있음.
 C, C++, Python을 활용해 사용가능
 Tensorflow는 data flow graph
를 이용한 수치계산 라이브러
리 이다.
 Data는 tensor로 표현되고 이
tensor가 flow해서 tensorflow
라는 이름이 붙여짐.
 설치환경
 64비트 OS
▪ MacOS X 10.11 (El Capitan) or later.
▪ Ubuntu 16.04 or later
▪ Windows 7 or later.
 GPU 지원 Tensorflow
▪ NVIDA CUDA GPU장착
▪ CUDA toolkit 7.0이상
▪ cuDNN v3 이상
▪ CUDA 연산능력(Compute Capability) 3.0 이상 GPU카드
 윈도우
 Anaconda Prompt에서
▪ >pip install tensorflow
 MacOS
 Linux
 www.tensorflow.org 참고
Tensorflow는 data flow graph를 이용해 수치계산을 한다.
1. hello 라는 노드에 ‘Hello World’ 저장(edge 없음)
2. sess라는 이름의 세션을 만듦
3. sess.run 함수를 통해 hello라는 노드를 실행
ADD
3
1
2
예제1) 2행 3열 두 행렬의 원소끼리 곱을 해보자
 Tensorflow 프로그램은 모든 데이터를 tensor
구조로 나타냄
 연산 graph에 있는 작업들(op)간에는 tensor만
을 주고받을 수 있음.
 n차원의 배열/리스트로 생각해도 됨
 Static type, shape, rank
 Rank : 차원수
 [[1,2], [2,3], [4,1]] rank = 2
 Shape : Tensor의 모양
 [[1,2], [2,3], [4,1]] shape = [2,3]
 Type : data type
 tf.float32
 tf.float64
 tf.int8
 tf.int16
 tf.int32
 tf.int64
Hypothesis
𝐻 𝑥 = 𝑊𝑥 + 𝑏
Cost function
𝑐𝑜𝑠𝑡 𝑊, 𝑏 =
1
𝑚
𝑖=1
𝑚
𝐻 𝑥(𝑖)
− 𝑦(𝑖) 2
𝑦(𝑖)
∶ 𝑡𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒
cost
W
b
hypo
train
점점 cost는 작아지고, W는 1에 수렴하고, b는 0에 수렴하고 있다.
예제1)
X, Y train값을 placeholder를 통해
각각 [1, 2, 3, 4, 5], [2.1, 3.1, 4.1, 5.1, 6.1]로 주고 결과를 확인해보자.
 모두를 위한 딥러닝, 김성훈
 [8]
https://ghebook.blogspot.kr/2011/06/tenso
r.html

More Related Content

What's hot

[Swift] Data Structure - Queue
[Swift] Data Structure - Queue[Swift] Data Structure - Queue
[Swift] Data Structure - QueueBill Kim
 
고급 시스템 프로그래밍
고급 시스템 프로그래밍고급 시스템 프로그래밍
고급 시스템 프로그래밍junghee yu
 
Binary Search
Binary SearchBinary Search
Binary Searchskku_npc
 
Data Structures
Data StructuresData Structures
Data Structuresskku_npc
 
Pyconkr2019 features for using python like matlab
Pyconkr2019 features for using python like matlabPyconkr2019 features for using python like matlab
Pyconkr2019 features for using python like matlabIntae Cho
 
Graph2
Graph2Graph2
Graph2GNGLB
 
Data Structure 1
Data Structure 1Data Structure 1
Data Structure 1yonsei
 
2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차Moonki Choi
 
[1106 조진현] if you( batch rendering )
[1106 조진현] if you( batch rendering )[1106 조진현] if you( batch rendering )
[1106 조진현] if you( batch rendering )진현 조
 
Doing math with python.ch05
Doing math with python.ch05Doing math with python.ch05
Doing math with python.ch05Seok-joon Yun
 
Doing mathwithpython.ch02
Doing mathwithpython.ch02Doing mathwithpython.ch02
Doing mathwithpython.ch02Seok-joon Yun
 
텐서플로우-기초 프로그래밍
텐서플로우-기초 프로그래밍텐서플로우-기초 프로그래밍
텐서플로우-기초 프로그래밍jdo
 
[신경망기초] 퍼셉트론구현
[신경망기초] 퍼셉트론구현[신경망기초] 퍼셉트론구현
[신경망기초] 퍼셉트론구현jaypi Ko
 
스톰 접근 중
스톰 접근 중스톰 접근 중
스톰 접근 중June Yi
 
고급 시스템 프로그래밍 HW #1
고급 시스템 프로그래밍 HW #1고급 시스템 프로그래밍 HW #1
고급 시스템 프로그래밍 HW #1Leehongki27
 

What's hot (16)

[Swift] Data Structure - Queue
[Swift] Data Structure - Queue[Swift] Data Structure - Queue
[Swift] Data Structure - Queue
 
고급 시스템 프로그래밍
고급 시스템 프로그래밍고급 시스템 프로그래밍
고급 시스템 프로그래밍
 
Binary Search
Binary SearchBinary Search
Binary Search
 
Data Structures
Data StructuresData Structures
Data Structures
 
Pyconkr2019 features for using python like matlab
Pyconkr2019 features for using python like matlabPyconkr2019 features for using python like matlab
Pyconkr2019 features for using python like matlab
 
A tour of go
A tour of goA tour of go
A tour of go
 
Graph2
Graph2Graph2
Graph2
 
Data Structure 1
Data Structure 1Data Structure 1
Data Structure 1
 
2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차2021 여름방학 정기 세미나 3주차
2021 여름방학 정기 세미나 3주차
 
[1106 조진현] if you( batch rendering )
[1106 조진현] if you( batch rendering )[1106 조진현] if you( batch rendering )
[1106 조진현] if you( batch rendering )
 
Doing math with python.ch05
Doing math with python.ch05Doing math with python.ch05
Doing math with python.ch05
 
Doing mathwithpython.ch02
Doing mathwithpython.ch02Doing mathwithpython.ch02
Doing mathwithpython.ch02
 
텐서플로우-기초 프로그래밍
텐서플로우-기초 프로그래밍텐서플로우-기초 프로그래밍
텐서플로우-기초 프로그래밍
 
[신경망기초] 퍼셉트론구현
[신경망기초] 퍼셉트론구현[신경망기초] 퍼셉트론구현
[신경망기초] 퍼셉트론구현
 
스톰 접근 중
스톰 접근 중스톰 접근 중
스톰 접근 중
 
고급 시스템 프로그래밍 HW #1
고급 시스템 프로그래밍 HW #1고급 시스템 프로그래밍 HW #1
고급 시스템 프로그래밍 HW #1
 

Similar to Lec 00, 01

Tensorflow
TensorflowTensorflow
Tensorflowchs71
 
딥러닝을 위한 Tensor flow(skt academy)
딥러닝을 위한 Tensor flow(skt academy)딥러닝을 위한 Tensor flow(skt academy)
딥러닝을 위한 Tensor flow(skt academy)Tae Young Lee
 
2017 tensor flow dev summit
2017 tensor flow dev summit2017 tensor flow dev summit
2017 tensor flow dev summitTae Young Lee
 
1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlowHaesun Park
 
TenforFlow Internals
TenforFlow InternalsTenforFlow Internals
TenforFlow InternalsKiho Hong
 
R 기초 : R Basics
R 기초 : R BasicsR 기초 : R Basics
R 기초 : R BasicsYoonwhan Lee
 
텐서플로우 기초 이해하기
텐서플로우 기초 이해하기 텐서플로우 기초 이해하기
텐서플로우 기초 이해하기 Yong Joon Moon
 
Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)Tae Young Lee
 
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHyo jeong Lee
 
랩탑으로 tensorflow 도전하기 - tutorial
랩탑으로 tensorflow 도전하기 - tutorial랩탑으로 tensorflow 도전하기 - tutorial
랩탑으로 tensorflow 도전하기 - tutorialLee Seungeun
 
Linux programming study
Linux programming studyLinux programming study
Linux programming studyYunseok Lee
 
[0312 조진현] good bye dx9
[0312 조진현] good bye dx9[0312 조진현] good bye dx9
[0312 조진현] good bye dx9진현 조
 
Visual C++10을 활용한 병렬 프로그래밍
Visual C++10을 활용한 병렬 프로그래밍Visual C++10을 활용한 병렬 프로그래밍
Visual C++10을 활용한 병렬 프로그래밍흥배 최
 
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)Ubuntu Korea Community
 
LSTM 네트워크 이해하기
LSTM 네트워크 이해하기LSTM 네트워크 이해하기
LSTM 네트워크 이해하기Mad Scientists
 
4.convolutional neural networks
4.convolutional neural networks4.convolutional neural networks
4.convolutional neural networksHaesun Park
 
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...hoondong kim
 
동기화, 스케줄링
동기화, 스케줄링동기화, 스케줄링
동기화, 스케줄링xxbdxx
 
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)Tae Young Lee
 

Similar to Lec 00, 01 (20)

Tensorflow
TensorflowTensorflow
Tensorflow
 
딥러닝을 위한 Tensor flow(skt academy)
딥러닝을 위한 Tensor flow(skt academy)딥러닝을 위한 Tensor flow(skt academy)
딥러닝을 위한 Tensor flow(skt academy)
 
2017 tensor flow dev summit
2017 tensor flow dev summit2017 tensor flow dev summit
2017 tensor flow dev summit
 
1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow
 
TenforFlow Internals
TenforFlow InternalsTenforFlow Internals
TenforFlow Internals
 
R 기초 : R Basics
R 기초 : R BasicsR 기초 : R Basics
R 기초 : R Basics
 
텐서플로우 기초 이해하기
텐서플로우 기초 이해하기 텐서플로우 기초 이해하기
텐서플로우 기초 이해하기
 
Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)Tensorflow for Deep Learning(SK Planet)
Tensorflow for Deep Learning(SK Planet)
 
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear Regression
 
랩탑으로 tensorflow 도전하기 - tutorial
랩탑으로 tensorflow 도전하기 - tutorial랩탑으로 tensorflow 도전하기 - tutorial
랩탑으로 tensorflow 도전하기 - tutorial
 
Linux programming study
Linux programming studyLinux programming study
Linux programming study
 
[0312 조진현] good bye dx9
[0312 조진현] good bye dx9[0312 조진현] good bye dx9
[0312 조진현] good bye dx9
 
Visual C++10을 활용한 병렬 프로그래밍
Visual C++10을 활용한 병렬 프로그래밍Visual C++10을 활용한 병렬 프로그래밍
Visual C++10을 활용한 병렬 프로그래밍
 
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)
김성윤 - 우분투로 슈퍼컴 만들기 (2011Y03M26D)
 
LSTM 네트워크 이해하기
LSTM 네트워크 이해하기LSTM 네트워크 이해하기
LSTM 네트워크 이해하기
 
4.convolutional neural networks
4.convolutional neural networks4.convolutional neural networks
4.convolutional neural networks
 
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...
Auto Scalable 한 Deep Learning Production 을 위한 AI Serving Infra 구성 및 AI DevOps...
 
강의자료 2
강의자료 2강의자료 2
강의자료 2
 
동기화, 스케줄링
동기화, 스케줄링동기화, 스케줄링
동기화, 스케줄링
 
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
 

Lec 00, 01

  • 1.
  • 2.  About 10 min Lecture  Programming tutorial using Tensorflow
  • 3.  Neural networks  Deep Learning  CNN  RNN  Bidirectional Neural networks
  • 4.  Google이 만든 머신러닝을 위한 오픈소스 라이 브러리  64비트 Linux, Windows, MacOS의 데스크탑이 나 서버시스템의 여러 개의 CPU, GPU에서 구동 됨  GPU에서 일반 연산을 가능하게 해주는 CUDA 확장기능을 사용
  • 5.
  • 6.  여러 ML/Machine Intelligence를 위한 라이브러 리들 중에 contribution, fork, issue 최다  공부할 수 있는 자료가 가장 많다.  많은 모델이 구현되었고 소스 또한 오픈되어있음.  C, C++, Python을 활용해 사용가능
  • 7.  Tensorflow는 data flow graph 를 이용한 수치계산 라이브러 리 이다.  Data는 tensor로 표현되고 이 tensor가 flow해서 tensorflow 라는 이름이 붙여짐.
  • 8.  설치환경  64비트 OS ▪ MacOS X 10.11 (El Capitan) or later. ▪ Ubuntu 16.04 or later ▪ Windows 7 or later.  GPU 지원 Tensorflow ▪ NVIDA CUDA GPU장착 ▪ CUDA toolkit 7.0이상 ▪ cuDNN v3 이상 ▪ CUDA 연산능력(Compute Capability) 3.0 이상 GPU카드
  • 9.  윈도우  Anaconda Prompt에서 ▪ >pip install tensorflow  MacOS  Linux  www.tensorflow.org 참고
  • 10.
  • 11. Tensorflow는 data flow graph를 이용해 수치계산을 한다. 1. hello 라는 노드에 ‘Hello World’ 저장(edge 없음) 2. sess라는 이름의 세션을 만듦 3. sess.run 함수를 통해 hello라는 노드를 실행
  • 13. 예제1) 2행 3열 두 행렬의 원소끼리 곱을 해보자
  • 14.  Tensorflow 프로그램은 모든 데이터를 tensor 구조로 나타냄  연산 graph에 있는 작업들(op)간에는 tensor만 을 주고받을 수 있음.  n차원의 배열/리스트로 생각해도 됨  Static type, shape, rank
  • 15.  Rank : 차원수  [[1,2], [2,3], [4,1]] rank = 2  Shape : Tensor의 모양  [[1,2], [2,3], [4,1]] shape = [2,3]  Type : data type  tf.float32  tf.float64  tf.int8  tf.int16  tf.int32  tf.int64
  • 16.
  • 17. Hypothesis 𝐻 𝑥 = 𝑊𝑥 + 𝑏 Cost function 𝑐𝑜𝑠𝑡 𝑊, 𝑏 = 1 𝑚 𝑖=1 𝑚 𝐻 𝑥(𝑖) − 𝑦(𝑖) 2 𝑦(𝑖) ∶ 𝑡𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒
  • 19. 점점 cost는 작아지고, W는 1에 수렴하고, b는 0에 수렴하고 있다. 예제1) X, Y train값을 placeholder를 통해 각각 [1, 2, 3, 4, 5], [2.1, 3.1, 4.1, 5.1, 6.1]로 주고 결과를 확인해보자.
  • 20.
  • 21.  모두를 위한 딥러닝, 김성훈  [8] https://ghebook.blogspot.kr/2011/06/tenso r.html