SlideShare a Scribd company logo
1 of 51
Download to read offline
how we meet
not a good start
is there another way?
goal
communities
Ugidotnet | Scala Milano Meetup | Marketers
look mum, no code!
transfer learning1
1
- How to Retrain Inception's Final Layer for New Categories
- TensorFlow for Poets
the simpsons
detector
root@cc5a496bf40e:/code/simpson_retraining# ./retrain.sh
INFO:tensorflow:Looking for images in 'marge'
INFO:tensorflow:Looking for images in 'homer'
INFO:tensorflow:Looking for images in 'bart'
INFO:tensorflow:Looking for images in 'lisa'
....
INFO:tensorflow:2018-02-25 09:26:27.689515: Step 0: Train accuracy = 53.0%
INFO:tensorflow:2018-02-25 09:26:27.689750: Step 0: Cross entropy = 1.367082
INFO:tensorflow:2018-02-25 09:26:28.583996: Step 0: Validation accuracy = 33.0% (N=100)
....
INFO:tensorflow:2018-02-25 09:26:49.359180: Step 30: Train accuracy = 65.0%
INFO:tensorflow:2018-02-25 09:26:49.359404: Step 30: Cross entropy = 1.172318
INFO:tensorflow:2018-02-25 09:26:49.871993: Step 30: Validation accuracy = 69.0% (N=100)
....
INFO:tensorflow:2018-02-25 09:35:37.061001: Step 1000: Train accuracy = 95.0%
INFO:tensorflow:2018-02-25 09:35:37.061221: Step 1000: Cross entropy = 0.311776
INFO:tensorflow:2018-02-25 09:35:37.600067: Step 1000: Validation accuracy = 87.0% (N=100)
....
INFO:tensorflow:2018-02-25 09:44:03.139348: Step 2000: Train accuracy = 95.0%
INFO:tensorflow:2018-02-25 09:44:03.139593: Step 2000: Cross entropy = 0.286085
INFO:tensorflow:2018-02-25 09:44:03.538799: Step 2000: Validation accuracy = 83.0% (N=100)
....
INFO:tensorflow:2018-02-25 10:00:39.674607: Step 3999: Train accuracy = 97.0%
INFO:tensorflow:2018-02-25 10:00:39.674859: Step 3999: Cross entropy = 0.175444
INFO:tensorflow:2018-02-25 10:00:40.073648: Step 3999: Validation accuracy = 90.0% (N=100)
INFO:tensorflow:Final test accuracy = 90.4% (N=261)
root:/code/simpson_retraining# ./evaluate.sh /data/simpson/test_set/0.jpg`
bart 0.63594097
marge 0.3191907
lisa 0.034744244
homer 0.010124116
the simpsons detector
training results
root@cc5a496bf40e:/code/simpson_retraining# ./retrain.sh
INFO:tensorflow:2018-02-25 09:26:27.689515: Step 0: Train accuracy = 53.0%
INFO:tensorflow:2018-02-25 09:26:27.689750: Step 0: Cross entropy = 1.367082
INFO:tensorflow:2018-02-25 09:26:28.583996: Step 0: Validation accuracy = 33.0% (N=100)
....
INFO:tensorflow:2018-02-25 10:00:39.674607: Step 3999: Train accuracy = 97.0%
INFO:tensorflow:2018-02-25 10:00:39.674859: Step 3999: Cross entropy = 0.175444
INFO:tensorflow:2018-02-25 10:00:40.073648: Step 3999: Validation accuracy = 90.0% (N=100)
INFO:tensorflow:Final test accuracy = 90.4% (N=261)
root:/code/simpson_retraining# ./evaluate.sh /data/simpson/test_set/0.jpg`
bart 0.63594097
marge 0.3191907
lisa 0.034744244
homer 0.010124116
common scenarios
common solutions
Cloud Services
common solutions
ready to go models2
2
TensorFlow models
common solutions
ready to go libraries or tools3
3
- OpenCV-Python
- Spacy
- gensim
Word Algebra4
from gensim.models.KeyedVectors import load_word2vec_format
model = load_word2vec_format(
'GoogleNews-vectors-negative300.bin',
limit=2000000, binary=True)
#calculate: (Rome - Italy) + France = ?
model.similar_by_vector(
model['Rome'] - model['Italy'] + model['France']
, topn=1)
#[(u'Paris', 0.7167540192604065)]
#calculate: (doctor - man) + woman = ?
model.most_similar(
model['doctor'] - model['man'] + model['woman']
, topn=1)
#[(u'nurse', 0.7127888798713684)]
#calculate: (gone - go) + eat = ?
model.most_similar(
positive=['gone', 'eat'], negative=['go']
, topn=1)
#[(u'eaten', 0.7462186217308044)]
4
Credits: The dark side of deep learning - Simone
Scardapane - Codemotion 2017
calculate: (Rome - Italy) + France = ?
model['Rome'] - model['Italy'] + model['France']
[(u'Paris', 0.7167540192604065)]
calculate: (gone - go) + eat = ?
model['gone'] - model['go'] + model['eat']
[(u'eaten', 0.7462186217308044)]
common solutions
Visual Studio ML Model builder
common solutions
ready to go dataset5
5
- Awesome deep learning#datasets (Github)
- List of datasets for machine learning research (Wikipedia)
- Deep Learning datasets
what else?
ingredients
keras
tensorflow
deep learning in 5 steps
1. define the problem
regression
classification
2. prepare your data
choose/create dataset
clean data
normalize data
3. define the model
multilayer perception (MLP) -> it's simple
convolutional neural network (CNN) -> image processing/
video analysis
long short-term memory (LSTM) -> next sequence
prediction
4. train and evaluate
5. refine the model
add layers
change model architecture
enhance your data
overfitting
tip I:
your dataset is the key
tip II:
tip III:
you should trust the graph
tip IV:
patient
bonus track:
hyperparameters tuning6
scikit learn GridSearchCV, RandomizedSearchCV
hyperopt
6
- scikit learn Exhaustive&Random Grid Search
- Hyperopt
troubleshooting
overfitting
dropout
early stopping
cross validation
accuracy/loss curve noisy
smooth learning rate
Resources #1
4 Google Machine Learning Crash Course
4 Learn TensorFlow and deep learning, without a Ph.D.
by Martin Görner
4 How to Use Metrics for Deep Learning with Keras in
Python
4 Neural Networks for Machine Learning course from
Coursera
Resources #2
4 Machine learning finance
4 Keras
4 Tensorflow
4 rucka/deeplearning docker image
It is a capital mistake to
theorize before one has
data
1
Sherlock Holmes
thank you!
questions?
"non ci sono domande stupide, ci sono solo risposte stupide"
AI&ML Conference 2019 - Deep Learning from zero to hero
AI&ML Conference 2019 - Deep Learning from zero to hero

