SlideShare a Scribd company logo
Tech Day
Ngobrol Santai Tensorflow
Ramdhan Rizki J @ramdhanrizki
Data Science Researcher
Comrades Developer
About Tensorflow
TensorFlow™ is an open source software
library for high performance numerical
computation created by Google.
It comes with strong support for machine
learning and deep learning and the flexible
numerical computation core is used across
many other scientific domains.
Installing Tensorflow
# Current release for CPU-only
pip install tensorflow
# Nightly build for CPU-only (unstable)
pip install tf-nightly
# GPU package for CUDA-enabled GPU cards
pip install tensorflow-gpu
# Nightly build with GPU support (unstable)
pip install tf-nightly-gpu
https://www.tensorflow.org/install/
Computational Graph
Import Tensorflow
import tensorflow as tf
Membuat Node Tensor
hello = tf.constant("Hello World", tf.string)
angka = tf.constant(20000, tf.int16)
vokal = tf.constant(["A","I","U","E","O"], tf.string)
squarish_squares = tf.Variable([ [4, 9], [16, 25] ], tf.int32)
Menjalankan Session
with tf.Session() as session:
# Pada bagian ini kita bisa menjalankan perintah komputasi graph
hai = session.run(hello)
varAngka = session.run(angka)
varVokal = session.run(vokal)
print(hai)
print(varAngka)
print(varVokal)
Constant
anggota = tf.constant(["Ramdhan","Tioreza","Fikri","Satria"])
# Menampilkan shape dari tensor
anggota.get_shape()
# Menampilkan keterangan dari tensor anggota
print(anggota)
Variable
# Membuat variable
X = tf.Variable([.5], tf.float32)
# Mengupdate Variable
update = tf.assign(X, [10.5])
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
print(sess.run(X))
sess.run(update)
print(sess.run(X))
Placeholder
angka1 = tf.placeholder(tf.float32)
angka2 = tf.placeholder(tf.float32)
tambah = tf.add(angka1, angka2)
with tf.Session() as sess:
print(sess.run([tambah], feed_dict={angka1:[10], angka2:[17]}))
Data Type
Data type Python type Description
DT_FLOAT tf.float32 32 bits floating point.
DT_DOUBLE tf.float64 64 bits floating point.
DT_INT8 tf.int8 8 bits signed integer.
DT_INT16 tf.int16 16 bits signed integer.
DT_INT32 tf.int32 32 bits signed integer.
DT_INT64 tf.int64 64 bits signed integer.
DT_UINT8 tf.uint8 8 bits unsigned integer.
DT_STRING tf.string
Variable length byte arrays. Each
element of a Tensor is a byte
array.
DT_BOOL tf.bool Boolean.
DT_COMPLEX64 tf.complex64
Complex number made of two
32 bits floating points: real and
imaginary parts.
DT_COMPLEX128 tf.complex128
Complex number made of two
64 bits floating points: real and
imaginary parts.
DT_QINT8 tf.qint8
8 bits signed integer used in
quantized Ops.
DT_QINT32 tf.qint32
32 bits signed integer used in
quantized Ops.
DT_QUINT8 tf.quint8
8 bits unsigned integer used in
quantized Ops.
What is Machine Learning ?
Artificial Intelligence
Any technique which enables computers
to mimic human behaviour.
Machine Learning
Subset of AI techniques which use
statistical methods to enable machines
to improve with experiences.
Deep Learning
Subset of ML which make the
computation of multi-layer neural
networks feasible.
Tipe Machine Learning
Machine Learning
Supervised Unsupervised Reinforcement
Supervised Learning
1. Classification Problem
Ex : Sentiment Analysis, Medical Imaging
2. Regression Problem
Ex : Housing Price Prediction, Bitcoin Price Prediction
Unsupervised Learning
1. Clustering
Ex : Customer Segmentation
2. Association
Ex : Market Basket Analysis
Simple Linear Regression
Using Tensorflow
Simple Linear Regression
Merupakan suatu teknik statistika yang bertujuan untuk
mempelajari hubungan dua variable kontinue serta melakukan
prediksi terhadapnya.
X Y
1 1
2 3
3 2
4 6
5 7
6 8
7 10
8 11
9 13
0
2
4
6
8
10
12
14
16
18
20
0 2 4 6 8 10
Y–DEPENDENTVARIABLE
X – INDEPENDENT VARIABLE
SIMPLE LINEAR REGRESSION
How it work
X Y
1 1
2 3
3 2
4 6
5 7
6 8
7 10
8 11
9 13
-5
0
5
10
15
20
0 2 4 6 8 10
Y–DEPENDENTVARIABLE
X – INDEPENDENT VARIABLE
SIMPLE LINEAR REGRESSION
How it work
-5
0
5
10
15
20
0 2 4 6 8 10
Y–DEPENDENTVARIABLE
X – INDEPENDENT VARIABLE
SIMPLE LINEAR REGRESSION
Persamaan
Y = a*x + b
InterceptSlope
Y = m*x + b
Ordinary Least Square
X Y (𝒙 − ഥ𝒙) (𝒚 − ഥ𝒚) (𝒙 − ഥ𝒙) (𝒚 − ഥ𝒚) (𝒙 − ഥ𝒙) 𝟐
1 1 -4 -5.78 23,11 16
2 3 -3 -3.78 11,33 9
3 2 -2 -4.78 9,56 4
4 6 -1 -0.78 0,78 1
5 7 0 0.22 0,00 0
6 8 1 1.22 1,22 1
7 10 2 3.22 6,44 4
8 11 3 4.22 12,67 9
9 13 4 6.22 24,89 16
ҧ𝑥 = 5 ത𝑦 = 6.78
෍ = 90 ෍ = 60
Ordinary Least Square
Hasil Persamaan
m = 90 / 60
m = 1.5
b = 6.78 – 1.5 * 5 = -0.72
Y = 1.5 * X – 0.72
Sum of Squared Error
𝑆𝑆𝐸 = ෍
𝑖=1
𝑛
(𝑦1 − ത𝑦)2
X Y Y Predict Error
(𝒚 − ഥ𝒚)
𝒆𝒓𝒓𝒐𝒓 𝟐
1 1 2,22 -1,22 1,49
2 3 3,72 -0,72 0,52
3 2 5,22 -3,22 10,37
4 6 6,72 -0,72 0,52
5 7 8,22 -1,22 1,49
6 8 9,72 -1,72 2,96
7 10 11,22 -1,22 1,49
8 11 12,72 -1,72 2,96
9 13 14,22 -1,22 1,49
ҧ𝑥 = 5 ത𝑦 = 6.78 ത𝑦 = 8.22 𝑆𝑆𝐸 = 23,28
Sum of Squared Error
Gradient Descent
Tujuan utama dari metode gradient descent adalah untuk
meminimalisasi cost function.
Simple Linear Regression With
Gradient Descent
Gradient Descent
Lets Build Simple Linear Regression
Using Tensorflow
Reference
Andrew Ng Machine Learning Course -
https://www.coursera.org/learn/machine-learning
https://www.tensorflow.org/tutorials/
https://notebooks.azure.com/ramdhanrizki/projects/codelabs-
techday-tensorflow
Whats Next
http://bit.ly/ml_cheat
Books
Course
Coursera The Data Science Course
2018: Complete Data
Science Bootcamp
Youtube Channel
Community
https://stats.stackexchange.com/https://www.floydhub.com/http://kaggle.com/
Open Data
https://data.go.id/
https://toolbox.google.com/datasetsearch
https://archive.ics.uci.edu/ml/datasets.html

