Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
I, Paul the Octopus
Iʼm good with prediction
Iʼm VERY good with prediction
Iʼm that good...
Now everyone can be Octopus
Google Prediction API
Hi, I’m Paul
Hi, I’m Paul
We want result!!
We want result!!Your headlines aren’t    converting!!!
We want result!!Your headlines aren’t    converting!!!
Split testing is   too slow
Split testing is   too slow        It’s time to play               god
Split testing is   too slow        It’s time to play               god            I will have to             predict the  ...
Predict the conversion rate with    Google Prediction API
ve           ha             t           i            ra           up                         r                            ...
headlines.txt"high", "They Laughed When I Sat Down at The Piano - But When I Started to Play!""low", "Give Black What They...
$ java -cp oacurl-1.2.0.jar com.google.oacurl.Login --scope   https://www.googleapis.com/auth/prediction
$ gsutil cp ./headlines.txt gs://mindvalley/prediction_models/headlines
$ ./oauth-train.sh mindvalley/prediction_models/headlines{  "kind": "prediction#training",  "id": "mindvalley/prediction_m...
#!/bin/bash# Train a prediction model.# Usage: oauth-train.sh MODEL_NAMEID=$1KEY=`cat googlekey`post_data="{"id":"$ID"}"# ...
#!/bin/bash# Train a prediction model.# Usage: oauth-train.sh MODEL_NAMEID=$1KEY=`cat googlekey`post_data="{"id":"mindvall...
$ ./oauth-check-training.sh mindvalley/prediction_models/headlines{  "kind": "prediction#training",  "id": "mindvalley/pre...
$ ./oauth-check-training.sh mindvalley/prediction_models/headlines{  "kind": "prediction#training",  "id": "mindvalley/pre...
$ ./oauth-predict.sh mindvalley/prediction_models/headlines ""Be awesome likeWu Han""{  "kind": "prediction#output",  "id"...
I’m a happy man
I’m a happy man     @arzumy
I’m a happy man     @arzumy  http://bnorpr.gv.my
12th - 13th October 2011 http://hitb.org/hackweekday
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
I, Paul the Octopus
Upcoming SlideShare
Loading in …5
×

I, Paul the Octopus

787 views

Published on

Introduction to Google Prediction API
WebcampKL 9
28th September 2011

Visit http://webcamp.my/

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

I, Paul the Octopus

  1. 1. I, Paul the Octopus
  2. 2. Iʼm good with prediction
  3. 3. Iʼm VERY good with prediction
  4. 4. Iʼm that good...
  5. 5. Now everyone can be Octopus
  6. 6. Google Prediction API
  7. 7. Hi, I’m Paul
  8. 8. Hi, I’m Paul
  9. 9. We want result!!
  10. 10. We want result!!Your headlines aren’t converting!!!
  11. 11. We want result!!Your headlines aren’t converting!!!
  12. 12. Split testing is too slow
  13. 13. Split testing is too slow It’s time to play god
  14. 14. Split testing is too slow It’s time to play god I will have to predict the FUTURE
  15. 15. Predict the conversion rate with Google Prediction API
  16. 16. ve ha t i ra up r a t s T For is Pr m bar h Gro Sta o n cr ofi ad e a e Th s e E Whic ou ? t Get in ati I M s Hav The s - s s Y C an i magHow sand Of or rra ut chs th ny st a b ma i Th ou D o A I nve Emb te - Sto e n w Y ou of E ver W ri Our and! nl y m Do Ty pes h ild nt To i nst le L u t o ix r C o Wa Aga Litt - b S s You Wh t mmi th a Pay o Doe eople We C wi e" rac at Fu ll P s G To mes onder 0, p Cri o W a $5 Tri The to D xtr Years d an E orl How s Two ! T he W e l " Her derfu st ake n in hir t i o S A Won 0 0 M r eas aw ay $1 0,0 test ath At A re a h e H o od e G i n t ch! lly ney l y G Th an Ri a Leg t Mo eal M e R The T o B B a nks Abou Are r? one y are ob ct You ette You ave M l D T o R ng Fa h at L L ike t S t ifu ow li r W iness le on eau e H rt co ve us op D l B liv A Sta Dis e a B n e g P sband s Gir le en A To it M aki e Hu lai n eop Eat Pla n How To Wr of a P nce P ng e s W hos e Bei mpl How t ad ue t Si ? e cre Wives y M nfl hou h? is ome e S o ove r nd I wit lis h w T h ver c Th t c a ks g c o O ice Dis ends har in En t oma F oll to Adv New F ri he S s r S ou Wan t a T e ou Y H ow Win w i th i s tak i n Y - if o You o w t Sw im hi s M de" rries c h d g Ho o xpl y Wo Whi enin w to ak e T "E - v y! Car e Ho M s ne s E Da n Y ou F ood at Mo u ble O ne i ng Law Do ome augh n Tro y in d Wed Bette r S hy L Ski Memor r You s of s W C a n i a r y On t in ute age You amil ved M n ed e cre D ay 3 0 M o Man e F mpro ppe 2 S me or t Fiv I I ha u 1 t hy g So d f i er w his ls Yo eal orkin oun - Eas d Ho e T Tel g W t W llb er oul f pos ok e in i Spe oth y C es Sup Bo t o B to Qu nce mo The uick! com e S t ce F ree ret Want A udi Hair ugh ors Q Roy Sec ho an r Tho Od Is lls - he W ng You er n he Ro
  17. 17. headlines.txt"high", "They Laughed When I Sat Down at The Piano - But When I Started to Play!""low", "Give Black What They Deserve""high", "Profits That Lie Hidden In Your Farm""high", "How I Made a Fortune With a Fool Idea""high", "Thousands Have This Priceless Gift - but Never Discover It!""low", "Do You Do Any Of These Embarrassing Things?""high", "Six Types of Investors - Which Group Are You In?""high", "Does Your Child Ever Embarrass You?""low", "To People Who Want To Write - but Cant Get Started""high", "The Crimes We Commit Against Our Stomachs""high", "How to Do Wonders with a Little Land!""high", """"Heres an Extra $50, Grace"""""high", "A Wonderful Two Years Trip at Full Pay - but only men with imagination can t"low", "A $10,000 Mistake!""low", "The Greatest reason in The World""high", "The Man in the Hathaway Shirt""high", "Dare To Be Rich!""high", "How To Rob Banks Legally""high", "A Startling Fact About Money""low", "How To Discover What You Are Really Good At""high", "How To Write a Business Letter?""high", "The Secrets of Making People Like You""high", "Advice to Wives Whose Husbands Dont Save Money""high", "How a New Discovery Made a Plain Girl Beautiful""low", "How to Win Friends and Influence People""high", "How to Swim with The Sharks without Being Eaten Alive"
  18. 18. $ java -cp oacurl-1.2.0.jar com.google.oacurl.Login --scope https://www.googleapis.com/auth/prediction
  19. 19. $ gsutil cp ./headlines.txt gs://mindvalley/prediction_models/headlines
  20. 20. $ ./oauth-train.sh mindvalley/prediction_models/headlines{ "kind": "prediction#training", "id": "mindvalley/prediction_models/headlines", "selfLink": "https://www.googleapis.com/prediction/v1.2/training/mindvalley/prediction_models/headlines"}
  21. 21. #!/bin/bash# Train a prediction model.# Usage: oauth-train.sh MODEL_NAMEID=$1KEY=`cat googlekey`post_data="{"id":"$ID"}"# Train the model.java -cp ./oacurl-1.2.0.jar com.google.oacurl.Fetch -X POST -t JSON "https://www.googleapis.com/prediction/v1.3/training?key=$KEY" <<< $post_dataecho
  22. 22. #!/bin/bash# Train a prediction model.# Usage: oauth-train.sh MODEL_NAMEID=$1KEY=`cat googlekey`post_data="{"id":"mindvalley/prediction_models/headlines"}"# Train the model.java -cp ./oacurl-1.2.0.jar com.google.oacurl.Fetch -X POST -t JSON "https://www.googleapis.com/prediction/v1.3/training?key=$KEY" <<< $post_dataecho
  23. 23. $ ./oauth-check-training.sh mindvalley/prediction_models/headlines{ "kind": "prediction#training", "id": "mindvalley/prediction_models/headlines", "selfLink": "https://www.googleapis.com/prediction/v1.2/training/mindvalley/prediction_models/headlines", "modelInfo": { "modelType": "classification", "classificationAccuracy": 0.95 }, "trainingStatus": "DONE"}
  24. 24. $ ./oauth-check-training.sh mindvalley/prediction_models/headlines{ "kind": "prediction#training", "id": "mindvalley/prediction_models/headlines", "selfLink": "https://www.googleapis.com/prediction/v1.2/training/mindvalley/prediction_models/headlines", "modelInfo": { "modelType": "regression", "classificationAccuracy": 0.95 }, "trainingStatus": "DONE"}0,"They Laughed When I Sat Down at The Piano - But When I Started to Play!"20,"Give Black What They Deserve"45,"How I Made a Fortune With a Fool Idea"67,"How to Swim with The Sharks without Being Eaten Alive"
  25. 25. $ ./oauth-predict.sh mindvalley/prediction_models/headlines ""Be awesome likeWu Han""{ "kind": "prediction#output", "id": "mindvalley/prediction_models/headlines", "selfLink": "https://www.googleapis.com/prediction/v1.3/training/mindvalley/prediction_models/headlines/predict", "outputLabel": "low", "outputMulti": [ { "label": "high", "score": 0.334130 }, { "label": "low", "score": 0.418339 } ]}
  26. 26. I’m a happy man
  27. 27. I’m a happy man @arzumy
  28. 28. I’m a happy man @arzumy http://bnorpr.gv.my
  29. 29. 12th - 13th October 2011 http://hitb.org/hackweekday

×