More Related Content

What's hot

Ffffffffffff
FfffffffffffFfffffffffff
Ffffffffffffmohdshanu
 
Teoria y problemas de interes simple ii is54 ccesa007
Teoria y problemas de interes simple ii  is54 ccesa007Teoria y problemas de interes simple ii  is54 ccesa007
Teoria y problemas de interes simple ii is54 ccesa007Demetrio Ccesa Rayme
 
Module 11 handout by Carey Williamson
Module 11 handout by Carey WilliamsonModule 11 handout by Carey Williamson
Module 11 handout by Carey Williamsonnguyendinhtu
 
Dti2143 lab sheet 9
Dti2143 lab sheet 9Dti2143 lab sheet 9
Dti2143 lab sheet 9alish sha
 
Examplelf flowchart
Examplelf flowchartExamplelf flowchart
Examplelf flowchartAnkit Dubey
 
Inverse of a matrix
Inverse of a matrixInverse of a matrix
Inverse of a matrixsumanmathews
 
Exact values & associated angles
Exact values & associated angles Exact values & associated angles
Exact values & associated angles jsm71
 
Unit 2 monte carlo simulation
Unit 2 monte carlo simulationUnit 2 monte carlo simulation
Unit 2 monte carlo simulationDevaKumari Vijay
 
Affine Cypher Encryption - Decryption
Affine Cypher Encryption - DecryptionAffine Cypher Encryption - Decryption
Affine Cypher Encryption - DecryptionZakriya Ali Sabir
 

What's hot (13)

Ffffffffffff
FfffffffffffFfffffffffff
Ffffffffffff
 
Teoria y problemas de interes simple ii is54 ccesa007
Teoria y problemas de interes simple ii  is54 ccesa007Teoria y problemas de interes simple ii  is54 ccesa007
Teoria y problemas de interes simple ii is54 ccesa007
 
Module 11 handout by Carey Williamson
Module 11 handout by Carey WilliamsonModule 11 handout by Carey Williamson
Module 11 handout by Carey Williamson
 
