SlideShare a Scribd company logo
1 of 18
Introduction to
Machine Learning
for Java Developers
Zoran Sevarac
Deep Netts
Goal
To introduce Java developers to Machine Learning:
- Explain what it is
-- What it can do
- No heavy math
- Examples and Java code to get started
Session Topics
● Machine Learning Basics
● Quick overview from Linear Regression to Deep Learning
● How to do it in Java
Artificial Intelligence
Machine Learning
Deep Learning
A type of algorithm(s) that allows a machine
to emulate aspects of intelligent human
behavior
A type of AI that allows a machine to learn
from experience/data
A type of ML that uses powerful computing resources
and advanced neural networks to more-accurately solve
non-linear, highly-dimensional problems with large
amounts of data (eg, vis rec)
Artificial Intelligence and Machine Learning
Inputs
Predictions
Model
What is Machine Learning
DataSet
(outputs)
Training
Types of Machine Learning
● Supervised
● Unsupervised
● Reinforcement
Machine Learning tasks
- what you can do with it?
● Classification - assign a predefined label/category to an item, enum output
Example: Classify emails as spam or not spam
● Regression - model the relationship between variables, real valued output
Example: Predict ad clicks depending of the campaign budget
● Clustering (identify and assign input samples to groups)
Example: What are the typical behaviours of users on my website?
Data Prep Train Model Test Model
Deploy Model
(Prediction)
Basic ML Workflow
Analyze Accuracy / Errors
Popular Java Toolkits (small subset)
VisRec JSR #381
Introductory Algorithms
● Linear Regression (regression)
● Logistic Regression (classification)
● Neural Networks & Deep Learning
(classification & regression)
All use the same general
Supervised learning algorithm
The evolution of deep learning
General Supervised Learning
while(error > errorThreshold) {
predictedOut = model.getOutput()
error = predictedOut - targetOutput
moveCloserToErrorMinimum()
Iterative error minimization
algorithm (aka optimization)
Based on: Gradient Descent
ModelInput Predicted output
Error = Predicted - Target
Tune model to
minimize error
Linear Regression
● What it does: Finds the best possible straight line that through
given set of data points. A rough estimate of direction and
degree of linear dependency.
● Model is simple line: y = slope * x + intercept
● How it works: finds the set of parameters (slope and intercept)
that gives minimum of the error function. Error is calculated as
difference between target and predicted value:
error = target - predicted
● Key concepts:
Error/Loss Function (MSE)
Optimization method (gradient descent - an iterative
procedure for error function minimization) .
https://en.wikipedia.org/wiki/Linear_regression
https://www.quora.com/Does-Gradient-Descent-Algo-always-
converge-to-the-global-minimum
Logistic Regression/Binary Classification
● Just put Linear Regression inside Logistic function
● Fits logistic function: y=1/(1+e^-x)) to given data
● Used for binary (yes/no) classification problems
https://en.wikipedia.org/wiki/Logistic_regression
Neural networks
● Feed Forward Neural Network - a
directed graph in which each unit
performs logistic regression.
● Learns using Back Propagation
algorithm which is also an error
function minimization.
● Can be used for both
Classification and Regression
problems
● Number of nodes and
layers
● Activation Function
(Logistic, Tanh, ReLU)
● Error Function
(Mean Squared Error,
Cross Entropy)
Convolutional Network / Deep Learning
● Extension of Feed Forward Neural
Network specialized for image
classification/recognition taska
● Introduces convolutional layers (2D
and 3D) which act as a learnable
image filters - feature extractors
● Reduces amount or image
preprocessing - preprocessing is
being learned
https://developer.nvidia.com/discover/convolutional-neural-network
Experts in Modern Development
• Cloud
• Microservices and Containers
• Java, JavaScript/Node.js, PHP, Python
• DevOps
developer.oracle.com/ambassador @groundbreakers
• Continuous Delivery
• Open Source Technologies
• SQL/NoSQL Databases
• Machine Learning, AI, Chatbots
Oracle Data Science Cloud
● Support for all open source ML libraries
● Support for Team Collaboration
● Workflow support for entire lifecycle from data
analysis and model building to monitoring
https://cloud.oracle.com/en_US/ai-platform https://www.datascience.com/
COMING SOON
Visit them at the booth!
Thank you!
Questions?
Continue Learning at
http://www.deepnetts.com/machine-learning-basics-for-java-developers.html
http://www.deepnetts.com/quick-intro-to-deep-learning-for-java-developers.html
Ask On Twitter
@zsevarac @deepnetts
Acknowledgments
Based on a series of machine learning sessions and discussions with Frank Greco

