SlideShare a Scribd company logo
Intro to Keras
John Ramey
@ramhiser
About Me
• Principal Data Scientist @
Novi Labs
• Stats + CS Background
• Soccer!
My Goal Tonight
• Introduce you to Keras
• Not teach you all of Keras
• But make damn sure that you can use Keras
Keras: Deep Learning Library
• High-level neural networks API, written in Python
• Models described in Python code. No separate models
config files
• Allows for easy and fast prototyping (through user
friendliness, modularity, and extensibility)
• Runs seamlessly on CPUs and GPUs
Keras: Backends
•TensorFlow, Theano, CNTK (Microsoft)
•Can deploy in production via TensorFlow Serving
Source: https://keras.io/#guiding-principles
Keras is an API designed for human beings, not
machines. It puts user experience front and center.
Keras follows best practices for reducing cognitive
load: it offers consistent & simple APIs, it minimizes
the number of user actions required for common use
cases, and it provides clear and actionable feedback
upon user error.
Really. That’s it.
pip install keras
How to Install Keras
import tensorflow.contrib.keras
Another Way
•Keras was rebuilt from the ground up for better TF integration
•Can take advantage of TF’s power and flexibility
•Will be import tensorflow.keras soon (TF 1.3?)
Also, Docker
Demo: TensorFlow +
Keras Docker Image
https://github.com/ramhiser/Keras-Tutorials
MNIST: The Hello, World of
Deep Learning
MNIST: The Hello, World of
Deep Learning
MNIST: Training
( , 2), ( , 8)
…
MNIST: Test
( , ?)
1st Model: Logistic
Regression
Source: https://stackoverflow.com/q/40537503/234233
Features Weights
2
Target
Goal: Learn “best” weights
1st Model: Logistic
Regression
Source: https://stackoverflow.com/q/40537503/234233
Features Weights
2
Target
Activation Function (nonlinear)
Demo
https://github.com/ramhiser/Keras-
Tutorials/blob/master/notebooks/02_logistic_regression.ipynb
2nd Model: Multilayer
Perceptron
2W11
W21
W1p W2p
Features 1st Weights 2nd Weights Target
Demo
https://github.com/ramhiser/Keras-
Tutorials/blob/master/notebooks/03_multilayer_perceptron.ipynb
3rd Model: Convolutional
Neural Net
Convolution
Image
Filter
Matrix
Stride = 1
Pad = 0
Convolution
Source: https://ujjwalkarn.me/2016/08/11/intuitive-explanation-
convnets/
Max Pooling
Source: http://www.wildml.com/2015/11/understanding-convolutional-
neural-networks-for-nlp/
Demo
https://github.com/ramhiser/Keras-
Tutorials/blob/master/notebooks/05_convolutional_neural_net.ipynb
Loads More Examples
Source: https://github.com/fchollet/keras/tree/master/examples
Lots of Pre-Trained Models
Source:
https://github.com/fchollet/keras/tree/master/keras/applications
Inception (v3)
Check This Out
Introduction to Keras
Introduction to Keras
Introduction to Keras
Thank You!

More Related Content

PDF
Tensorflow presentation
PDF
Introduction to TensorFlow
PDF
Introduction to LLMs
PDF
Intro to LLMs
PPT
Heuristic Search Techniques Unit -II.ppt
PDF
Introduction to TensorFlow 2.0
PPTX
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
PPTX
Chi square test
Tensorflow presentation
Introduction to TensorFlow
Introduction to LLMs
Intro to LLMs
Heuristic Search Techniques Unit -II.ppt
Introduction to TensorFlow 2.0
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Chi square test

What's hot (20)

