Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Adding machine learning to a web app

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.

Richard Dallaway

August 03, 2011
Tweet

More Decks by Richard Dallaway

Other Decks in Technology

Transcript

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

    stats & algorithms 3. Predict the future!
  2. 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?
  3. tag

  4. A contrived example #home 40% #work 60% “windows” 50% “fix”

    50% “windows” 16.6% “fix” 83.4% p(#home | “fix”, “windows”) ?
  5. 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%
  6. 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”)
  7. 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”
  8. It’s easy, right? 1. Explore the data 2. Frame your

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

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