More Related Content

What's hot

TensorFlow
TensorFlowTensorFlow
TensorFlow
jirimaterna
 
Using Deep Learning (Computer Vision) to Search for Oil and Gas
Using Deep Learning (Computer Vision) to Search for Oil and GasUsing Deep Learning (Computer Vision) to Search for Oil and Gas
Using Deep Learning (Computer Vision) to Search for Oil and Gas
Sorin Peste
 
Chess engine presentation
Chess engine presentationChess engine presentation
Chess engine presentation
TanushreeSharma34
 
Introduction of 3D Development
Introduction of 3D DevelopmentIntroduction of 3D Development
Introduction of 3D Development
siufu
 
Machine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code SmarterMachine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code Smarter
Astrails
 
Standar kompetensi kelas x sk2
Standar kompetensi kelas x sk2Standar kompetensi kelas x sk2
Standar kompetensi kelas x sk2
Hindraswari Enggar
 
computer notes - Data Structures - 9
computer notes - Data Structures - 9computer notes - Data Structures - 9
computer notes - Data Structures - 9ecomputernotes
 
Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
台灣資料科學年會
 
Fast Wavelet Tree Construction in Practice
Fast Wavelet Tree Construction in PracticeFast Wavelet Tree Construction in Practice
Fast Wavelet Tree Construction in Practice
Rakuten Group, Inc.
 