PDF
Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In P...
PPTX
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
PDF
Neural networks and deep learning
PPTX
Transfer Learning and Fine Tuning for Cross Domain Image Classification with ...
PDF
Introduction to Deep Learning, Keras, and TensorFlow
PPTX
Handwritten Digit Recognition(Convolutional Neural Network) PPT
PDF
Yurii Pashchenko: Zero-shot learning capabilities of CLIP model from OpenAI
PPTX
What is Deep Learning?
PPTX
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
PPTX
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
PPTX
Deep learning
PPTX
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
PDF
Data science presentation
PPTX
Convolutional Neural Network and Its Applications
PPTX
Object detection with deep learning
PPTX
HML: Historical View and Trends of Deep Learning
PDF
TensorFlow and Keras: An Overview
PDF
Deep Learning With Python Tutorial | Edureka
PDF
Keras: Deep Learning Library for Python
PDF
An introduction to Deep Learning
Keras Tutorial For Beginners | Creating Deep Learning Models Using Keras In P...
What is TensorFlow? | Introduction to TensorFlow | TensorFlow Tutorial For Be...
Neural networks and deep learning
Transfer Learning and Fine Tuning for Cross Domain Image Classification with ...
Introduction to Deep Learning, Keras, and TensorFlow
Handwritten Digit Recognition(Convolutional Neural Network) PPT
Yurii Pashchenko: Zero-shot learning capabilities of CLIP model from OpenAI
What is Deep Learning?
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Deep learning
Convolutional Neural Network - CNN | How CNN Works | Deep Learning Course | S...
Data science presentation
Convolutional Neural Network and Its Applications
Object detection with deep learning
HML: Historical View and Trends of Deep Learning
TensorFlow and Keras: An Overview
Deep Learning With Python Tutorial | Edureka
Keras: Deep Learning Library for Python
An introduction to Deep Learning
Ad

Similar to Introduction to Keras (20)

PDF
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
PDF
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
PDF
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
PPTX
Amazon Deep Learning
PDF
CI-Keras for deep learning by adrian.pdf
PPTX
Deep Learning Analysis Power Point Presentation .pptx
PDF
Introduction to keras
PDF
Democratizing machine learning on kubernetes
PPTX
Deep Learning Frameworks 2019 | Which Deep Learning Framework To Use | Deep L...
PDF
Using PySpark to Process Boat Loads of Data
PPTX
Demystifying-AI-Frameworks-TensorFlow-PyTorch-JAX-and-More (1).pptx
PDF
1645 goldenberg using our laptop
PPTX
Emotion recognition in images: from idea to a model in production - Nordic DS...
PPTX
.NET per la Data Science e oltre
PPTX
INTRODUCTION TO KERAS FOR BEGINNERS.pptx
PPTX
KERAS Python Tutorial
PPTX
Squeezing Deep Learning Into Mobile Phones
PDF
Scalable Deep Learning on AWS using Apache MXNet (May 2017)
PDF
TensorFlow meetup: Keras - Pytorch - TensorFlow.js
PDF
dl-unit-3 materialdl-unit-3 material.pdf
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, & Deep Learning ...
A Tale of Three Deep Learning Frameworks: TensorFlow, Keras, and Deep Learnin...
Data Con LA 2018 - A Tale of DL Frameworks: TensorFlow, Keras, & Deep Learnin...
Amazon Deep Learning
CI-Keras for deep learning by adrian.pdf
Deep Learning Analysis Power Point Presentation .pptx
Introduction to keras
Democratizing machine learning on kubernetes
Deep Learning Frameworks 2019 | Which Deep Learning Framework To Use | Deep L...
Using PySpark to Process Boat Loads of Data
Demystifying-AI-Frameworks-TensorFlow-PyTorch-JAX-and-More (1).pptx
1645 goldenberg using our laptop
Emotion recognition in images: from idea to a model in production - Nordic DS...
.NET per la Data Science e oltre
INTRODUCTION TO KERAS FOR BEGINNERS.pptx
KERAS Python Tutorial
Squeezing Deep Learning Into Mobile Phones
Scalable Deep Learning on AWS using Apache MXNet (May 2017)
TensorFlow meetup: Keras - Pytorch - TensorFlow.js
dl-unit-3 materialdl-unit-3 material.pdf
Ad

Recently uploaded (20)

PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Computer network topology notes for revision
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PDF
Introduction to Business Data Analytics.
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Introduction-to-Cloud-ComputingFinal.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
1_Introduction to advance data techniques.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
Computer network topology notes for revision
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Launch Your Data Science Career in Kochi – 2025
Introduction to Knowledge Engineering Part 1
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Galatica Smart Energy Infrastructure Startup Pitch Deck
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Introduction to Business Data Analytics.
climate analysis of Dhaka ,Banglades.pptx
Database Infoormation System (DBIS).pptx
Major-Components-ofNKJNNKNKNKNKronment.pptx

Introduction to Keras