Dti2143 lab sheet 9
Dti2143 lab sheet 9Dti2143 lab sheet 9
Dti2143 lab sheet 9
 
Examplelf flowchart
Examplelf flowchartExamplelf flowchart
Examplelf flowchart
 
Programming C Part 02
Programming C Part 02Programming C Part 02
Programming C Part 02
 
1 (1)
1 (1)1 (1)
1 (1)
 
Inverse of a matrix
Inverse of a matrixInverse of a matrix
Inverse of a matrix
 
Matematicaa
MatematicaaMatematicaa
Matematicaa
 
Exact values & associated angles
Exact values & associated angles Exact values & associated angles
Exact values & associated angles
 
Unit 2 monte carlo simulation
Unit 2 monte carlo simulationUnit 2 monte carlo simulation
Unit 2 monte carlo simulation
 
C Programming Example
C Programming Example C Programming Example
C Programming Example
 
Affine Cypher Encryption - Decryption
Affine Cypher Encryption - DecryptionAffine Cypher Encryption - Decryption
Affine Cypher Encryption - Decryption
 

Similar to AI&ML Conference 2019 - Deep Learning from zero to hero

error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxerror 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxSALU18
 
Lesson 24. Phantom errors
Lesson 24. Phantom errorsLesson 24. Phantom errors
Lesson 24. Phantom errorsPVS-Studio
 
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...Technologies used in the PVS-Studio code analyzer for finding bugs and potent...
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...Andrey Karpov
 
Scilab as a calculator
Scilab as a calculatorScilab as a calculator
Scilab as a calculatorScilab
 
How to avoid bugs using modern C++
How to avoid bugs using modern C++How to avoid bugs using modern C++
How to avoid bugs using modern C++PVS-Studio
 
Headache from using mathematical software
Headache from using mathematical softwareHeadache from using mathematical software
Headache from using mathematical softwarePVS-Studio
 
Errors detected in the Visual C++ 2012 libraries
Errors detected in the Visual C++ 2012 librariesErrors detected in the Visual C++ 2012 libraries
Errors detected in the Visual C++ 2012 librariesPVS-Studio
 
Machine Learning and Go. Go!
Machine Learning and Go. Go!Machine Learning and Go. Go!
Machine Learning and Go. Go!Diana Ortega
 
Micropatterns
MicropatternsMicropatterns
Micropatternscameronp
 
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source Code
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source CodeA Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source Code
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source CodePVS-Studio
 
Naive application of Machine Learning to Software Development
Naive application of Machine Learning to Software DevelopmentNaive application of Machine Learning to Software Development
Naive application of Machine Learning to Software DevelopmentAndriy Khavryuchenko
 
Improved alerting with Prometheus and Alertmanager
Improved alerting with Prometheus and AlertmanagerImproved alerting with Prometheus and Alertmanager
Improved alerting with Prometheus and AlertmanagerJulien Pivotto
 
A 64-bit horse that can count
A 64-bit horse that can countA 64-bit horse that can count
A 64-bit horse that can countAndrey Karpov
 
The article is a report about testing of portability of Loki library with 64-...
The article is a report about testing of portability of Loki library with 64-...The article is a report about testing of portability of Loki library with 64-...
The article is a report about testing of portability of Loki library with 64-...PVS-Studio
 
"Quantum" performance effects
"Quantum" performance effects"Quantum" performance effects
"Quantum" performance effectsSergey Kuksenko
 
Checking the code of Valgrind dynamic analyzer by a static analyzer
Checking the code of Valgrind dynamic analyzer by a static analyzerChecking the code of Valgrind dynamic analyzer by a static analyzer
Checking the code of Valgrind dynamic analyzer by a static analyzerPVS-Studio
 
A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selectionBogusz Jelinski
 

Similar to AI&ML Conference 2019 - Deep Learning from zero to hero (20)

error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxerror 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
 
Lesson 24. Phantom errors
Lesson 24. Phantom errorsLesson 24. Phantom errors
Lesson 24. Phantom errors
 
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...Technologies used in the PVS-Studio code analyzer for finding bugs and potent...
Technologies used in the PVS-Studio code analyzer for finding bugs and potent...
 
Scilab as a calculator
Scilab as a calculatorScilab as a calculator
Scilab as a calculator
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
 
How to avoid bugs using modern C++
How to avoid bugs using modern C++How to avoid bugs using modern C++
How to avoid bugs using modern C++
 