Intermediate Macroeconomics
Intermediate MacroeconomicsIntermediate Macroeconomics
Intermediate Macroeconomics
Laurel Ayuyao
 
Convolutional Neural Network
Convolutional Neural NetworkConvolutional Neural Network
Convolutional Neural Network
Jun Young Park
 
Introduction to PyTorch
Introduction to PyTorchIntroduction to PyTorch
Introduction to PyTorch
Jun Young Park
 
Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117
Ganesan Narayanasamy
 
Fast Identification of Heavy Hitters by Cached and Packed Group Testing
Fast Identification of Heavy Hitters by Cached and Packed Group TestingFast Identification of Heavy Hitters by Cached and Packed Group Testing
Fast Identification of Heavy Hitters by Cached and Packed Group Testing
Rakuten Group, Inc.
 
Tic tac toe simple ai game
Tic tac toe simple ai gameTic tac toe simple ai game
Tic tac toe simple ai game
Seevaratnam Kajandan
 
Theano vs TensorFlow | Edureka
Theano vs TensorFlow | EdurekaTheano vs TensorFlow | Edureka
Theano vs TensorFlow | Edureka
Edureka!
 

What's hot (17)

TensorFlow
TensorFlowTensorFlow
TensorFlow
 
Using Deep Learning (Computer Vision) to Search for Oil and Gas
Using Deep Learning (Computer Vision) to Search for Oil and GasUsing Deep Learning (Computer Vision) to Search for Oil and Gas
Using Deep Learning (Computer Vision) to Search for Oil and Gas
 
Chess engine presentation
Chess engine presentationChess engine presentation
Chess engine presentation
 
Introduction of 3D Development
Introduction of 3D DevelopmentIntroduction of 3D Development
Introduction of 3D Development
 
Machine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code SmarterMachine Learning: Make Your Ruby Code Smarter
Machine Learning: Make Your Ruby Code Smarter
 
Standar kompetensi kelas x sk2
Standar kompetensi kelas x sk2Standar kompetensi kelas x sk2
Standar kompetensi kelas x sk2
 
computer notes - Data Structures - 9
computer notes - Data Structures - 9computer notes - Data Structures - 9
computer notes - Data Structures - 9
 
Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
 
Fast Wavelet Tree Construction in Practice
Fast Wavelet Tree Construction in PracticeFast Wavelet Tree Construction in Practice
Fast Wavelet Tree Construction in Practice
 
Intermediate Macroeconomics
Intermediate MacroeconomicsIntermediate Macroeconomics
Intermediate Macroeconomics
 
Convolutional Neural Network
Convolutional Neural NetworkConvolutional Neural Network
Convolutional Neural Network
 
Introduction to PyTorch
Introduction to PyTorchIntroduction to PyTorch
Introduction to PyTorch
 
Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117
 
