apache mahout
play

Apache Mahout Making data analysis easy Isabel Drost Nighttime: - PowerPoint PPT Presentation

Apache Mahout Making data analysis easy Isabel Drost Nighttime: Co-Founder, committer Apache Mahout. Organiser of Berlin Hadoop Get Together. Daytime: Software developer. Guest lecturer at TU Berlin. Co-Organiser Berlin Buzzwords 2010.


  1. Apache Mahout Making data analysis easy

  2. Isabel Drost Nighttime: Co-Founder, committer Apache Mahout. Organiser of Berlin Hadoop Get Together. Daytime: Software developer. Guest lecturer at TU Berlin. Co-Organiser Berlin Buzzwords 2010.

  3. ● “Mastering Data-Intensive Collaboration and Decision Making” ● EU funded research project – Number of partners: 8 – Coordinator: Research Academic Computer Technology Institute (CTI), Greece

  4. Hello Devoxx!

  5. Hello Devoxx!

  6. Hello Devoxx!

  7. Hello Devoxx!

  8. Hello Devoxx!

  9. Machine learning background? Hello Devoxx!

  10. Hello Devoxx!

  11. Agenda ● Data Mining/ Machine Learning? ● Why is scaling hard? ● Going beyond simple statistics.

  12. Data Mining Applications ● Marketing. ● Surveillance. ● Fraud Detection. ● Scientific Discovery. ● Discover items usually purchased together. = Extracting patterns from data.

  13. Machine Learning Applications ● E-Mail spam classification. ● News-topic discovery. ● Building recommender systems. = Extracting prediction models from data.

  14. Machine learning – what's that?

  15. Image by John Leech, from: The Comic History of Rome by Gilbert Abbott A Beckett. Bradbury, Evans & Co, London, 1850s Archimedes taking a Warm Bath

  16. Archimedes model of nature

  17. June 25, 2008 by chase-me http://www.flickr.com/photos/sasy/2609508999

  18. An SVM's model of nature

  19. The challenge

  20. Mission Provide scalable data mining algorithms.

  21. http://www.flickr.com/photos/honou/2936937247/

  22. HowTo: From data to information.

  23. January 3, 2006 by Matt Callow http://www.flickr.com/photos/blackcustard/81680010

  24. http://www.flickr.com/photos/29143375@N05/3344809375/in/photostream/ http://www.flickr.com/photos/redux/409356158/

  25. http://www.flickr.com/photos/disowned/1158260369/ The HDFS filesystem is not restricted to MapReduce jobs . It can be used for other applications, many of which are under way at Apache. The list includes the HBase database , the Apache Mahout machine learning system , and matrix operations .

  26. http://www.flickr.com/photos/redux/409356158/in/photostream/ http://www.flickr.com/photos/29143375@N05/3344809375/in/photostream/ http://www.flickr.com/photos/noodlepie/2675987121/ http://www.flickr.com/photos/topsy/204929063/

  27. http://www.flickr.com/photos/29143375@N05/3344809375/in/photostream/ http://www.flickr.com/photos/redux/409356158/

  28. From data to information. From data to information. ● Collect data and define your learning problem. ● Data preparation. ● Training a prediction model. ● Checking the performance of your model.

  29. ● Remove noise.

  30. ● Remove noise. ● Convert text to vectors.

  31. From texts to vectors

  32. If we looked at two words only: Sunny weather High performance computing

  33. Aaron Zuse

  34. Binary bag of words ● Imagine a n-dimensional space. ● Each dimension = one possible word in texts. ● Entry in vector is one, if word occurs in text. b i , j = { 0 else } 1 ∀ x i ∈ d j ● Problem: ● Number of word occurrences not accounted for.

  35. Term Frequency ● Imagine a n-dimensional space. ● Each dimension = one possible word in texts. ● Entry in vector equal to the words frequency. b i , j = n i , j ● Problem: ● Common words dominate vectors.

  36. TF with stop wording ● Imagine a n-dimensional space. ● Each dimension = one possible word in texts. ● Filter stopwords. ● Entry in vector equal to the words frequency. b i , j = n i , j ● Problem: ● Common and uncommon words with same weight.

  37. TF- IDF ● Imagine a n-dimensional space. ● Each dimension = one possible word in texts. ● Filter stopwords. ● Entry in vector equal to the weighted frequency. ∣ D ∣ b i , j = n i , j × log  ∣ { d : t i ∈ d } ∣ ● Problem: ● Long texts get larger values.

  38. Normalized TF- IDF ● Imagine a n-dimensional space. ● Each dimension = one possible word in texts. ● Filter stopwords. ● Entry in vector equal to the weighted frequency. ● Normalize vectors. n i , j ∣ D ∣ b i , j = × log  ∣ { d : t i ∈ d } ∣ ∑ k n k , j ● Problem: ● Additional domain knowledge ignored.

  39. Reality ● There are a few more words in news. ● Use all relevant features/ signals available. ● Words. ● Header fields. ● Characteristics of publishing url. ● … ● Usually pipeline of feature extractors.

  40. From data to information. ● Collect data and define your learning problem. ● Data preparation. ● Training a prediction model. ● Checking the performance of your model.

  41. Step 2: Similarity

  42. Euclidian

  43. Euclidian

  44. Euclidian Cosine

  45. Step 3: Clustering

  46. Until stable.

  47. Reality ● Seed selection. ● Choice of initial k. ● Continuous updates. ● Regular addition of clusters.

  48. From data to information. ● Collect data and define your learning problem. ● Data preparation. ● Training a prediction model. ● Checking the performance of your model.

  49. Evaluation ● Compare against gold standard. ● Use quality measures. ● Manual inspection.

  50. From data to information. ● Collect data and define your learning problem. ● Data preparation. ● Training a prediction model. ● Checking the performance of your model.

  51. http://www.flickr.com/photos/generated/943078008/

  52. What else does Mahout have to offer.

  53. Identify dominant topics ● Given a dataset of texts, identify main topics. Algorithms: Parallel LDA ● Examples: ● Dominant topics in set of mails. ● Identify news message categories.

  54. Assign items to defined categories. ● Given pre-defined categories, assign items to it.

  55. By freezelight, http://www.flickr.com/photos/63056612@N00/155554663/

  56. Recommendation mining. ● Collaborative filtering.

  57. Show most relevant ads

  58. Show most relevant ads

  59. Recommending places http://www.flickr.com/photos/jfclere/4061801735 http://www.flickr.com/photos/25831000@N08/4156701164 http://www.flickr.com/photos/claudio_ar/2643165035/ http://www.flickr.com/photos/philfotos/4510197138/ http://www.flickr.com/photos/alainpicard/4175214747 http://www.flickr.com/photos/joachim_s_mueller/2417313476/ http://www.flickr.com/photos/claudio_ar/2643180457 http://www.flickr.com/photos/sebastian_bergmann/1244514498 Thanks to Falko Menge for the pictures of Brussels.

  60. Recommending people

  61. Recommendation mining. ● Online collaborative filtering on single machine. ● Offline Map/Reduce based version. ● Content similarity can be integrated. ● Based on former Taste project.

  62. Frequent pattern mining ● Given groups of items, find commonly co- occurring items. ● Examples: ● In shopping carts find items bought together. ● In query logs find queries issued in one session.

  63. By crypto, http://www.flickr.com/photos/crypto/3201254932/sizes/l/ By libraryman, http://www.flickr.com/photos/libraryman/78337046/sizes/l/

  64. By quinnanya, http://www.flickr.com/photos/quinnanya/2806883231/ By crypto, http://www.flickr.com/photos/crypto/3201254932/sizes/l/ By libraryman, http://www.flickr.com/photos/libraryman/78337046/sizes/l/

  65. Requirements to get started March 14, 2009 by Artful Magpie http://www.flickr.com/photos/kmtucker/3355551036/

  66. Why go for Apache Mahout?

  67. Jumpstart your project with proven code. January 8, 2008 by dreizehn28 http://www.flickr.com/photos/1328/2176949559

  68. Discuss ideas and problems online. November 16, 2005 [phil h] http://www.flickr.com/photos/hi-phi/64055296

  69. Become a committer.

  70. Sebastian Schelter Jake Mannix Benson Margulies Robin Anil David Hall AbdelHakim Deneche Karl Wettin Sean Owen Grant Ingersoll Otis Gospodnetic Drew Farris Jeff Eastman Ted Dunning Become a committer: Isabel Drost Of Apache Mahout Emeritus: Niranjan Balasubramanian Erik Hatcher Ozgur Yilmazel Dawid Weiss

  71. *-user@mahout.apache.org *-dev@mahout.apache.org Interest in solving hard problems. Being part of lively community. Engineering best practices. Bug reports, patches, features. Documentation, code, examples. Image by: Patrick McEvoy

  72. Thanks to Tim Lossen et. al for taking amazing pictures of the conf.

  73. Berlin Buzzwords 2011 Search/ Store/ Scale May/ June 2011 Thanks to Tim Lossen et. al for taking amazing pictures of the conf.

  74. *-user@mahout.apache.org *-dev@mahout.apache.org Interest in solving hard problems. Being part of lively community. Engineering best practices. Bug reports, patches, features. Documentation, code, examples. Image by: Patrick McEvoy

Recommend


More recommend