SlideShare a Scribd company logo
Machine Learning
Part 2. Neural networks
Neural networks?
Neuron
Perceptron
Multi-layered
(deep)
Problems with
images
Problems with
images
Too big vectors
(200x200x3 =
120,000)
Pixel position
matters
Convolution
Pooling (sub-
sampling)
CNN
Neural Networks in
Python
pip install keras
open/create ~/.keras/keras.json edit
"image_dim_ordering": “th”;
“backend”: “theano”;
open script from: http://bit.ly/
empatika-keras-1
MNIST
Dogs & Cats
cd <folder that contains ‘data’
subfolder from Google Drive>
open/create ~/.keras/keras.json edit
“backend”: “tensorflow”;
open script from: http://bit.ly/
empatika-keras-2 (initial gist)
Pre-trained models
ResNet50
VGG16
cd <to deep-learning-models
subfolder>
ResNet50
from	resnet50	import	ResNet50	
from	keras.preprocessing	import	image	
from	imagenet_utils	import	preprocess_input,	decode_predictions	
import	numpy	as	np	
model	=	ResNet50(weights='imagenet')	
img_path	=	'elephant.jpg'	
img	=	image.load_img(img_path,	target_size=(224,	224))	
x	=	image.img_to_array(img)	
x	=	np.expand_dims(x,	axis=0)	
x	=	preprocess_input(x)	
preds	=	model.predict(x)	
print('Predicted:',	decode_predictions(preds))

More Related Content

What's hot (20)

PDF
Spock Framework - Slidecast
Daniel Kolman
 
PPTX
Coco
Bang Tsui Liou
 
PDF
Erlang/N2O at KNPMeetup 2015
Oleg Zinchenko
 
PDF
Viktor Tsykunov: Azure Machine Learning Service
Lviv Startup Club
 
PDF
The Ring programming language version 1.5.3 book - Part 73 of 184
Mahmoud Samir Fayed
 
PPTX
Ac cuda c_4
Josh Wyatt
 
PPTX
Weather of the Century: Design and Performance
MongoDB
 
PDF
Леонид Шевцов «Clojure в деле»
DataArt
 
PDF
The Ring programming language version 1.7 book - Part 67 of 196
Mahmoud Samir Fayed
 
PDF
EKON22 Introduction to Machinelearning
Max Kleiner
 
PDF
HTML5 game dev with three.js - HexGL
Thibaut Despoulain
 
PPTX
The Weather of the Century Part 2: High Performance
MongoDB
 
PDF
Is your profiler speaking the same language as you? -- Docklands JUG
Simon Maple
 
PDF
Profiling Ruby
Ian Pointer
 
ODP
Stackless Python 101
guest162fd90
 
PDF
PostgreSQL 9.6 새 기능 소개
PgDay.Seoul
 
PDF
Entity System Architecture with Unity - Unite Europe 2015
Simon Schmid
 
PDF
Simple, fast, and scalable torch7 tutorial
Jin-Hwa Kim
 
PDF
The Ring programming language version 1.5.2 book - Part 59 of 181
Mahmoud Samir Fayed
 
PDF
Do snow.rwn
ARUN DN
 
Spock Framework - Slidecast
Daniel Kolman
 
Erlang/N2O at KNPMeetup 2015
Oleg Zinchenko
 
Viktor Tsykunov: Azure Machine Learning Service
Lviv Startup Club
 
The Ring programming language version 1.5.3 book - Part 73 of 184
Mahmoud Samir Fayed
 
Ac cuda c_4
Josh Wyatt
 
Weather of the Century: Design and Performance
MongoDB
 
Леонид Шевцов «Clojure в деле»
DataArt
 
The Ring programming language version 1.7 book - Part 67 of 196
Mahmoud Samir Fayed
 
EKON22 Introduction to Machinelearning
Max Kleiner
 
HTML5 game dev with three.js - HexGL
Thibaut Despoulain
 
The Weather of the Century Part 2: High Performance
MongoDB
 
Is your profiler speaking the same language as you? -- Docklands JUG
Simon Maple
 
Profiling Ruby
Ian Pointer
 
Stackless Python 101
guest162fd90
 
PostgreSQL 9.6 새 기능 소개
PgDay.Seoul
 