PyData Paris 2015 - Track 1.2 Gilles Louppe
PyData Paris 2015 - Track 1.2 Gilles LouppePyData Paris 2015 - Track 1.2 Gilles Louppe
PyData Paris 2015 - Track 1.2 Gilles Louppe
 
Headache from using mathematical software
Headache from using mathematical softwareHeadache from using mathematical software
Headache from using mathematical software
 
Errors detected in the Visual C++ 2012 libraries
Errors detected in the Visual C++ 2012 librariesErrors detected in the Visual C++ 2012 libraries
Errors detected in the Visual C++ 2012 libraries
 
Machine Learning and Go. Go!
Machine Learning and Go. Go!Machine Learning and Go. Go!
Machine Learning and Go. Go!
 
Micropatterns
MicropatternsMicropatterns
Micropatterns
 
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source Code
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source CodeA Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source Code
A Unicorn Seeking Extraterrestrial Life: Analyzing SETI@home's Source Code
 
Naive application of Machine Learning to Software Development
Naive application of Machine Learning to Software DevelopmentNaive application of Machine Learning to Software Development
Naive application of Machine Learning to Software Development
 
Improved alerting with Prometheus and Alertmanager
Improved alerting with Prometheus and AlertmanagerImproved alerting with Prometheus and Alertmanager
Improved alerting with Prometheus and Alertmanager
 
A 64-bit horse that can count
A 64-bit horse that can countA 64-bit horse that can count
A 64-bit horse that can count
 
The article is a report about testing of portability of Loki library with 64-...
The article is a report about testing of portability of Loki library with 64-...The article is a report about testing of portability of Loki library with 64-...
The article is a report about testing of portability of Loki library with 64-...
 
C lab-programs
C lab-programsC lab-programs
C lab-programs
 
"Quantum" performance effects
"Quantum" performance effects"Quantum" performance effects
"Quantum" performance effects
 
Checking the code of Valgrind dynamic analyzer by a static analyzer
Checking the code of Valgrind dynamic analyzer by a static analyzerChecking the code of Valgrind dynamic analyzer by a static analyzer
Checking the code of Valgrind dynamic analyzer by a static analyzer
 
A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selection
 

Recently uploaded

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