More Related Content

What's hot

KNN Algorithm Using R | Edureka
KNN Algorithm Using R | EdurekaKNN Algorithm Using R | Edureka
KNN Algorithm Using R | EdurekaEdureka!
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsVenkat Projects
 
Feature Engineering & Selection
Feature Engineering & SelectionFeature Engineering & Selection
Feature Engineering & SelectionEng Teong Cheah
 
Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)smumbahelp
 
Linear Regression Ex
Linear Regression ExLinear Regression Ex
Linear Regression Exmailund
 
Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)smumbahelp
 
Use Of Calculus In Programming
Use Of Calculus In ProgrammingUse Of Calculus In Programming
Use Of Calculus In ProgrammingAfaq Siddiqui
 
Supervised learning
Supervised learningSupervised learning
Supervised learningAlia Hamwi
 
ECET350 Week 3 Homework Assignment
ECET350 Week 3 Homework AssignmentECET350 Week 3 Homework Assignment
ECET350 Week 3 Homework AssignmentBirleRubin
 
Visual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learningVisual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learningBenjamin Bengfort
 
Linear Regression, Machine learning term
Linear Regression, Machine learning termLinear Regression, Machine learning term
Linear Regression, Machine learning termS Rulez
 
DC02. Interpretation of predictions
DC02. Interpretation of predictionsDC02. Interpretation of predictions
DC02. Interpretation of predictionsAnton Kulesh
 
Slide 1
Slide 1Slide 1
Slide 1butest
 
Machine learning
Machine learningMachine learning
Machine learningdeepakbagam
 

What's hot (20)

KNN Algorithm Using R | Edureka
KNN Algorithm Using R | EdurekaKNN Algorithm Using R | Edureka
KNN Algorithm Using R | Edureka
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithms
 
Feature Engineering & Selection
Feature Engineering & SelectionFeature Engineering & Selection
Feature Engineering & Selection
 
Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)
 
Linear Regression Ex
Linear Regression ExLinear Regression Ex
Linear Regression Ex
 
Lesson 11 1
Lesson 11  1Lesson 11  1
Lesson 11 1
 
Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)Bt8901 object oriented systems-de (1)
Bt8901 object oriented systems-de (1)
 
Use Of Calculus In Programming
Use Of Calculus In ProgrammingUse Of Calculus In Programming
Use Of Calculus In Programming
 
Supervised learning
Supervised learningSupervised learning
Supervised learning
 
supervised learning
supervised learningsupervised learning
supervised learning
 
ECET350 Week 3 Homework Assignment
ECET350 Week 3 Homework AssignmentECET350 Week 3 Homework Assignment
ECET350 Week 3 Homework Assignment
 
Supervised learning
  Supervised learning  Supervised learning
Supervised learning
 
Visual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learningVisual diagnostics for more effective machine learning
Visual diagnostics for more effective machine learning
 
Linear Regression, Machine learning term
Linear Regression, Machine learning termLinear Regression, Machine learning term
Linear Regression, Machine learning term
 
Machine Learning Seminar
Machine Learning SeminarMachine Learning Seminar
Machine Learning Seminar
 
DC02. Interpretation of predictions
DC02. Interpretation of predictionsDC02. Interpretation of predictions
DC02. Interpretation of predictions
 
Slide 1
Slide 1Slide 1
Slide 1
 
Mscs discussion
Mscs discussionMscs discussion
Mscs discussion
 
Ew36913917
Ew36913917Ew36913917
Ew36913917
 
Machine learning
Machine learningMachine learning
Machine learning
 

Similar to Introduction to Machine Learning for Java Developers

Getting started with Machine Learning
Getting started with Machine LearningGetting started with Machine Learning
Getting started with Machine LearningGaurav Bhalotia
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnBenjamin Bengfort
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIAI Frontiers
 
Big data 2.0, deep learning and financial Usecases
Big data 2.0, deep learning and financial UsecasesBig data 2.0, deep learning and financial Usecases
Big data 2.0, deep learning and financial UsecasesArvind Rapaka
 
