Real Time Apache Mahout Interview Questions and Answers PDF
• What Is Apache Mahout?Apache™ Mahout is a library of scalable machine-learning algorithms, implemented on top of Apache Hadoop® and using the MapReduce paradigm. Machine learning is a discipline of artificial intelligence focused on enabling machines to learn without being explicitly programmed, and it is commonly used to improve future performance based on previous outcomes.
Once big data is stored on the Hadoop Distributed File System (HDFS), Mahout provides the data science tools to automatically find meaningful patterns in those big data sets. The Apache Mahout project aims to make it faster and easier to turn big data into big information.
• What Does Apache Mahout Do?
Mahout supports four main data science use cases:
o Collaborative filtering – mines user behavior and makes product recommendations (e.g. Amazon recommendations).
o Clustering – takes items in a particular class (such as web pages or newspaper articles) and organizes them into naturally occurring groups, such that items belonging to the same group are similar to each other.
o Classification – learns from existing categorizations and then assigns unclassified items to the best category.
o Frequent item-set mining – analyzes items in a group (e.g. items in a shopping cart or terms in a query session) and then identifies which items typically appear together.
• What Is The History Of Apache Mahout? When Did It Start?
The Mahout project was started by several people involved in the Apache Lucene (open source search) community with an active interest in machine learning and a desire for robust, well-documented, scalable implementations of common machine-learning algorithms for clustering and categorization. The community was initially driven by Ng et al.’s paper “Map-Reduce for Machine Learning on Multicore” (see Resources) but has since evolved to cover much broader machine-learning approaches. Mahout also aims to:
o Build and support a community of users and contributors such that the code outlives any particular contributor’s involvement or any particular company or university’s funding.
o Focus on real-world, practical use cases as opposed to bleeding-edge research or unproven techniques.
o Provide quality documentation and examples.
• What Are The Features Of Apache Mahout?
Although relatively young in open source terms, Mahout already has a large amount of functionality, especially in relation to clustering and CF. Mahout’s primary features are:
o Taste CF. Taste is an open source project for CF started by Sean Owen on SourceForge and donated to Mahout in 2008.
o Several Mapreduce enabled clustering implementations, including k-Means, fuzzy k-Means, Canopy, Dirichlet, and Mean-Shift.
o Distributed Naive Bayes and Complementary Naive Bayes classification implementations.
o Distributed fitness function capabilities for evolutionary programming.
o Matrix and vector libraries.
o Examples of all of the above algorithms.
• How Is It Different From Doing Machine Learning In R Or Sas?
Unless you are highly proficient in Java, the coding itself is a big overhead. There’s no way around it, if you don’t know it already you are going to need to learn Java and it’s not a language that flows! For R users who are used to seeing their thoughts realized immediately the endless declaration and initialization of objects is going to seem like a drag. For that reason I would recommend sticking with R for any kind of data exploration or prototyping and switching to Mahout as you get closer to production.
• Mention Some Machine Learning Algorithms Exposed By Mahout?
Below is a current list of machine learning algorithms exposed by Mahout.
o Collaborative Filtering
o Item-based Collaborative Filtering
o Matrix Factorization with Alternating Least Squares
o Matrix Factorization with Alternating Least Squares on Implicit Feedback
o Classification
o Naive Bayes
o Complementary Naive Bayes
o Random Forest
o Clustering
o Canopy Clustering
o k-Means Clustering
o Fuzzy k-Means
o Streaming k-Means
o Spectral Clustering
o Dimensionality Reduction
o Lanczos Algorithm
o Stochastic SVD
o Principal Component Analysis
o Topic Models
o Latent Dirichlet Allocation
o Miscellaneous
o Frequent Pattern Matching
o RowSimilarityJob
o ConcatMatrices
o Colocations
• What Is The Roadmap For Apache Mahout Version 1.0?
The next major version, Mahout 1.0, will contain major changes to the underlying architecture of Mahout, including:
o Scala: In addition to Java, Mahout users will be able to write jobs using the Scala programming language. Scala makes programming math-intensive applications much easier as compared to Java, so developers will be much more effective.
o Spark & h2o: Mahout 0.9 and below relied on MapReduce as an execution engine. With Mahout 1.0, users can choose to run jobs either on Spark or h2o, resulting in a significant performance increase.
• What Is The Difference Between Apache Mahout And Apache Spark’s Mllib?
The main difference will came from underlying frameworks. In case of Mahout it is Hadoop MapReduce and in case of MLib it is Spark. To be more specific – from the difference in per job overhead
If Your ML algorithm mapped to the single MR job – main difference will be only startup overhead, which is dozens of seconds for Hadoop MR, and let say 1 second for Spark. So in case of model training it is not that important.
Things will be different if your algorithm is mapped to many jobs. In this case we will have the same difference on overhead per iteration and it can be game changer.
Let’s assume that we need 100 iterations, each needed 5 seconds of cluster CPU.
o On Spark: it will take 100*5 + 100*1 seconds = 600 seconds.
o On Hadoop: MR (Mahout) it will take 100*5+100*30 = 3500 seconds.
In the same time Hadoop MR is much more mature framework then Spark and if you have a lot of data, and stability is paramount – I would consider Mahout as serious alternative.
• Mention Some Use Cases Of Apache Mahout?
Commercial Use
o Adobe AMP uses Mahout’s clustering algorithms to increase video consumption by better user targeting.
o Accenture uses Mahout as typical example for their Hadoop Deployment Comparison Study
o AOL use Mahout for shopping recommendations. See slide deck
o Booz Allen Hamilton uses Mahout’s clustering algorithms. See slide deck
o Buzzlogic uses Mahout’s clustering algorithms to improve ad targeting
o Cull.tv uses modified Mahout algorithms for content recommendations
o DataMine Lab uses Mahout’s recommendation and clustering algorithms to improve our clients’ ad targeting.
o Drupal users Mahout to provide open source content recommendation solutions.
o Evolv uses Mahout for its Workforce Predictive Analytics platform.
o Foursquare uses Mahout for its recommendation engine.
o Idealo uses Mahout’s recommendation engine.
o InfoGlutton uses Mahout’s clustering and classification for various consulting projects.
o Intel ships Mahout as part of their Distribution for Apache Hadoop Software.
o Intela has implementations of Mahout’s recommendation algorithms to select new offers to send tu customers, as well as to recommend potential customers to current offers. We are also working on enhancing our offer categories by using the clustering algorithms.
o iOffer uses Mahout’s Frequent Pattern Mining and Collaborative Filtering to recommend items to users.
o Kauli , one of Japanese Ad network, uses Mahout’s clustering to handle click stream data for predicting audience’s interests and intents.
o Linked.In Historically, we have used R for model training. We have recently started experimenting with Mahout for model training and are excited about it – also see Hadoop World slides .
o LucidWorks Big Data uses Mahout for clustering, duplicate document detection, phrase extraction and classification.
o Mendeley uses Mahout to power Mendeley Suggest, a research article recommendation service.
o Mippin uses Mahout’s collaborative filtering engine to recommend news feeds
o Mobage uses Mahout in their analysis pipeline
o Myrrix is a recommender system product built on Mahout.
o NewsCred uses Mahout to generate clusters of news articles and to surface the important stories of the day
o Next Glass uses Mahout
o Predixion Software uses Mahout’s algorithms to build predictive models on big data
o Radoop provides a drag-n-drop interface for big data analytics, including Mahout clustering and classification algorithms
o ResearchGate, the professional network for scientists and researchers, uses Mahout’s recommendation algorithms.
o Sematext uses Mahout for its recommendation engine
o SpeedDate.com uses Mahout’s collaborative filtering engine to recommend member profiles
o Twitter uses Mahout’s LDA implementation for user interest modeling
o Yahoo! Mail uses Mahout’s Frequent Pattern Set Mining.
o 365Media uses Mahout’s Classification and Collaborative Filtering algorithms in its Real-time system named UPTIME and 365Media/Social.
Academic Use
o Dicode project uses Mahout’s clustering and classification algorithms on top of HBase.
o The course Large Scale Data Analysis and Data Mining at TU Berlin uses Mahout to teach students about the parallelization of data mining problems with Hadoop and Mapreduce
o Mahout is used at Carnegie Mellon University, as a comparable platform to GraphLab
o The ROBUST project , co-funded by the European Commission, employs Mahout in the large scale analysis of online community data.
o Mahout is used for research and data processing at Nagoya Institute of Technology , in the context of a large-scale citizen participation platform project, funded by the Ministry of Interior of Japan.
o Several researches within Digital Enterprise Research Institute NUI Galway use Mahout for e.g. topic mining and modeling of large corpora.
o Mahout is used in the NoTube EU project.
• What Are The Different Clustering In Mahout?
Mahout supports several clustering-algorithm implementations, all written in Map-Reduce, each with its own set of goals and criteria:
o Canopy: A fast clustering algorithm often used to create initial seeds for other clustering algorithms.
o k-Means (and fuzzy k-Means): Clusters items into k clusters based on the distance the items are from the centroid, or center, of the previous iteration.
o Mean-Shift: Algorithm that does not require any a priori knowledge about the number of clusters and can produce arbitrarily shaped clusters.
o Dirichlet: Clusters based on the mixing of many probabilistic models giving it the advantage
No comments:
Post a Comment