Share E-Book

Mastering Java Machine Learning (Kamath, Uday, Choppella, Krishna) (z-library.sk, 1lib.sk, z-lib.sk)

Author

,
,
,

Rating 3.5 AI initial rating

Log in to rate

Java
Language English

No Description

Format PDF
Size 15.5 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
[ 1 ]
Page 2
Mastering Java Machine Learning Mastering and implementing advanced techniques in machine learning Dr. Uday Kamath Krishna Choppella BIRMINGHAM - MUMBAI
Page 3
Mastering Java Machine Learning Copyright © 2017 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 authors, 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: June 2017 Production reference: 1290617 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78588-051-3 www.packtpub.com
Page 4
Credits Authors Dr. Uday Kamath Krishna Choppella Reviewers Samir Sahli Prashant Verma Commissioning Editor Veena Pagare Acquisition Editor Divya Poojari Content Development Editor Mayur Pawanikar Technical Editor Vivek Arora Copy Editor Safis Editing Project Coordinator Nidhi Joshi Proofreader Safis Editing Indexer Francy Puthiry Graphics Tania Dutta Production Coordinator Arvindkumar Gupta Cover Work Arvindkumar Gupta
Page 5
(This page has no text content)
Page 6
Foreword Dr. Uday Kamath is a volcano of ideas. Every time he walked into my office, we had fruitful and animated discussions. I have been a professor of computer science at George Mason University (GMU) for 15 years, specializing in machine learning and data mining. I have known Uday for five years, first as a student in my data mining class, then as a colleague and co-author of papers and projects on large-scale machine learning. While a chief data scientist at BAE Systems Applied Intelligence, Uday earned his PhD in evolutionary computation and machine learning. As if having two high-demand jobs was not enough, Uday was unusually prolific, publishing extensively with four different people in the computer science faculty during his tenure at GMU, something you don't see very often. Given this pedigree, I am not surprised that less than four years since Uday's graduation with a PhD, I am writing the foreword for his book on mastering advanced machine learning techniques with Java. Uday's thirst for new stimulating challenges has struck again, resulting in this terrific book you now have in your hands. This book is the product of his deep interest and knowledge in sound and well-grounded theory, and at the same time his keen grasp of the practical feasibility of proposed methodologies. Several books on machine learning and data analytics exist, but Uday's book closes a substantial gap—the one between theory and practice. It offers a comprehensive and systematic analysis of classic and advanced learning techniques, with a focus on their advantages and limitations, practical use and implementations. This book is a precious resource for practitioners of data science and analytics, as well as for undergraduate and graduate students keen to master practical and efficient implementations of machine learning techniques.
Page 7
The book covers the classic techniques of machine learning, such as classification, clustering, dimensionality reduction, anomaly detection, semi-supervised learning, and active learning. It also covers advanced and recent topics, including learning with stream data, deep learning, and the challenges of learning with big data. Each chapter is dedicated to a topic and includes an illustrative case study, which covers state-of-the-art Java-based tools and software, and the entire knowledge discovery cycle: data collection, experimental design, modeling, results, and evaluation. Each chapter is self-contained, providing great flexibility of usage. The accompanying website provides the source code and data. This is truly a gem for both students and data analytics practitioners, who can experiment first-hand with the methods just learned or deepen their understanding of the methods by applying them to real-world scenarios. As I was reading the various chapters of the book, I was reminded of the enthusiasm Uday has for learning and knowledge. He communicates the concepts described in the book with clarity and with the same passion. I am positive that you, as a reader, will feel the same. I will certainly keep this book as a personal resource for the courses I teach, and strongly recommend it to my students. Dr. Carlotta Domeniconi Associate Professor of Computer Science, George Mason University
Page 8
About the Authors Dr. Uday Kamath is the chief data scientist at BAE Systems Applied Intelligence. He specializes in scalable machine learning and has spent 20 years in the domain of AML, fraud detection in financial crime, cyber security, and bioinformatics, to name a few. Dr. Kamath is responsible for key products in areas focusing on the behavioral, social networking and big data machine learning aspects of analytics at BAE AI. He received his PhD at George Mason University, under the able guidance of Dr. Kenneth De Jong, where his dissertation research focused on machine learning for big data and automated sequence mining. I would like to thank my friend, Krishna Choppella, for accepting the offer to co-author this book and being an able partner on this long but satisfying journey. Heartfelt thanks to our reviewers, especially Dr. Samir Sahli for his valuable comments, suggestions, and in-depth review of the chapters. I would like to thank Professor Carlotta Domeniconi for her suggestions and comments that helped us shape various chapters in the book. I would also like to thank all the Packt staff, especially Divya Poojari, Mayur Pawanikar, and Vivek Arora, for helping us complete the tasks in time. This book required making a lot of sacrifices on the personal front and I would like to thank my wife, Pratibha, and our nanny, Evelyn, for their unconditional support. Finally, thanks to all my lovely teachers and professors for not only teaching the subjects, but also instilling the joy of learning. Krishna Choppella builds tools and client solutions in his role as a solutions architect for analytics at BAE Systems Applied Intelligence. He has been programming in Java for 20 years. His interests are data science, functional programming, and distributed computing.
Page 9
About the Reviewers Samir Sahli was awarded a BSc degree in applied mathematics and information sciences from the University of Nice Sophia-Antipolis, France, in 2004. He received MSc and PhD degrees in physics (specializing in optics/photonics/image science) from University Laval, Quebec, Canada, in 2008 and 2013, respectively. During his graduate studies, he worked with Defence Research and Development Canada (DRDC) on the automatic detection and recognition of targets in aerial imagery, especially in the context of uncontrolled environment and sub-optimal acquisition conditions. He has worked since 2009 as a consultant for several companies based in Europe and North America specializing in the area of Intelligence, Surveillance, and Reconnaissance (ISR) and in remote sensing. Dr. Sahli joined McMaster Biophotonics in 2013 as a postdoctoral fellow. His research was in the field of optics, image processing, and machine learning. He was involved in several projects, such as the development of a novel generation of gastrointestinal tract imaging device, hyperspectral imaging of skin erythema for individualized radiotherapy treatment, and automatic detection of the precancerous Barrett's esophageal cell using fluorescence lifetime imaging microscopy and multiphoton microscopy. Dr. Sahli joined BAE Systems Applied Intelligence in 2015. He has since worked as a data scientist to develop analytics models to detect complex fraud patterns and money laundering schemes for insurance, banking, and governmental clients using machine learning, statistics, and social network analysis tools.
Page 10
Prashant Verma started his IT career in 2011 as a Java developer in Ericsson, working in the telecom domain. After a couple of years of Java EE experience, he moved into the big data domain and has worked on almost all of the popular big data technologies such as Hadoop, Spark, Flume, Mongo, Cassandra, and so on. He has also played with Scala. Currently, he works with QA Infotech as a lead data engineer, working on solving e-learning problems with analytics and machine learning. Prashant has worked for many companies, such as Ericsson and QA Infotech, with domain knowledge of telecom and e-learning. He has also worked as a freelance consultant in his free time. I want to thank Packt Publishing for giving me the chance to review the book, as well as my employer and my family for their patience while I was busy working on this book.
Page 11
www.PacktPub.com eBooks, discount offers, and more 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 customercare@packtpub.com 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://www.packtpub.com/mapt Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career. Why subscribe? • Fully searchable across every book published by Packt • Copy and paste, print, and bookmark content • On demand and accessible via a web browser
Page 12
Customer Feedback Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1785880519. If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
Page 13
(This page has no text content)
Page 14
Dedicated to my parents, Krishna Kamath and Bharathi Kamath, my wife, Pratibha Shenoy, and the kids, Aaroh and Brandy - Dr. Uday Kamath To my parents Krishna Choppella
Page 15
(This page has no text content)
Page 16
[ i ] Table of Contents Preface xiii Chapter 1: Machine Learning Review 1 Machine learning – history and definition 3 What is not machine learning? 4 Machine learning – concepts and terminology 5 Machine learning – types and subtypes 9 Datasets used in machine learning 12 Machine learning applications 15 Practical issues in machine learning 16 Machine learning – roles and process 18 Roles 18 Process 18 Machine learning – tools and datasets 22 Datasets 25 Summary 26 Chapter 2: Practical Approach to Real-World Supervised Learning 29 Formal description and notation 31 Data quality analysis 32 Descriptive data analysis 32 Basic label analysis 32 Basic feature analysis 33 Visualization analysis 33 Univariate feature analysis 33 Multivariate feature analysis 34 Data transformation and preprocessing 34 Feature construction 35 Handling missing values 35
Page 17
Table of Contents [ ii ] Outliers 37 Discretization 38 Data sampling 39 Is sampling needed? 39 Undersampling and oversampling 40 Training, validation, and test set 41 Feature relevance analysis and dimensionality reduction 46 Feature search techniques 46 Feature evaluation techniques 46 Filter approach 46 Wrapper approach 51 Embedded approach 51 Model building 52 Linear models 52 Linear Regression 52 Naïve Bayes 54 Logistic Regression 55 Non-linear models 56 Decision Trees 56 K-Nearest Neighbors (KNN) 59 Support vector machines (SVM) 61 Ensemble learning and meta learners 65 Bootstrap aggregating or bagging 66 Boosting 67 Model assessment, evaluation, and comparisons 68 Model assessment 68 Model evaluation metrics 69 Confusion matrix and related metrics 70 ROC and PRC curves 71 Gain charts and lift curves 72 Model comparisons 72 Comparing two algorithms 73 Comparing multiple algorithms 75 Case Study – Horse Colic Classification 76 Business problem 77 Machine learning mapping 77 Data analysis 78 Label analysis 78 Features analysis 78 Supervised learning experiments 80 Weka experiments 80 RapidMiner experiments 83 Results, observations, and analysis 92 Summary 93 References 95
Page 18
Table of Contents [ iii ] Chapter 3: Unsupervised Machine Learning Techniques 97 Issues in common with supervised learning 98 Issues specific to unsupervised learning 99 Feature analysis and dimensionality reduction 99 Notation 99 Linear methods 100 Principal component analysis (PCA) 100 Random projections (RP) 103 Multidimensional Scaling (MDS) 104 Nonlinear methods 105 Kernel Principal Component Analysis (KPCA) 105 Manifold learning 106 Clustering 108 Clustering algorithms 108 k-Means 108 DBSCAN 109 Mean shift 110 Expectation maximization (EM) or Gaussian mixture modeling (GMM) 112 Hierarchical clustering 113 Self-organizing maps (SOM) 115 Spectral clustering 116 Affinity propagation 118 Clustering validation and evaluation 120 Internal evaluation measures 120 External evaluation measures 122 Outlier or anomaly detection 123 Outlier algorithms 123 Statistical-based 124 Distance-based methods 125 Density-based methods 126 Clustering-based methods 129 High-dimensional-based methods 130 One-class SVM 132 Outlier evaluation techniques 134 Supervised evaluation 134 Unsupervised evaluation 135 Real-world case study 135 Tools and software 135 Business problem 136 Machine learning mapping 136 Data collection 136 Data quality analysis 136 Data sampling and transformation 137 Feature analysis and dimensionality reduction 138 Observations on feature analysis and dimensionality reduction 143
Page 19
Table of Contents [ iv ] Clustering models, results, and evaluation 143 Observations and clustering analysis 145 Outlier models, results, and evaluation 146 Summary 148 References 149 Chapter 4: Semi-Supervised and Active Learning 153 Semi-supervised learning 155 Representation, notation, and assumptions 156 Semi-supervised learning techniques 157 Self-training SSL 157 Co-training SSL or multi-view SSL 158 Cluster and label SSL 159 Transductive graph label propagation 161 Transductive SVM (TSVM) 163 Case study in semi-supervised learning 165 Tools and software 165 Business problem 167 Machine learning mapping 168 Data collection 168 Data quality analysis 168 Data sampling and transformation 168 Datasets and analysis 168 Experiments and results 170 Active learning 172 Representation and notation 173 Active learning scenarios 173 Active learning approaches 173 Uncertainty sampling 174 Version space sampling 175 Query by disagreement (QBD) 175 Advantages and limitations 177 Data distribution sampling 178 How does it work? 178 Advantages and limitations 179 Case study in active learning 180 Tools and software 180 Business problem 180 Machine learning mapping 180 Data Collection 180 Data sampling and transformation 181 Feature analysis and dimensionality reduction 181 Models, results, and evaluation 182 Pool-based scenarios 183 Stream-based scenarios 184
Page 20
Table of Contents [ v ] Analysis of active learning results 186 Summary 187 References 188 Chapter 5: Real-Time Stream Machine Learning 191 Assumptions and mathematical notations 192 Basic stream processing and computational techniques 193 Stream computations 194 Sliding windows 195 Sampling 196 Concept drift and drift detection 197 Data management 198 Partial memory 198 Full memory 199 Detection methods 199 Adaptation methods 201 Incremental supervised learning 202 Modeling techniques 202 Linear algorithms 202 Non-linear algorithms 205 Ensemble algorithms 207 Validation, evaluation, and comparisons in online setting 211 Model validation techniques 211 Incremental unsupervised learning using clustering 214 Modeling techniques 215 Partition based 215 Hierarchical based and micro clustering 216 Density based 220 Grid based 222 Validation and evaluation techniques 224 Unsupervised learning using outlier detection 229 Partition-based clustering for outlier detection 229 Inputs and outputs 229 How does it work? 230 Advantages and limitations 230 Distance-based clustering for outlier detection 230 Inputs and outputs 231 How does it work? 231 Validation and evaluation techniques 235 Case study in stream learning 235 Tools and software 235 Business problem 238 Machine learning mapping 238 Data collection 238 Data sampling and transformation 238
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List