AI&ML Conference 2019 - Deep Learning from zero to hero

  • 1.
  • 2.
  • 4. not a good start
  • 6.
  • 8.
  • 9. communities Ugidotnet | Scala Milano Meetup | Marketers
  • 10. look mum, no code!
  • 11. transfer learning1 1 - How to Retrain Inception's Final Layer for New Categories - TensorFlow for Poets
  • 12.
  • 13. the simpsons detector root@cc5a496bf40e:/code/simpson_retraining# ./retrain.sh INFO:tensorflow:Looking for images in 'marge' INFO:tensorflow:Looking for images in 'homer' INFO:tensorflow:Looking for images in 'bart' INFO:tensorflow:Looking for images in 'lisa' .... INFO:tensorflow:2018-02-25 09:26:27.689515: Step 0: Train accuracy = 53.0% INFO:tensorflow:2018-02-25 09:26:27.689750: Step 0: Cross entropy = 1.367082 INFO:tensorflow:2018-02-25 09:26:28.583996: Step 0: Validation accuracy = 33.0% (N=100) .... INFO:tensorflow:2018-02-25 09:26:49.359180: Step 30: Train accuracy = 65.0% INFO:tensorflow:2018-02-25 09:26:49.359404: Step 30: Cross entropy = 1.172318 INFO:tensorflow:2018-02-25 09:26:49.871993: Step 30: Validation accuracy = 69.0% (N=100) .... INFO:tensorflow:2018-02-25 09:35:37.061001: Step 1000: Train accuracy = 95.0% INFO:tensorflow:2018-02-25 09:35:37.061221: Step 1000: Cross entropy = 0.311776 INFO:tensorflow:2018-02-25 09:35:37.600067: Step 1000: Validation accuracy = 87.0% (N=100) .... INFO:tensorflow:2018-02-25 09:44:03.139348: Step 2000: Train accuracy = 95.0% INFO:tensorflow:2018-02-25 09:44:03.139593: Step 2000: Cross entropy = 0.286085 INFO:tensorflow:2018-02-25 09:44:03.538799: Step 2000: Validation accuracy = 83.0% (N=100) .... INFO:tensorflow:2018-02-25 10:00:39.674607: Step 3999: Train accuracy = 97.0% INFO:tensorflow:2018-02-25 10:00:39.674859: Step 3999: Cross entropy = 0.175444 INFO:tensorflow:2018-02-25 10:00:40.073648: Step 3999: Validation accuracy = 90.0% (N=100) INFO:tensorflow:Final test accuracy = 90.4% (N=261) root:/code/simpson_retraining# ./evaluate.sh /data/simpson/test_set/0.jpg` bart 0.63594097 marge 0.3191907 lisa 0.034744244 homer 0.010124116
  • 14. the simpsons detector training results root@cc5a496bf40e:/code/simpson_retraining# ./retrain.sh INFO:tensorflow:2018-02-25 09:26:27.689515: Step 0: Train accuracy = 53.0% INFO:tensorflow:2018-02-25 09:26:27.689750: Step 0: Cross entropy = 1.367082 INFO:tensorflow:2018-02-25 09:26:28.583996: Step 0: Validation accuracy = 33.0% (N=100) .... INFO:tensorflow:2018-02-25 10:00:39.674607: Step 3999: Train accuracy = 97.0% INFO:tensorflow:2018-02-25 10:00:39.674859: Step 3999: Cross entropy = 0.175444 INFO:tensorflow:2018-02-25 10:00:40.073648: Step 3999: Validation accuracy = 90.0% (N=100) INFO:tensorflow:Final test accuracy = 90.4% (N=261) root:/code/simpson_retraining# ./evaluate.sh /data/simpson/test_set/0.jpg` bart 0.63594097 marge 0.3191907 lisa 0.034744244 homer 0.010124116
  • 17. common solutions ready to go models2 2 TensorFlow models
  • 18. common solutions ready to go libraries or tools3 3 - OpenCV-Python - Spacy - gensim
  • 19. Word Algebra4 from gensim.models.KeyedVectors import load_word2vec_format model = load_word2vec_format( 'GoogleNews-vectors-negative300.bin', limit=2000000, binary=True) #calculate: (Rome - Italy) + France = ? model.similar_by_vector( model['Rome'] - model['Italy'] + model['France'] , topn=1) #[(u'Paris', 0.7167540192604065)] #calculate: (doctor - man) + woman = ? model.most_similar( model['doctor'] - model['man'] + model['woman'] , topn=1) #[(u'nurse', 0.7127888798713684)] #calculate: (gone - go) + eat = ? model.most_similar( positive=['gone', 'eat'], negative=['go'] , topn=1) #[(u'eaten', 0.7462186217308044)] 4 Credits: The dark side of deep learning - Simone Scardapane - Codemotion 2017
  • 20. calculate: (Rome - Italy) + France = ? model['Rome'] - model['Italy'] + model['France'] [(u'Paris', 0.7167540192604065)]
  • 21. calculate: (gone - go) + eat = ? model['gone'] - model['go'] + model['eat'] [(u'eaten', 0.7462186217308044)]
  • 22. common solutions Visual Studio ML Model builder
  • 23. common solutions ready to go dataset5 5 - Awesome deep learning#datasets (Github) - List of datasets for machine learning research (Wikipedia) - Deep Learning datasets
  • 26. deep learning in 5 steps
  • 27. 1. define the problem regression classification
  • 28. 2. prepare your data choose/create dataset clean data normalize data
  • 29. 3. define the model multilayer perception (MLP) -> it's simple convolutional neural network (CNN) -> image processing/ video analysis long short-term memory (LSTM) -> next sequence prediction
  • 30.
  • 31.
  • 32.
  • 33. 4. train and evaluate
  • 34.
  • 35. 5. refine the model add layers change model architecture enhance your data
  • 37. tip I: your dataset is the key
  • 39. tip III: you should trust the graph
  • 41. bonus track: hyperparameters tuning6 scikit learn GridSearchCV, RandomizedSearchCV hyperopt 6 - scikit learn Exhaustive&Random Grid Search - Hyperopt
  • 45. Resources #1 4 Google Machine Learning Crash Course 4 Learn TensorFlow and deep learning, without a Ph.D. by Martin Görner 4 How to Use Metrics for Deep Learning with Keras in Python 4 Neural Networks for Machine Learning course from Coursera
  • 46. Resources #2 4 Machine learning finance 4 Keras 4 Tensorflow 4 rucka/deeplearning docker image
  • 47. It is a capital mistake to theorize before one has data 1 Sherlock Holmes
  • 49. questions? "non ci sono domande stupide, ci sono solo risposte stupide"