Practical Machine Learning in R
Home > Computing and Information Technology > Computer programming / software engineering > Practical Machine Learning in R
Practical Machine Learning in R

Practical Machine Learning in R

|
     0     
5
4
3
2
1




Available


About the Book

Guides professionals and students through the rapidly growing field of machine learning with hands-on examples in the popular R programming language Machine learning—a branch of Artificial Intelligence (AI) which enables computers to improve their results and learn new approaches without explicit instructions—allows organizations to reveal patterns in their data and incorporate predictive analytics into their decision-making process. Practical Machine Learning in R provides a hands-on approach to solving business problems with intelligent, self-learning computer algorithms.  Bestselling author and data analytics experts Fred Nwanganga and Mike Chapple explain what machine learning is, demonstrate its organizational benefits, and provide hands-on examples created in the R programming language. A perfect guide for professional self-taught learners or students in an introductory machine learning course, this reader-friendly book illustrates the numerous real-world business uses of machine learning approaches. Clear and detailed chapters cover data wrangling, R programming with the popular RStudio tool, classification and regression techniques, performance evaluation, and more.  Explores data management techniques, including data collection, exploration and dimensionality reduction Covers unsupervised learning, where readers identify and summarize patterns using approaches such as apriori, eclat and clustering Describes the principles behind the Nearest Neighbor, Decision Tree and Naive Bayes classification techniques Explains how to evaluate and choose the right model, as well as how to improve model performance using ensemble methods such as Random Forest and XGBoost Practical Machine Learning in R is a must-have guide for business analysts, data scientists, and other professionals interested in leveraging the power of AI to solve business problems, as well as students and independent learners seeking to enter the field.

