adding machine learning to a web app

21
Adding machine learning to a web app Richard Dallaway @d6y

Upload: richard-dallaway

Post on 05-Jul-2015

6.856 views

Category:

Technology


3 download

DESCRIPTION

A walk-through of how we approached adding tag suggestions to addsharedo.com

TRANSCRIPT

Page 1: Adding machine learning to a web app

Adding machine learning to a web app

Richard Dallaway @d6y

Page 2: Adding machine learning to a web app

It’s easy, right?1. Get some data

2. Find magic stats & algorithms

3. Predict the future!

Page 3: Adding machine learning to a web app

It’s easy, right?1. Get some data

2. Find magic stats & algorithms

3. Predict the future!

that helps solve the problem

frame the problem explore the data

pilotwhat’s success?

does this help users?UI impact?

behaviour changes?

Page 4: Adding machine learning to a web app

Make it easier for users to #tag todos

Page 6: Adding machine learning to a web app

tag

Page 7: Adding machine learning to a web app

Can we suggest tags as a task is typed in?

Page 8: Adding machine learning to a web app

Can we suggest tags as a task is typed in?

useful

Page 9: Adding machine learning to a web app

Where to start?

from “Algorithms of the Intelligent Web”

Page 10: Adding machine learning to a web app

“Google uses Bayesian filtering the way

Microsoft uses the if statement"

as told to Joel Spolsky

Page 11: Adding machine learning to a web app

A contrived example#home 40% #work 60%

“windows”50%

“fix”50%

“windows”16.6%

“fix”83.4%

p(#home | “fix”, “windows”) ?

Page 12: Adding machine learning to a web app

A contrived example#home 40% #work 60%

“windows”50%

“fix”50%

“windows”16.6%

“fix”83.4%

p(#home | “fix”) = 40% x 50%(40% x 50%) + (83.4% x 60%)

= about 28%

Page 13: Adding machine learning to a web app

A contrived example#home 28% #work 72%

“windows”50%

“fix”50%

“windows”16.6%

“fix”83.4%

p(#home | “fix”, “windows”) = 28% x 50%(28% x 50%) + (16.6% x 72%)

= about 55%

p(#home | “fix”)

Page 14: Adding machine learning to a web app

p(C | e) = P(C) x P(e | C) P(e)

Page 15: Adding machine learning to a web app

p(C | e) = P(C) x P(e | C) P(e)

“the estimation of P(e | C) can be viewed as the central issue in designing learning systems. ”

— Weiss & Kulikowski “Computer Systems that Learn”

Page 17: Adding machine learning to a web app

results of running the model

Page 18: Adding machine learning to a web app

It’s easy, right?1. Explore the data

2. Frame your problem

3. Measure the performance honestly

Page 19: Adding machine learning to a web app

Write it yourself?Find a library?Ask Google to do it for you?

How to build?

...but pilot with offline data first.

Page 20: Adding machine learning to a web app

www.manning.com40% off with bathcamp40

until August 10th

Page 21: Adding machine learning to a web app

Questions?or later: @d6y [email protected]