Fast Identification of Heavy Hitters by Cached and Packed Group Testing
Fast Identification of Heavy Hitters by Cached and Packed Group TestingFast Identification of Heavy Hitters by Cached and Packed Group Testing
Fast Identification of Heavy Hitters by Cached and Packed Group Testing
 
Tic tac toe simple ai game
Tic tac toe simple ai gameTic tac toe simple ai game
Tic tac toe simple ai game
 
Session1
Session1Session1
Session1
 
Theano vs TensorFlow | Edureka
Theano vs TensorFlow | EdurekaTheano vs TensorFlow | Edureka
Theano vs TensorFlow | Edureka
 

Similar to Tech day ngobrol santai tensorflow

Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdf
TulasiramKandula1
 
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
ETS Asset Management Factory
 
Pytorch for tf_developers
Pytorch for tf_developersPytorch for tf_developers
Pytorch for tf_developers
Abdul Muneer
 
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...Positive Hack Days
 
Georgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software securityGeorgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software securityDefconRussia
 
Static analysis of C++ source code
Static analysis of C++ source codeStatic analysis of C++ source code
Static analysis of C++ source code
PVS-Studio
 
Static analysis of C++ source code
Static analysis of C++ source codeStatic analysis of C++ source code
Static analysis of C++ source code
Andrey Karpov
 
Language translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlowLanguage translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlow
S N
 
TensorFlow Quantization Tour
TensorFlow Quantization TourTensorFlow Quantization Tour
TensorFlow Quantization Tour
KSuzukiii
 
Python Programming - IX. On Randomness
Python Programming - IX. On RandomnessPython Programming - IX. On Randomness
Python Programming - IX. On RandomnessRanel Padon
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
Oswald Campesato
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
ysolanki78
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)
Julien SIMON
 
Introduction to Tensor Flow for Optical Character Recognition (OCR)
Introduction to Tensor Flow for Optical Character Recognition (OCR)Introduction to Tensor Flow for Optical Character Recognition (OCR)
Introduction to Tensor Flow for Optical Character Recognition (OCR)
Vincenzo Santopietro
 
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
NTC.im(Notch Training Center)
 
TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習
Mark Chang
 
NTU ML TENSORFLOW
NTU ML TENSORFLOWNTU ML TENSORFLOW
NTU ML TENSORFLOW
Mark Chang
 
Introduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning ProgrammersIntroduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning Programmers
Kimikazu Kato
 
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
Andrey Karpov
 

Similar to Tech day ngobrol santai tensorflow (20)

Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdf
 
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
Python + Tensorflow: how to earn money in the Stock Exchange with Deep Learni...
 
Pytorch for tf_developers
Pytorch for tf_developersPytorch for tf_developers
Pytorch for tf_developers
 
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...
The System of Automatic Searching for Vulnerabilities or how to use Taint Ana...
 
Georgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software securityGeorgy Nosenko - An introduction to the use SMT solvers for software security
Georgy Nosenko - An introduction to the use SMT solvers for software security
 
Static analysis of C++ source code
Static analysis of C++ source codeStatic analysis of C++ source code
Static analysis of C++ source code
 
Static analysis of C++ source code
Static analysis of C++ source codeStatic analysis of C++ source code
Static analysis of C++ source code
 
Language translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlowLanguage translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlow
 
TensorFlow Quantization Tour
TensorFlow Quantization TourTensorFlow Quantization Tour
TensorFlow Quantization Tour
 
Python Programming - IX. On Randomness
Python Programming - IX. On RandomnessPython Programming - IX. On Randomness
Python Programming - IX. On Randomness
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)
 
Introduction to Tensor Flow for Optical Character Recognition (OCR)
Introduction to Tensor Flow for Optical Character Recognition (OCR)Introduction to Tensor Flow for Optical Character Recognition (OCR)
Introduction to Tensor Flow for Optical Character Recognition (OCR)
 
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
NTC_Tensor flow 深度學習快速上手班_Part1 -機器學習
 
TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習
 
NTU ML TENSORFLOW
NTU ML TENSORFLOWNTU ML TENSORFLOW
NTU ML TENSORFLOW
 
Introduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning ProgrammersIntroduction to NumPy for Machine Learning Programmers
Introduction to NumPy for Machine Learning Programmers
 
presentazione
presentazionepresentazione
presentazione
 
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
 

Recently uploaded

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 

Recently uploaded (20)

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 

Tech day ngobrol santai tensorflow

  • 2. Ramdhan Rizki J @ramdhanrizki Data Science Researcher Comrades Developer
  • 3.
  • 4. About Tensorflow TensorFlow™ is an open source software library for high performance numerical computation created by Google. It comes with strong support for machine learning and deep learning and the flexible numerical computation core is used across many other scientific domains.
  • 5. Installing Tensorflow # Current release for CPU-only pip install tensorflow # Nightly build for CPU-only (unstable) pip install tf-nightly # GPU package for CUDA-enabled GPU cards pip install tensorflow-gpu # Nightly build with GPU support (unstable) pip install tf-nightly-gpu https://www.tensorflow.org/install/
  • 8. Membuat Node Tensor hello = tf.constant("Hello World", tf.string) angka = tf.constant(20000, tf.int16) vokal = tf.constant(["A","I","U","E","O"], tf.string) squarish_squares = tf.Variable([ [4, 9], [16, 25] ], tf.int32)
  • 9. Menjalankan Session with tf.Session() as session: # Pada bagian ini kita bisa menjalankan perintah komputasi graph hai = session.run(hello) varAngka = session.run(angka) varVokal = session.run(vokal) print(hai) print(varAngka) print(varVokal)
  • 10. Constant anggota = tf.constant(["Ramdhan","Tioreza","Fikri","Satria"]) # Menampilkan shape dari tensor anggota.get_shape() # Menampilkan keterangan dari tensor anggota print(anggota)
  • 11. Variable # Membuat variable X = tf.Variable([.5], tf.float32) # Mengupdate Variable update = tf.assign(X, [10.5]) with tf.Session() as sess: sess.run(tf.global_variables_initializer()) print(sess.run(X)) sess.run(update) print(sess.run(X))
  • 12. Placeholder angka1 = tf.placeholder(tf.float32) angka2 = tf.placeholder(tf.float32) tambah = tf.add(angka1, angka2) with tf.Session() as sess: print(sess.run([tambah], feed_dict={angka1:[10], angka2:[17]}))
  • 13. Data Type Data type Python type Description DT_FLOAT tf.float32 32 bits floating point. DT_DOUBLE tf.float64 64 bits floating point. DT_INT8 tf.int8 8 bits signed integer. DT_INT16 tf.int16 16 bits signed integer. DT_INT32 tf.int32 32 bits signed integer. DT_INT64 tf.int64 64 bits signed integer. DT_UINT8 tf.uint8 8 bits unsigned integer. DT_STRING tf.string Variable length byte arrays. Each element of a Tensor is a byte array. DT_BOOL tf.bool Boolean. DT_COMPLEX64 tf.complex64 Complex number made of two 32 bits floating points: real and imaginary parts. DT_COMPLEX128 tf.complex128 Complex number made of two 64 bits floating points: real and imaginary parts. DT_QINT8 tf.qint8 8 bits signed integer used in quantized Ops. DT_QINT32 tf.qint32 32 bits signed integer used in quantized Ops. DT_QUINT8 tf.quint8 8 bits unsigned integer used in quantized Ops.
  • 14. What is Machine Learning ?
  • 15. Artificial Intelligence Any technique which enables computers to mimic human behaviour. Machine Learning Subset of AI techniques which use statistical methods to enable machines to improve with experiences. Deep Learning Subset of ML which make the computation of multi-layer neural networks feasible.
  • 16. Tipe Machine Learning Machine Learning Supervised Unsupervised Reinforcement
  • 17. Supervised Learning 1. Classification Problem Ex : Sentiment Analysis, Medical Imaging 2. Regression Problem Ex : Housing Price Prediction, Bitcoin Price Prediction
  • 18. Unsupervised Learning 1. Clustering Ex : Customer Segmentation 2. Association Ex : Market Basket Analysis
  • 20. Simple Linear Regression Merupakan suatu teknik statistika yang bertujuan untuk mempelajari hubungan dua variable kontinue serta melakukan prediksi terhadapnya.
  • 21. X Y 1 1 2 3 3 2 4 6 5 7 6 8 7 10 8 11 9 13 0 2 4 6 8 10 12 14 16 18 20 0 2 4 6 8 10 Y–DEPENDENTVARIABLE X – INDEPENDENT VARIABLE SIMPLE LINEAR REGRESSION How it work
  • 22. X Y 1 1 2 3 3 2 4 6 5 7 6 8 7 10 8 11 9 13 -5 0 5 10 15 20 0 2 4 6 8 10 Y–DEPENDENTVARIABLE X – INDEPENDENT VARIABLE SIMPLE LINEAR REGRESSION How it work
  • 23. -5 0 5 10 15 20 0 2 4 6 8 10 Y–DEPENDENTVARIABLE X – INDEPENDENT VARIABLE SIMPLE LINEAR REGRESSION Persamaan Y = a*x + b InterceptSlope Y = m*x + b
  • 25. X Y (𝒙 − ഥ𝒙) (𝒚 − ഥ𝒚) (𝒙 − ഥ𝒙) (𝒚 − ഥ𝒚) (𝒙 − ഥ𝒙) 𝟐 1 1 -4 -5.78 23,11 16 2 3 -3 -3.78 11,33 9 3 2 -2 -4.78 9,56 4 4 6 -1 -0.78 0,78 1 5 7 0 0.22 0,00 0 6 8 1 1.22 1,22 1 7 10 2 3.22 6,44 4 8 11 3 4.22 12,67 9 9 13 4 6.22 24,89 16 ҧ𝑥 = 5 ത𝑦 = 6.78 ෍ = 90 ෍ = 60 Ordinary Least Square
  • 26. Hasil Persamaan m = 90 / 60 m = 1.5 b = 6.78 – 1.5 * 5 = -0.72 Y = 1.5 * X – 0.72
  • 27. Sum of Squared Error 𝑆𝑆𝐸 = ෍ 𝑖=1 𝑛 (𝑦1 − ത𝑦)2
  • 28. X Y Y Predict Error (𝒚 − ഥ𝒚) 𝒆𝒓𝒓𝒐𝒓 𝟐 1 1 2,22 -1,22 1,49 2 3 3,72 -0,72 0,52 3 2 5,22 -3,22 10,37 4 6 6,72 -0,72 0,52 5 7 8,22 -1,22 1,49 6 8 9,72 -1,72 2,96 7 10 11,22 -1,22 1,49 8 11 12,72 -1,72 2,96 9 13 14,22 -1,22 1,49 ҧ𝑥 = 5 ത𝑦 = 6.78 ത𝑦 = 8.22 𝑆𝑆𝐸 = 23,28 Sum of Squared Error
  • 29. Gradient Descent Tujuan utama dari metode gradient descent adalah untuk meminimalisasi cost function.
  • 30.
  • 31.
  • 32. Simple Linear Regression With Gradient Descent
  • 34. Lets Build Simple Linear Regression Using Tensorflow
  • 35. Reference Andrew Ng Machine Learning Course - https://www.coursera.org/learn/machine-learning https://www.tensorflow.org/tutorials/ https://notebooks.azure.com/ramdhanrizki/projects/codelabs- techday-tensorflow
  • 38. Books
  • 39. Course Coursera The Data Science Course 2018: Complete Data Science Bootcamp