SlideShare a Scribd company logo
Testing for the Deeplearning
Folks
By : Vishwas Narayan
Who Am I?
● I am a Compute Nerd who loves more of the hardware
● Worked on different datasets in the Computer Vision
● I just some good practises /Habits:
β—‹ Read a lot of paper
β—‹ Just loves to understand the Neural Network(Even though I haven't learnt anything)
Testing for the deeplearning folks
Testing for the deeplearning folks
Testing for the deeplearning folks
AI is an attempt to build humans intuitive intel
Machine do have different perception
Testing for the deeplearning folks
Agenda?
Neural Network
Testing in the Deep Learning
Neural Nets (A brief biological history)
Approximated Hardware
DATA
Algorithm
Output
Traditionally
DATA
Algorithm
Output
DATA
Output
DATA
Model
Model
Predictions
Testing for the deeplearning folks
Testing for the deeplearning folks
Ofcourse I feel that you all know/if you don't know
we will summarise it.
● Neural network
● Activation function
● What are hyperparameters and also many more concepts in the Neural
Networks
Nature of Dataset is Simple
Basically cross validation
Model Evaluation
Bias in ML System
● Any ML model is Biased toward the model that it is trained on
● Often Data is biased
● It is important to know what you model is trained on and how they affect the
model.
Testing for the neural network can be
● A unit test
● A test for the presence of the adversarial examples
● A test for the models performance
● A test for the Fakes and also many more
Adversarial Examples
What is An Adversarial Attack?
● A one pixel attack and a many pixel attack
● A picture with noisy information
● A picture with the noisy decoder
● A very faulty β€œCODEC” - β€œCompressor and Decompressor” or a β€œCompressor
and Decoder”
What is An Adversarial Attack?
A one pixel attack and a many pixel attack
A picture with noisy information
A picture with the noisy decoder
A very faulty β€œCODEC” - β€œCompressor and Decompressor” or a β€œCompressor and
Decoder”
Basically one designed by a adversary or an attacker to confuse the machine and
its sometimes/most of the time developed by the developer itself
So why do they do it
Can a human get confused?
Thus there is a a lot of new things to think about?
If we try to attack by the optimization then we have to know the parameters and
also the Architecture.
Thus Companies have to be very strong to get the right architecture in the right
time.
But Skewness in the model parameters are the key
How think about your brain.
Yes they can be transferred to humans
Just identify the context for inducing the Adversarial examples.
But also a time limited human can make an error.
Yes they can be transferred to humans
Just identify the context for inducing the Adversarial examples.
But also a time limited human can make an error.
Hypothesis is that:they can be transfer to models and can target features that are
relevant to human visual system or inference but we are smart
Yes they can be transferred to humans
Just identify the context for inducing the Adversarial examples.
But also a time limited human can make an error.
Hypothesis is that:they can be transfer to models and can target features that are
relevant to human visual system or inference but we are smart
Thus we can never be fooled.
More of these kinds of the problem statements are:
Context where we can really detect the hypothesis example.
Yes they can be transfer to a model
If you have an access to the optimization process, parameters in the neural
network that you are building lossfunction and other parameters.
You can be made to have no similarity in the access to the brain function.
Black box attack on CV models
● Can be transferred through:
● Different architecture
● When trained on different data
● When Trained with different parameters for the neural network
β—‹ Loss function,hyper parameters etc
β—‹ Data Bias and Model Bias
But how can we prevent it
We move with fetching clues,petreubition seen more dominantly.
Thus we also aim at
Reducing the gap between the model and the Brain.
But models have evolved over a period of time
They can generate an image they can fake the presence of the pixel
Thus scientist have also leverage this potential for both good and some have
used for the β€œbad”
Model quantization can also induce the noise thus you have to be very careful..
So i talked a lot on images what about the
Other formats fo the sequential datasets
JSON,csv,XML,YAML,
And you models have different file formats:
CKPT,h5,PMML and so on and sometimes even in json
Outline of the project
● Concept
β—‹ Project structure
β—‹ ML Test Score:A test for the production readiness
● Infrastructure/tooling
β—‹ CI/Testing
β—‹ Docker
β—‹ Deployment through web/Device
β—‹ Monitoring
So we all know that deep learning system
● Makes the prediction
● Brings the accuracy
● Then we work on the deployment
Deep Learning system that we want to consider
Testing for the deeplearning folks
Trust me let's just move on to the testing
● Unit Testing: test of single unit of code in isolation(β€œquarantine”)
● Integrated Testing: TEst how all the different components work together
● Black Box testing: Functionality
● White box/Glass Box testing : Process
● Regression Test: We create a problem and test it
● Smoke Test: A subset of the test case verifying the core of the system.
● Alpha test : In house final function testing
● Beta Test: initial release of subset to real users.
Well Tested code helps you to
● Find Bugs early
● Iterate faster
● Debug more Easily
● Design better code
Learning to write the good test code is a
Really good investment
Learning to write the good test code is a
Really good investment
As the way in which software engineering works is a whole level of the different
story.
Where to start?
● Pick a single,specific functionality to verify
● Use available tool to get everything else out of the way
● Don't try writing all the codebase as one.
● Writing test as early as they can be valuable.
So let's get digging for the handson
● YOLO model testing.
● Deployments being tested.
● Methods on the deployment.

More Related Content

PPTX
Decentralised ai
PDF
Lean DevOps - Lessons Learned from Innovation-driven Companies
PDF
Staying Shallow & Lean in a Deep Learning World
PDF
Alexandra johnson reducing operational barriers to model training
Β 
PPTX
Neel Sundaresan - Teaching a machine to code
Β 
PDF
Deep learning in production with the best
PDF
Microsoft Cognitive Toolkit (Atlanta Code Camp 2017)
PPTX
Future of ai on the jvm
Decentralised ai
Lean DevOps - Lessons Learned from Innovation-driven Companies
Staying Shallow & Lean in a Deep Learning World
Alexandra johnson reducing operational barriers to model training
Β 
Neel Sundaresan - Teaching a machine to code
Β 
Deep learning in production with the best
Microsoft Cognitive Toolkit (Atlanta Code Camp 2017)
Future of ai on the jvm

What's hot (20)

PDF
Adopting software design practices for better machine learning
Β 
PDF
Anomaly Detection and Automatic Labeling with Deep Learning
PPTX
Azure cognitive service
PDF
Deep Learning with CNTK
PDF
Guide to end end machine learning projects
PDF
Saurav_super_recent_updated_CV
PDF
Agile Deep Learning
PDF
Aaa ped-1- Python: Introduction to AI, Python and Colab
PDF
MLconf 2017 Seattle Lunch Talk - Using Optimal Learning to tune Deep Learning...
Β 
PDF
10 more lessons learned from building Machine Learning systems
PDF
Common Problems in Hyperparameter Optimization
Β 
PDF
H2O World - Ensembles with Erin LeDell
PDF
Walk through of azure machine learning studio new features
PPTX
Intro To Machine Learning in Python
PPTX
Evolution of the Prometheus TSDB (Percona Live Europe 2017)
PPTX
Machine learning, Machine learning training bootcamp
Β 
PPTX
Craftsmanship
PDF
Is this normal?
PDF
Artificial Intelligence with Python | Edureka
PDF
React performance
Adopting software design practices for better machine learning
Β 
Anomaly Detection and Automatic Labeling with Deep Learning
Azure cognitive service
Deep Learning with CNTK
Guide to end end machine learning projects
Saurav_super_recent_updated_CV
Agile Deep Learning
Aaa ped-1- Python: Introduction to AI, Python and Colab
MLconf 2017 Seattle Lunch Talk - Using Optimal Learning to tune Deep Learning...
Β 
10 more lessons learned from building Machine Learning systems
Common Problems in Hyperparameter Optimization
Β 
H2O World - Ensembles with Erin LeDell
Walk through of azure machine learning studio new features
Intro To Machine Learning in Python
Evolution of the Prometheus TSDB (Percona Live Europe 2017)
Machine learning, Machine learning training bootcamp
Β 
Craftsmanship
Is this normal?
Artificial Intelligence with Python | Edureka
React performance
Ad

Similar to Testing for the deeplearning folks (20)

PPTX
Deep learning with tensorflow
PPTX
Deep learning introduction
PPTX
Cinci ug-january2011-anti-patterns
PDF
Ml masterclass
PDF
Coding with AI - Understanding LLMs and how to use them
PPTX
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
PDF
Notes on Simulation and GHDL
PPTX
AI hype or reality
PDF
Hacking Predictive Modeling - RoadSec 2018
PDF
From 🀦 to 🐿️
PDF
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
PDF
Chaos Engineering Talk at DevOps Days Austin
PDF
Lessons learned from building practical deep learning systems
PPTX
Teaching Your Computer To Play Video Games
PPTX
MachinaFiesta: A Vision into Machine Learning πŸš€
PDF
Neuromation.io AI Ukraine Presentation
PPTX
Genomics data insights
PDF
Ai lecture1 final
PPTX
OBJECT DETECTION FOR VISUALLY IMPAIRED USING TENSORFLOW LITE.pptx
PDF
Model evaluation in the land of deep learning
Deep learning with tensorflow
Deep learning introduction
Cinci ug-january2011-anti-patterns
Ml masterclass
Coding with AI - Understanding LLMs and how to use them
Day 2 (Lecture 5): A Practitioner's Perspective on Building Machine Product i...
Notes on Simulation and GHDL
AI hype or reality
Hacking Predictive Modeling - RoadSec 2018
From 🀦 to 🐿️
"Large-Scale Deep Learning for Building Intelligent Computer Systems," a Keyn...
Chaos Engineering Talk at DevOps Days Austin
Lessons learned from building practical deep learning systems
Teaching Your Computer To Play Video Games
MachinaFiesta: A Vision into Machine Learning πŸš€
Neuromation.io AI Ukraine Presentation
Genomics data insights
Ai lecture1 final
OBJECT DETECTION FOR VISUALLY IMPAIRED USING TENSORFLOW LITE.pptx
Model evaluation in the land of deep learning
Ad

More from Vishwas N (20)

PDF
API Testing and Hacking.pdf
PDF
API Hijacking.pdf
PDF
What should be your approach for solving ML_CV problem statements_.pdf
PDF
Deepfence.pdf
PDF
DevOps - A Purpose for an Institution.pdf
PDF
API Testing and Hacking (1).pdf
PDF
API Hijacking (1).pdf
PDF
Dapr.pdf
PDF
linkerd.pdf
PDF
HoloLens.pdf
PDF
Automated Governance for the DevOps Institutions.pdf
PDF
Lets build with DevSecOps Culture.pdf
PDF
Github Actions and Terraform.pdf
PDF
KEDA.pdf
PPTX
Ram bleed the hardware based approach for the hackers
PPTX
Container on azure
PPTX
Deeplearning and dev ops azure
PPTX
Azure data lakes
PPTX
Azure dev ops
PPTX
Azure ai on premises with docker
API Testing and Hacking.pdf
API Hijacking.pdf
What should be your approach for solving ML_CV problem statements_.pdf
Deepfence.pdf
DevOps - A Purpose for an Institution.pdf
API Testing and Hacking (1).pdf
API Hijacking (1).pdf
Dapr.pdf
linkerd.pdf
HoloLens.pdf
Automated Governance for the DevOps Institutions.pdf
Lets build with DevSecOps Culture.pdf
Github Actions and Terraform.pdf
KEDA.pdf
Ram bleed the hardware based approach for the hackers
Container on azure
Deeplearning and dev ops azure
Azure data lakes
Azure dev ops
Azure ai on premises with docker

Recently uploaded (20)

PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
Β 
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Digital Literacy And Online Safety on internet
PPTX
Introduction to Information and Communication Technology
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
Module 1 - Cyber Law and Ethics 101.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
presentation_pfe-universite-molay-seltan.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
WebRTC in SignalWire - troubleshooting media negotiation
Power Point - Lesson 3_2.pptx grad school presentation
Β 
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
introduction about ICD -10 & ICD-11 ppt.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Digital Literacy And Online Safety on internet
Introduction to Information and Communication Technology
Paper PDF World Game (s) Great Redesign.pdf
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
international classification of diseases ICD-10 review PPT.pptx
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Unit-1 introduction to cyber security discuss about how to secure a system

Testing for the deeplearning folks

  • 1. Testing for the Deeplearning Folks By : Vishwas Narayan
  • 2. Who Am I? ● I am a Compute Nerd who loves more of the hardware ● Worked on different datasets in the Computer Vision ● I just some good practises /Habits: β—‹ Read a lot of paper β—‹ Just loves to understand the Neural Network(Even though I haven't learnt anything)
  • 6. AI is an attempt to build humans intuitive intel Machine do have different perception
  • 9. Neural Nets (A brief biological history)
  • 16. Ofcourse I feel that you all know/if you don't know we will summarise it. ● Neural network ● Activation function ● What are hyperparameters and also many more concepts in the Neural Networks
  • 17. Nature of Dataset is Simple Basically cross validation
  • 19. Bias in ML System ● Any ML model is Biased toward the model that it is trained on ● Often Data is biased ● It is important to know what you model is trained on and how they affect the model.
  • 20. Testing for the neural network can be ● A unit test ● A test for the presence of the adversarial examples ● A test for the models performance ● A test for the Fakes and also many more
  • 22. What is An Adversarial Attack? ● A one pixel attack and a many pixel attack ● A picture with noisy information ● A picture with the noisy decoder ● A very faulty β€œCODEC” - β€œCompressor and Decompressor” or a β€œCompressor and Decoder”
  • 23. What is An Adversarial Attack? A one pixel attack and a many pixel attack A picture with noisy information A picture with the noisy decoder A very faulty β€œCODEC” - β€œCompressor and Decompressor” or a β€œCompressor and Decoder” Basically one designed by a adversary or an attacker to confuse the machine and its sometimes/most of the time developed by the developer itself So why do they do it
  • 24. Can a human get confused?
  • 25. Thus there is a a lot of new things to think about? If we try to attack by the optimization then we have to know the parameters and also the Architecture. Thus Companies have to be very strong to get the right architecture in the right time.
  • 26. But Skewness in the model parameters are the key How think about your brain.
  • 27. Yes they can be transferred to humans Just identify the context for inducing the Adversarial examples. But also a time limited human can make an error.
  • 28. Yes they can be transferred to humans Just identify the context for inducing the Adversarial examples. But also a time limited human can make an error. Hypothesis is that:they can be transfer to models and can target features that are relevant to human visual system or inference but we are smart
  • 29. Yes they can be transferred to humans Just identify the context for inducing the Adversarial examples. But also a time limited human can make an error. Hypothesis is that:they can be transfer to models and can target features that are relevant to human visual system or inference but we are smart Thus we can never be fooled.
  • 30. More of these kinds of the problem statements are: Context where we can really detect the hypothesis example.
  • 31. Yes they can be transfer to a model If you have an access to the optimization process, parameters in the neural network that you are building lossfunction and other parameters. You can be made to have no similarity in the access to the brain function.
  • 32. Black box attack on CV models ● Can be transferred through: ● Different architecture ● When trained on different data ● When Trained with different parameters for the neural network β—‹ Loss function,hyper parameters etc β—‹ Data Bias and Model Bias
  • 33. But how can we prevent it We move with fetching clues,petreubition seen more dominantly.
  • 34. Thus we also aim at Reducing the gap between the model and the Brain.
  • 35. But models have evolved over a period of time They can generate an image they can fake the presence of the pixel Thus scientist have also leverage this potential for both good and some have used for the β€œbad” Model quantization can also induce the noise thus you have to be very careful..
  • 36. So i talked a lot on images what about the Other formats fo the sequential datasets JSON,csv,XML,YAML, And you models have different file formats: CKPT,h5,PMML and so on and sometimes even in json
  • 37. Outline of the project ● Concept β—‹ Project structure β—‹ ML Test Score:A test for the production readiness ● Infrastructure/tooling β—‹ CI/Testing β—‹ Docker β—‹ Deployment through web/Device β—‹ Monitoring
  • 38. So we all know that deep learning system ● Makes the prediction ● Brings the accuracy ● Then we work on the deployment
  • 39. Deep Learning system that we want to consider
  • 41. Trust me let's just move on to the testing ● Unit Testing: test of single unit of code in isolation(β€œquarantine”) ● Integrated Testing: TEst how all the different components work together ● Black Box testing: Functionality ● White box/Glass Box testing : Process ● Regression Test: We create a problem and test it ● Smoke Test: A subset of the test case verifying the core of the system. ● Alpha test : In house final function testing ● Beta Test: initial release of subset to real users.
  • 42. Well Tested code helps you to ● Find Bugs early ● Iterate faster ● Debug more Easily ● Design better code
  • 43. Learning to write the good test code is a Really good investment
  • 44. Learning to write the good test code is a Really good investment As the way in which software engineering works is a whole level of the different story.
  • 45. Where to start? ● Pick a single,specific functionality to verify ● Use available tool to get everything else out of the way ● Don't try writing all the codebase as one. ● Writing test as early as they can be valuable.
  • 46. So let's get digging for the handson ● YOLO model testing. ● Deployments being tested. ● Methods on the deployment.

Editor's Notes

  • #22: https://www.youtube.com/watch?v=UgsmV2cCO44