28,79 €
As more and more organizations are discovering the use of big data analytics, interest in platforms that provide storage, computation, and analytic capabilities has increased. Apache Mahout caters to this need and paves the way for the implementation of complex algorithms in the field of machine learning to better analyse your data and get useful insights into it.
Starting with the introduction of clustering algorithms, this book provides an insight into Apache Mahout and different algorithms it uses for clustering data. It provides a general introduction of the algorithms, such as K-Means, Fuzzy K-Means, StreamingKMeans, and how to use Mahout to cluster your data using a particular algorithm. You will study the different types of clustering and learn how to use Apache Mahout with real world data sets to implement and evaluate your clusters.
This book will discuss about cluster improvement and visualization using Mahout APIs and also explore model-based clustering and topic modelling using Dirichlet process. Finally, you will learn how to build and deploy a model for production use.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 116
Veröffentlichungsjahr: 2015
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2015
Production reference: 1240915
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-443-6
www.packtpub.com
Author
Ashish Gupta
Reviewers
Siva Prakash
Tharindu Rusira
Commissioning Editor
Akram Hussain
Acquisition Editors
Vivek Anantharaman
Divya Poojari
Content Development Editor
Susmita Sabat
Technical Editor
Namrata Patil
Copy Editor
Merilyn Pereira
Project Coordinator
Judie Jose
Proofreader
Safis Editng
Indexer
Rekha Nair
Graphics
Abhinash Sahu
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph
Ashish Gupta has been working in the field of software development for the last 10 years. He has worked in companies such as SAP Labs and Caterpillar as a software developer. While working for a start-up predicting potential customers for new fashion apparels using social media, he developed an interest in the field of machine learning. Since then, he has worked on big data technologies and machine learning for different industries, including retail, finance, insurance, and so on. He is passionate about learning new technologies and sharing that knowledge with others. He is the author of the book, Learning Apache Mahout Classification, Packt Publishing. He has organized many boot camps for Apache Mahout and the Hadoop ecosystem.
First of all, I would like to thank the open source communities for their continuous efforts in developing great software. I would also like to thank the reviewers of this book.
Nothing can be accomplished without the support of family, friends, and loved ones; I would like to thank them, especially my wife and son, for their continuous support while writing this book.
Siva Prakash has been working in the field of software development for the last 7 years. He is currently working in CISCO, Bangalore. He has extensive development experience in desktop, mobile, and web-based applications in ERP, telecom, and the digital media industry. He is passionate about learning new technologies and sharing knowledge with others. He has worked on big data technologies for the digital media industry. He loves trekking, traveling, music, reading books, and blogging.
He is available on LinkedIn at https://www.linkedin.com/in/techsivam.
Tharindu Rusira is currently working as a graduate research assistant at the School of Computing, University of Utah while pursuing his doctoral studies in computer science, specializing in compiler technology for performance optimization. He is also passionate about machine learning and its applications in a wide spectrum of real-world problems.
Tharindu is available on LinkedIn at https://www.linkedin.com/in/trusira.
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
With the progress in hardware, our storage capacity has increased now, and because of this, there are many organizations that want to store all types of events for analytical purpose. This is giving birth to a new area of machine learning. The field of machine learning is very complex, and writing those algorithms is not a piece of cake. Apache Mahout provides us with readymade algorithms in the area of machine learning and saves us from the complex task of algorithm implementation.
The intention of this book is to cover clustering algorithms available in Apache Mahout. Whether you have already worked on clustering algorithms using some other tool, or whether you are completely new to this field, this book will help you. So, start reading this book, explore the clustering algorithms in a strong, community-supported, open source, and one of the most popular Apache projects—Apache Mahout.
Chapter 1, Understanding Clustering, explains clustering in general. This chapter will further discuss the different distance matrices and how to calculate them.
Chapter 2, Understanding K-means Clustering, introduces K-means clustering and how Mahout can be used for K-means clustering algorithms.
Chapter 3, Understanding Canopy Clustering, introduces Canopy clustering and its uses in Apache Mahout.
Chapter 4, Understanding the Fuzzy K-means Algorithm Using Mahout, talks about the Fuzzy K-means algorithm and how this algorithm works as a preprocessing step for K-means. We will further discuss how to use Mahout for the Fuzzy K-means algorithm.
Chapter 5, Understanding Model-based Clustering, discusses model-based clustering. This chapter further discusses the topic of modeling using Dirichlet clustering.
Chapter 6, Understanding Streaming K-means, introduces the Streaming K-means algorithm, which is used for streaming data. We will further discuss how Mahout can be used for Streaming K-means.
Chapter 7, Spectral Clustering, introduces spectral clustering and how Mahout has implemented spectral clustering.
Chapter 8, Improving Cluster Quality, covers the steps that should be followed to improve cluster quality once you are ready with your clustering algorithm, in detail. It also discusses what techniques Mahout provides to improve cluster quality.
Chapter 9, Creating a Cluster Model for Production, introduces the techniques that should be followed in a production environment while applying the clustering algorithm.
To use the examples in this book, you should have the following software installed in your system:
If you are a data scientist who has some experience with the Hadoop ecosystem and machine learning methods and want to try out clustering on large datasets using Mahout, this book is ideal for you. Knowledge of Java is essential.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Once done, you can test it by typing the command – mahout and this will show you the same screen as shown in preceding figure."
A block of code is set as follows:
Any command-line input or output is written as follows:
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the Keys and Access Tokens tab, and you will find ConsumerKey and ConsumerSecret under Application Settings."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.
To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.
To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]> with a link to the suspected pirated material.
We appreciate your help in protecting our authors and our ability to bring you valuable content.
If you have a problem with any aspect of this book, you can contact us at <[email protected]>, and we will do our best to address the problem.
Reduced hardware cost is giving us the opportunity to save a lot of data. We are now generating a lot of data, and this data can generate interesting patterns for various industries, which is why machine learning and data mining enthusiasts are responsible for this data.