Nose Dive into Apache Spark ML
Nose Dive into Apache Spark MLNose Dive into Apache Spark ML
Nose Dive into Apache Spark MLAhmet Bulut
 
Student Performance Predictor
Student Performance PredictorStudent Performance Predictor
Student Performance PredictorIRJET Journal
 
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...IRJET Journal
 
Introduction to Machine Learning with Spark
Introduction to Machine Learning with SparkIntroduction to Machine Learning with Spark
Introduction to Machine Learning with Sparkdatamantra
 
Kickstart ML.pptx
Kickstart ML.pptxKickstart ML.pptx
Kickstart ML.pptxGDSCVJTI
 
A tour of the top 10 algorithms for machine learning newbies
A tour of the top 10 algorithms for machine learning newbiesA tour of the top 10 algorithms for machine learning newbies
A tour of the top 10 algorithms for machine learning newbiesVimal Gupta
 
Model Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherModel Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherIosif Itkin
 
V2.0 open power ai virtual university deep learning and ai introduction
V2.0 open power ai virtual university   deep learning and ai introductionV2.0 open power ai virtual university   deep learning and ai introduction
V2.0 open power ai virtual university deep learning and ai introductionGanesan Narayanasamy
 
Deep learning crash course
Deep learning crash courseDeep learning crash course
Deep learning crash courseVishwas N
 

Similar to Introduction to Machine Learning for Java Developers (20)

Getting started with Machine Learning
Getting started with Machine LearningGetting started with Machine Learning
Getting started with Machine Learning
 
MACHINE LEARNING.pptx
MACHINE LEARNING.pptxMACHINE LEARNING.pptx
MACHINE LEARNING.pptx
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-Learn
 
Jay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AIJay Yagnik at AI Frontiers : A History Lesson on AI
Jay Yagnik at AI Frontiers : A History Lesson on AI
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
Big data 2.0, deep learning and financial Usecases
Big data 2.0, deep learning and financial UsecasesBig data 2.0, deep learning and financial Usecases
Big data 2.0, deep learning and financial Usecases
 
Nose Dive into Apache Spark ML
Nose Dive into Apache Spark MLNose Dive into Apache Spark ML
Nose Dive into Apache Spark ML
 
Student Performance Predictor
Student Performance PredictorStudent Performance Predictor
Student Performance Predictor
 
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...
IRJET- Unabridged Review of Supervised Machine Learning Regression and Classi...
 
Introduction to Machine Learning with Spark
Introduction to Machine Learning with SparkIntroduction to Machine Learning with Spark
Introduction to Machine Learning with Spark
 
Kickstart ML.pptx
Kickstart ML.pptxKickstart ML.pptx
Kickstart ML.pptx
 
8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx
 
PythonML.pptx
PythonML.pptxPythonML.pptx
PythonML.pptx
 
Stock Market Prediction Using ANN
Stock Market Prediction Using ANNStock Market Prediction Using ANN
Stock Market Prediction Using ANN
 
A tour of the top 10 algorithms for machine learning newbies
A tour of the top 10 algorithms for machine learning newbiesA tour of the top 10 algorithms for machine learning newbies
A tour of the top 10 algorithms for machine learning newbies
 
Model Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying TogetherModel Driven Developing & Model Based Checking: Applying Together
Model Driven Developing & Model Based Checking: Applying Together
 
V2.0 open power ai virtual university deep learning and ai introduction
V2.0 open power ai virtual university   deep learning and ai introductionV2.0 open power ai virtual university   deep learning and ai introduction
V2.0 open power ai virtual university deep learning and ai introduction
 
Internshipppt.pptx
Internshipppt.pptxInternshipppt.pptx
Internshipppt.pptx
 
Deep learning crash course
Deep learning crash courseDeep learning crash course
Deep learning crash course
 
supervised.pptx
supervised.pptxsupervised.pptx
supervised.pptx
 

Recently uploaded

FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 

