practical machine learning with prediction apis

19
Practical Machine Learning with Prediction APIs Joseph Ferraro, Salesforce MVP, CTO, Mavens Consulting Vincent Reeder, Technical Architect, Mavens Consulting

Upload: salesforce-developers

Post on 14-Apr-2017

471 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Practical Machine Learning with Prediction APIs

Practical Machine Learning with Prediction APIs

 Joseph Ferraro, Salesforce MVP, CTO, Mavens Consulting  Vincent Reeder, Technical Architect, Mavens Consulting

Page 2: Practical Machine Learning with Prediction APIs

Joseph Ferraro Salesforce Developer MVP

CTO, Mavens Consulting

@joeferraro

@mavensmate

Page 3: Practical Machine Learning with Prediction APIs

Vincent Reeder Technical Architect, Mavens Consulting

@vincentreeder

Page 4: Practical Machine Learning with Prediction APIs

About Mavens Consulting

 Preferred Healthcare & Life Sciences implementation partner for salesforce.com and Veeva

 50+ Salesforce1 & Heroku consultants located across North America and Europe

 12 Mavens in attendance at #Dreamforce15, speaking in 8 different technical sessions

 #mavensDF15

Page 5: Practical Machine Learning with Prediction APIs

Agenda

 What is machine learning?

 Practical applications

 How does it work?

 Sales Demo with Code

 Service Demo with Code

 Summary

 Q&A

Page 6: Practical Machine Learning with Prediction APIs

Machine Learning A type of artificial intelligence (AI) that provides computers with the ability to learn without being explicitly programmed

Page 7: Practical Machine Learning with Prediction APIs

Machine Learning: What is it?

 Teaching a computer to “do stuff”

 Automatic

 Algorithmic

 Pattern recognition

 Artificial intelligence

http://www.cs.princeton.edu/courses/archive/spr08/cos511/scribe_notes/0204.pdf

Page 8: Practical Machine Learning with Prediction APIs

Machine Learning: Practical applications

 Spam filtering

 Fraud detection

 Optical character recognition

 Medical diagnoses

 Anticipate customer needs

 Route requests efficiently

 Anticipate deals

Page 9: Practical Machine Learning with Prediction APIs

Machine Learning: Common algorithms

 Decision trees

 Boosting

•  Spam filtering

 Support vector machines

•  Character recognition

http://www.cs.princeton.edu/~schapire/talks/picasso-minicourse.pdf

Page 10: Practical Machine Learning with Prediction APIs

Machine Learning Output

  Regression: Estimating or predicting a response

•  “There is a 92% chance this is spam”

  Classification: Identify members of a group

•  “This text is English”

Page 11: Practical Machine Learning with Prediction APIs

Machine Learning: How does it work?

Develop Model

Idea

Data Train

Model Test/

Analyze Go live!

Page 12: Practical Machine Learning with Prediction APIs

Machine Learning: How does it work?

 Starts with an idea, but depends on data

 Datasets:

•  Training – optimal dataset, relationship discovery

•  Validation – compare algorithm performance

•  Testing – Apply selected algorithm to real-world data

 Learn!

Page 13: Practical Machine Learning with Prediction APIs

Demo Use Cases

 Sales Cloud

•  Predict when leads will covert to opportunities

 Serive Cloud

•  Gauge customer mood

Page 14: Practical Machine Learning with Prediction APIs

Application

 Node.js application running on Heroku

 Exposes endpoints for common machine learning tasks, such as training and prediction

 Subscribes to Salesforce push topics for Leads and Cases via the streaming API

Page 15: Practical Machine Learning with Prediction APIs

Use Case: Sales

Page 16: Practical Machine Learning with Prediction APIs

Use Case: Support

Page 17: Practical Machine Learning with Prediction APIs

Summary

 Machine learning teaches computers to do stuff; cool stuff!

 Collect data, train your model, validate and test it, deploy!

 Not a perfect science

 Powerful when used correctly!

 @joeferraro

 @vincentreeder

Page 18: Practical Machine Learning with Prediction APIs

Q&A

Page 19: Practical Machine Learning with Prediction APIs

Thank you