Richard Dallaway
August 03, 2011
430

# Adding machine learning to a web app

Pretty much the simplest thing you can do to get started with machine learning in a web app. These are my slides from BathCamp AI night.

August 03, 2011

## Transcript

2. ### It’s easy, right? 1. Get some data 2. Find magic

stats & algorithms 3. Predict the future!
3. ### 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 pilot what’s success? does this help users? UI impact? behaviour changes?

5. None

useful

10. ### “Google uses Bayesian filtering the way Microsoft uses the if

statement" as told to Joel Spolsky
11. ### A contrived example #home 40% #work 60% “windows” 50% “fix”

50% “windows” 16.6% “fix” 83.4% p(#home | “fix”, “windows”) ?
12. ### 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%
13. ### 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”)

15. ### 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”

18. ### It’s easy, right? 1. Explore the data 2. Frame your

problem 3. Measure the performance honestly
19. ### Write it yourself? Find a library? Ask Google to do

it for you? How to build? ...but pilot with offline data first.