Introduction to Machine Learning for Java Developers

  • 1. Introduction to Machine Learning for Java Developers Zoran Sevarac Deep Netts
  • 2. Goal To introduce Java developers to Machine Learning: - Explain what it is -- What it can do - No heavy math - Examples and Java code to get started
  • 3. Session Topics ● Machine Learning Basics ● Quick overview from Linear Regression to Deep Learning ● How to do it in Java
  • 4. Artificial Intelligence Machine Learning Deep Learning A type of algorithm(s) that allows a machine to emulate aspects of intelligent human behavior A type of AI that allows a machine to learn from experience/data A type of ML that uses powerful computing resources and advanced neural networks to more-accurately solve non-linear, highly-dimensional problems with large amounts of data (eg, vis rec) Artificial Intelligence and Machine Learning
  • 5. Inputs Predictions Model What is Machine Learning DataSet (outputs) Training
  • 6. Types of Machine Learning ● Supervised ● Unsupervised ● Reinforcement
  • 7. Machine Learning tasks - what you can do with it? ● Classification - assign a predefined label/category to an item, enum output Example: Classify emails as spam or not spam ● Regression - model the relationship between variables, real valued output Example: Predict ad clicks depending of the campaign budget ● Clustering (identify and assign input samples to groups) Example: What are the typical behaviours of users on my website?
  • 8. Data Prep Train Model Test Model Deploy Model (Prediction) Basic ML Workflow Analyze Accuracy / Errors
  • 9. Popular Java Toolkits (small subset) VisRec JSR #381
  • 10. Introductory Algorithms ● Linear Regression (regression) ● Logistic Regression (classification) ● Neural Networks & Deep Learning (classification & regression) All use the same general Supervised learning algorithm The evolution of deep learning
  • 11. General Supervised Learning while(error > errorThreshold) { predictedOut = model.getOutput() error = predictedOut - targetOutput moveCloserToErrorMinimum() Iterative error minimization algorithm (aka optimization) Based on: Gradient Descent ModelInput Predicted output Error = Predicted - Target Tune model to minimize error
  • 12. Linear Regression ● What it does: Finds the best possible straight line that through given set of data points. A rough estimate of direction and degree of linear dependency. ● Model is simple line: y = slope * x + intercept ● How it works: finds the set of parameters (slope and intercept) that gives minimum of the error function. Error is calculated as difference between target and predicted value: error = target - predicted ● Key concepts: Error/Loss Function (MSE) Optimization method (gradient descent - an iterative procedure for error function minimization) . https://en.wikipedia.org/wiki/Linear_regression https://www.quora.com/Does-Gradient-Descent-Algo-always- converge-to-the-global-minimum
  • 13. Logistic Regression/Binary Classification ● Just put Linear Regression inside Logistic function ● Fits logistic function: y=1/(1+e^-x)) to given data ● Used for binary (yes/no) classification problems https://en.wikipedia.org/wiki/Logistic_regression
  • 14. Neural networks ● Feed Forward Neural Network - a directed graph in which each unit performs logistic regression. ● Learns using Back Propagation algorithm which is also an error function minimization. ● Can be used for both Classification and Regression problems ● Number of nodes and layers ● Activation Function (Logistic, Tanh, ReLU) ● Error Function (Mean Squared Error, Cross Entropy)
  • 15. Convolutional Network / Deep Learning ● Extension of Feed Forward Neural Network specialized for image classification/recognition taska ● Introduces convolutional layers (2D and 3D) which act as a learnable image filters - feature extractors ● Reduces amount or image preprocessing - preprocessing is being learned https://developer.nvidia.com/discover/convolutional-neural-network
  • 16. Experts in Modern Development • Cloud • Microservices and Containers • Java, JavaScript/Node.js, PHP, Python • DevOps developer.oracle.com/ambassador @groundbreakers • Continuous Delivery • Open Source Technologies • SQL/NoSQL Databases • Machine Learning, AI, Chatbots
  • 17. Oracle Data Science Cloud ● Support for all open source ML libraries ● Support for Team Collaboration ● Workflow support for entire lifecycle from data analysis and model building to monitoring https://cloud.oracle.com/en_US/ai-platform https://www.datascience.com/ COMING SOON Visit them at the booth!
  • 18. Thank you! Questions? Continue Learning at http://www.deepnetts.com/machine-learning-basics-for-java-developers.html http://www.deepnetts.com/quick-intro-to-deep-learning-for-java-developers.html Ask On Twitter @zsevarac @deepnetts Acknowledgments Based on a series of machine learning sessions and discussions with Frank Greco