Entity System Architecture with Unity - Unite Europe 2015
Simon Schmid
 
Simple, fast, and scalable torch7 tutorial
Jin-Hwa Kim
 
The Ring programming language version 1.5.2 book - Part 59 of 181
Mahmoud Samir Fayed
 
Do snow.rwn
ARUN DN
 

Viewers also liked (17)

PPTX
ANÁLISIS DE PRODUCTIVIDAD-RENTABILIDAD Y MEDICIÓN DE LA PRODUCTIVIDAD UTILIZA...
danielabrito2017
 
PPTX
Producto final slideshare rivera salas
Felipe Leonel Rivera Salas
 
PDF
Legge Anticorruzione
Giordano Di Matteo
 
PDF
Product Management
Empatika
 
PPTX
Costume list
Aniqa Khanum
 
PPTX
3Com 17772-910-000
savomir
 
DOCX
Act.1 tallerpractico10
Nereida de la rosa
 
DOC
книжка ізяслав
Anatoliy Movchan
 
PPTX
American Regionalism & Contemporary Communities
Katie Morris
 
PPTX
Membrane bounded organelles
Thisarani Samarasinghe
 
PDF
Singularity University Executive Program - Day 1
Empatika
 
PDF
introduction to artificial intelligence
Empatika
 
PDF
Singularity University Executive Program - Day 0
Empatika
 
PDF
Flow
Wei Luan Wang
 
PPTX
Screenshots of auidence feedback
amberderbyshire123
 
PDF
31. código-de-procedimiento-civil(1)
juan carlos bautista
 
PPTX
Depresīvu traucējumu atpazīšana bērniem un pusaudžiem, sarkanā karoga simptomi
Pinkulacis
 
ANÁLISIS DE PRODUCTIVIDAD-RENTABILIDAD Y MEDICIÓN DE LA PRODUCTIVIDAD UTILIZA...
danielabrito2017
 
Producto final slideshare rivera salas
Felipe Leonel Rivera Salas
 
Legge Anticorruzione
Giordano Di Matteo
 
Product Management
Empatika
 
Costume list
Aniqa Khanum
 
3Com 17772-910-000
savomir
 
Act.1 tallerpractico10
Nereida de la rosa
 
книжка ізяслав
Anatoliy Movchan
 
American Regionalism & Contemporary Communities
Katie Morris
 
Membrane bounded organelles
Thisarani Samarasinghe
 
Singularity University Executive Program - Day 1
Empatika
 
introduction to artificial intelligence
Empatika
 
Singularity University Executive Program - Day 0
Empatika
 
Screenshots of auidence feedback
amberderbyshire123
 
31. código-de-procedimiento-civil(1)
juan carlos bautista
 
Depresīvu traucējumu atpazīšana bērniem un pusaudžiem, sarkanā karoga simptomi
Pinkulacis
 
Ad

Similar to Machine learning 2 - Neural Networks (20)

PDF
Introduction to Convolutional Neural Networks
Hannes Hapke
 
PPTX
A Neural Network that Understands Handwriting
Shivam Sawhney
 
PDF
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
nguyenhoangy207
 
PDF
unit-iii-deep-learningunit-iii-deep-learning.pdf
nandan543979
 
PDF
Lecture 4: Deep Learning Frameworks
Mohamed Loey
 
PDF
First steps with Keras 2: A tutorial with Examples
Felipe
 
PDF
dl-unit-3 materialdl-unit-3 material.pdf
nandan543979
 
PPTX
intro-to-cnn-April_2020.pptx
ssuser3aa461
 
PDF
Introduction to deep learning using python
Lino Coria
 
PDF
IRJET-Breast Cancer Detection using Convolution Neural Network
IRJET Journal
 
PDF
Eye deep
sveitser
 
PPTX
Keras on tensorflow in R & Python
Longhow Lam
 
PDF
dl-unit-4-deep-learning deep-learning.pdf
nandan543979
 
PDF
Keras and TensorFlow
NopphawanTamkuan
 
PDF
Learning keras by building dogs-vs-cats image classifier
Jian Wu
 
PPTX
Teach a neural network to read handwriting
Vipul Kaushal
 