Table of Contents:
About the Authors vii About the Technical Editors ix Acknowledgments xi Introduction xxi Part I: Getting Started 1 Chapter 1 What is Machine Learning? 3 Discovering Knowledge in Data 5 Introducing Algorithms 5 Artificial Intelligence, Machine Learning, and Deep Learning 6 Machine Learning Techniques 7 Supervised Learning 8 Unsupervised Learning 12 Model Selection 14 Classification Techniques 14 Regression Techniques 15 Similarity Learning Techniques 16 Model Evaluation 16 Classification Errors 17 Regression Errors 19 Types of Error 20 Partitioning Datasets 22 Holdout Method 23 Cross-Validation Methods 23 Exercises 24 Chapter 2 Introduction to R and RStudio 25 Welcome to R 26 R and RStudio Components 27 The R Language 27 RStudio 28 RStudio Desktop 28 RStudio Server 29 Exploring the RStudio Environment 29 R Packages 38 The CRAN Repository 38 Installing Packages 38 Loading Packages 39 Package Documentation 40 Writing and Running an R Script 41 Data Types in R 44 Vectors 45 Testing Data Types 47 Converting Data Types 50 Missing Values 51 Exercises 52 Chapter 3 Managing Data 53 The Tidyverse 54 Data Collection 55 Key Considerations 55 Collecting Ground Truth Data 55 Data Relevance 55 Quantity of Data 56 Ethics 56 Importing the Data 56 Reading Comma-Delimited Files 56 Reading Other Delimited Files 60 Data Exploration 60 Describing the Data 61 Instance 61 Feature 61 Dimensionality 62 Sparsity and Density 62 Resolution 62 Descriptive Statistics 63 Visualizing the Data 69 Comparison 69 Relationship 70 Distribution 72 Composition 73 Data Preparation 74 Cleaning the Data 75 Missing Values 75 Noise 79 Outliers 81 Class Imbalance 82 Transforming the Data 84 Normalization 84 Discretization 89 Dummy Coding 89 Reducing the Data 92 Sampling 92 Dimensionality Reduction 99 Exercises 100 Part II: Regression 101 Chapter 4 Linear Regression 103 Bicycle Rentals and Regression 104 Relationships Between Variables 106 Correlation 106 Regression 114 Simple Linear Regression 115 Ordinary Least Squares Method 116 Simple Linear Regression Model 119 Evaluating the Model 120 Residuals 121 Coefficients 121 Diagnostics 122 Multiple Linear Regression 124 The Multiple Linear Regression Model 124 Evaluating the Model 125 Residual Diagnostics 127 Influential Point Analysis 130 Multicollinearity 133 Improving the Model 135 Considering Nonlinear Relationships 135 Considering Categorical Variables 137 Considering Interactions Between Variables 139 Selecting the Important Variables 141 Strengths and Weaknesses 146 Case Study: Predicting Blood Pressure 147 Importing the Data 148 Exploring the Data 149 Fitting the Simple Linear Regression Model 151 Fitting the Multiple Linear Regression Model 152 Exercises 161 Chapter 5 Logistic Regression 165 Prospecting for Potential Donors 166 Classifi cation 169 Logistic Regression 170 Odds Ratio 172 Binomial Logistic Regression Model 176 Dealing with Missing Data 178 Dealing with Outliers 182 Splitting the Data 187 Dealing with Class Imbalance 188 Training a Model 190 Evaluating the Model 190 Coeffi cients 193 Diagnostics 195 Predictive Accuracy 195 Improving the Model 198 Dealing with Multicollinearity 198 Choosing a Cutoff Value 205 Strengths and Weaknesses 206 Case Study: Income Prediction 207 Importing the Data 208 Exploring and Preparing the Data 208 Training the Model 212 Evaluating the Model 215 Exercises 216 Part III: Classification 221 Chapter 6 k-Nearest Neighbors 223 Detecting Heart Disease 224 k-Nearest Neighbors 226 Finding the Nearest Neighbors 228 Labeling Unlabeled Data 230 Choosing an Appropriate k 231 k-Nearest Neighbors Model 232 Dealing with Missing Data 234 Normalizing the Data 234 Dealing with Categorical Features 235 Splitting the Data 237 Classifying Unlabeled Data 237 Evaluating the Model 238 Improving the Model 239 Strengths and Weaknesses 241 Case Study: Revisiting the Donor Dataset 241 Importing the Data 241 Exploring and Preparing the Data 242 Dealing with Missing Data 243 Normalizing the Data 245 Splitting and Balancing the Data 246 Building the Model 248 Evaluating the Model 248 Exercises 249 Chapter 7 Naïve Bayes 251 Classifying Spam Email 252 Naïve Bayes 253 Probability 254 Joint Probability 255 Conditional Probability 256 Classification with Naïve Bayes 257 Additive Smoothing 261 Naïve Bayes Model 263 Splitting the Data 266 Training a Model 267 Evaluating the Model 267 Strengths and Weaknesses of the Naïve Bayes Classifier 269 Case Study: Revisiting the Heart Disease Detection Problem 269 Importing the Data 270 Exploring and Preparing the Data 270 Building the Model 272 Evaluating the Model 273 Exercises 274 Chapter 8 Decision Trees 277 Predicting Build Permit Decisions 278 Decision Trees 279 Recursive Partitioning 281 Entropy 285 Information Gain 286 Gini Impurity 290 Pruning 290 Building a Classification Tree Model 291 Splitting the Data 294 Training a Model 295 Evaluating the Model 295 Strengths and Weaknesses of the Decision Tree Model 298 Case Study: Revisiting the Income Prediction Problem 299 Importing the Data 300 Exploring and Preparing the Data 300 Building the Model 302 Evaluating the Model 302 Exercises 304 Part IV: Evaluating and Improving Performance 305 Chapter 9 Evaluating Performance 307 Estimating Future Performance 308 Cross-Validation 311 k-Fold Cross-Validation 311 Leave-One-Out Cross-Validation 315 Random Cross-Validation 316 Bootstrap Sampling 318 Beyond Predictive Accuracy 321 Kappa 323 Precision and Recall 326 Sensitivity and Specificity 328 Visualizing Model Performance 332 Receiver Operating Characteristic Curve 333 Area Under the Curve 336 Exercises 339 Chapter 10 Improving Performance 341 Parameter Tuning 342 Automated Parameter Tuning 342 Customized Parameter Tuning 348 Ensemble Methods 354 Bagging 355 Boosting 358 Stacking 361 Exercises 366 Part V: Unsupervised Learning 367 Chapter 11 Discovering Patterns with Association Rules 369 Market Basket Analysis 370 Association Rules 371 Identifying Strong Rules 373 Support 373 Confi dence 373 Lift 374 The Apriori Algorithm 374 Discovering Association Rules 376 Generating the Rules 377 Evaluating the Rules 382 Strengths and Weaknesses 386 Case Study: Identifying Grocery Purchase Patterns 386 Importing the Data 387 Exploring and Preparing the Data 387 Generating the Rules 389 Evaluating the Rules 389 Exercises 392 Notes 393 Chapter 12 Grouping Data with Clustering 395 Clustering 396 k-Means Clustering 399 Segmenting Colleges with k-Means Clustering 403 Creating the Clusters 404 Analyzing the Clusters 407 Choosing the Right Number of Clusters 409 The Elbow Method 409 The Average Silhouette Method 411 The Gap Statistic 412 Strengths and Weaknesses of k-Means Clustering 414 Case Study: Segmenting Shopping Mall Customers 415 Exploring and Preparing the Data 415 Clustering the Data 416 Evaluating the Clusters 418 Exercises 420 Notes 420 Index 421


Best Sellers


Product Details
  • ISBN-13: 9781119591511
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: John Wiley & Sons Inc
  • Height: 231 mm
  • No of Pages: 464
  • Returnable: N
  • Weight: 958 gr
  • ISBN-10: 1119591511
  • Publisher Date: 06 Jul 2020
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Spine Width: 20 mm
  • Width: 185 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Practical Machine Learning in R
John Wiley & Sons Inc -
Practical Machine Learning in R
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Practical Machine Learning in R

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!