PPTX
Deep Learning for Computer Vision - PyconDE 2017
Alex Conway
 
PPTX
Final training course
Noor Dhiya
 
PDF
Handwritten Digit Recognition using Convolutional Neural Networks
IRJET Journal
 
PDF
Classification case study + intro to cnn
Vincent Tatan
 
Introduction to Convolutional Neural Networks
Hannes Hapke
 
A Neural Network that Understands Handwriting
Shivam Sawhney
 
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
nguyenhoangy207
 
unit-iii-deep-learningunit-iii-deep-learning.pdf
nandan543979
 
Lecture 4: Deep Learning Frameworks
Mohamed Loey
 
First steps with Keras 2: A tutorial with Examples
Felipe
 
dl-unit-3 materialdl-unit-3 material.pdf
nandan543979
 
intro-to-cnn-April_2020.pptx
ssuser3aa461
 
Introduction to deep learning using python
Lino Coria
 
IRJET-Breast Cancer Detection using Convolution Neural Network
IRJET Journal
 
Eye deep
sveitser
 
Keras on tensorflow in R & Python
Longhow Lam
 
dl-unit-4-deep-learning deep-learning.pdf
nandan543979
 
Keras and TensorFlow
NopphawanTamkuan
 
Learning keras by building dogs-vs-cats image classifier
Jian Wu
 
Teach a neural network to read handwriting
Vipul Kaushal
 
Deep Learning for Computer Vision - PyconDE 2017
Alex Conway
 
Final training course
Noor Dhiya
 
Handwritten Digit Recognition using Convolutional Neural Networks
IRJET Journal
 
Classification case study + intro to cnn
Vincent Tatan
 
Ad

More from Empatika (20)

PDF
Gamification 101 - Intro
Empatika
 
PDF
Travel 101 - On Distribution
Empatika
 
PDF
Travel Tech 101 - Introduction
Empatika
 
PDF
Subscriptions business model - FAQ
Empatika
 
PDF
Theories of Innovation
Empatika
 
PDF
Lessons learned & not learned at MSU
Empatika
 
PDF
Disruptive Innovations
Empatika
 
PDF
US Commercial Aviation History - 1
Empatika
 
PDF
Life in a startup
Empatika
 
PDF
Machine Learning - Empatika Open
Empatika
 
PDF
Online Travel 3.0 - Mobile Traveler (Rus)
Empatika
 
PDF
Flight to 1000000 users - Lviv IT Arena 2016
Empatika
 
PDF
Travel inequality - Bayram Annakov
Empatika
 
PDF
App in the Air Travel Hack Moscow - Fall, 2015
Empatika
 
PDF
Intro to Exponentials - Part 1
Empatika
 
PDF
Review: Google I/O 2015 Building context aware apps
Empatika
 
PDF
Going global producthunt
Empatika
 
PDF
Мобильные приложения - тренды и экосистема
Empatika
 
PDF
Mobile app growth - 3 essential feedback loops
Empatika
 
PDF
Apple Watch Overview
Empatika
 
Gamification 101 - Intro
Empatika
 
Travel 101 - On Distribution
Empatika
 
Travel Tech 101 - Introduction
Empatika
 
Subscriptions business model - FAQ
Empatika
 
Theories of Innovation
Empatika
 
Lessons learned & not learned at MSU
Empatika
 
Disruptive Innovations
Empatika
 
US Commercial Aviation History - 1
Empatika
 
Life in a startup
Empatika
 
Machine Learning - Empatika Open
Empatika
 
Online Travel 3.0 - Mobile Traveler (Rus)
Empatika
 
Flight to 1000000 users - Lviv IT Arena 2016
Empatika
 
Travel inequality - Bayram Annakov
Empatika
 
App in the Air Travel Hack Moscow - Fall, 2015
Empatika
 
Intro to Exponentials - Part 1
Empatika
 
Review: Google I/O 2015 Building context aware apps
Empatika
 
Going global producthunt
Empatika
 
Мобильные приложения - тренды и экосистема
Empatika
 
Mobile app growth - 3 essential feedback loops
Empatika
 
Apple Watch Overview
Empatika
 

Recently uploaded (20)

PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
July Patch Tuesday
Ivanti
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 

Machine learning 2 - Neural Networks