Mastering Machine Learning with R
eBook - ePub

Mastering Machine Learning with R

  1. 400 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering Machine Learning with R

About this book

Master machine learning techniques with R to deliver insights for complex projects

About This Book

  • Get to grips with the application of Machine Learning methods using an extensive set of R packages
  • Understand the benefits and potential pitfalls of using machine learning methods
  • Implement the numerous powerful features offered by R with this comprehensive guide to building an independent R-based ML system

Who This Book Is For

If you want to learn how to use R's machine learning capabilities to solve complex business problems, then this book is for you. Some experience with R and a working knowledge of basic statistical or machine learning will prove helpful.

What You Will Learn

  • Gain deep insights to learn the applications of machine learning tools to the industry
  • Manipulate data in R efficiently to prepare it for analysis
  • Master the skill of recognizing techniques for effective visualization of data
  • Understand why and how to create test and training data sets for analysis
  • Familiarize yourself with fundamental learning methods such as linear and logistic regression
  • Comprehend advanced learning methods such as support vector machines
  • Realize why and how to apply unsupervised learning methods

In Detail

Machine learning is a field of Artificial Intelligence to build systems that learn from data. Given the growing prominence of R—a cross-platform, zero-cost statistical programming environment—there has never been a better time to start applying machine learning to your data.

The book starts with introduction to Cross-Industry Standard Process for Data Mining. It takes you through Multivariate Regression in detail. Moving on, you will also address Classification and Regression trees. You will learn a couple of "Unsupervised techniques". Finally, the book will walk you through text analysis and time series.

The book will deliver practical and real-world solutions to problems and variety of tasks such as complex recommendation systems. By the end of this book, you will gain expertise in performing R machine learning and will be able to build complex ML projects using R and its packages.

Style and approach

This is a book explains complicated concepts with easy to follow theory and real-world, practical applications. It demonstrates the power of R and machine learning extensively while highlighting the constraints.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Mastering Machine Learning with R


Table of Contents

Mastering Machine Learning with R
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
Machine learning defined
Machine learning caveats
Failure to engineer features
Overfitting and underfitting
Causality
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
eBooks, discount offers, and more
Questions
1. A Process for Success
The process
Business understanding
Identify the business objective
Assess the situation
Determine the analytical goals
Produce a project plan
Data understanding
Data preparation
Modeling
Evaluation
Deployment
Algorithm flowchart
Summary
2. Linear Regression – The Blocking and Tackling of Machine Learning
Univariate linear regression
Business understanding
Multivariate linear regression
Business understanding
Data understanding and preparation
Modeling and evaluation
Other linear model considerations
Qualitative feature
Interaction term
Summary
3. Logistic Regression and Discriminant Analysis
Classification methods and linear regression
Logistic regression
Business understanding
Data understanding and preparation
Modeling and evaluation
The logistic regression model
Logistic regression with cross-validation
Discriminant analysis overview
Discriminant analysis application
Model selection
Summary
4. Advanced Feature Selection in Linear Models
Regularization in a nutshell
Ridge regression
LASSO
Elastic net
Business case
Business understanding
Data understanding and preparation
Modeling and evaluation
Best subsets
Ridge regression
LASSO
Elastic net
Cross-validation with glmnet
Model selection
Summary
5. More Classification Techniques – K-Nearest Neighbors and Support Vector Machines
K-Nearest Neighbors
Support Vector Machines
Business case
Business understanding
Data understanding and preparation
Modeling and evaluation
KNN modeling
SVM modeling
Model selection
Feature selection for SVMs
Summary
6. Classification and Regression Trees
Introduction
An overview of the techniques
Regression trees
Classification trees
Random forest
Gradient boosting
Business case
Modeling and evaluation
Regression tree
Classification tree
Random forest regression
Random forest classification
Gradient boosting regression
Gradient boosting classification
Model selection
Summary
7. Neural Networks
Neural network
Deep learning, a not-so-deep overview
Business understanding
Data understanding and preparation
Modeling and evaluation
An example of deep learning
H2O background
Data preparation and uploading it to H2O
Create train and test datasets
Modeling
Summary
8. Cluster Analysis
Hierarchical clustering
Distance calculations
K-means clustering
Gower and partitioning around medoids
Gower
PAM
Business understanding
Data understanding and preparation
Modeling and evaluation
Hierarchical clustering
K-means clustering
Clustering with mixed data
Summary
9. Principal Components Analysis
An overview of the principal components
Rotation
Business understanding
Data understanding and preparation
Modeling and evaluation
Component extraction
Orthogonal rotation and interpretation
Creating factor scores from the components
Regression analysis
Summary
10. Market Basket Analysis and Recommendation Engines
An overview of a market basket analysis
Business understanding
Data understanding and preparation
Modeling and evaluation
An overview of a recommendation engine
User-based collaborative filtering
Item-based collaborative filtering
Singular value decomposition and principal components analysis
Business understanding and recommendations
Data understanding, preparation, and recommendations
Modeling, evaluation, and recommendations
Summary
11. Time Series and Causality
Univariate time series analysis
Bivariate regression
Granger causality
Business understanding
Data understanding and preparation
Modeling and evaluation
Univariate time series forecasting
Time series regression
Examining the causality
Summary
12. Text Mining
Text mining framework and methods
Topic models
Other quantitative analyses
Business understanding
Data understanding and preparation
Modeling and evaluation
Word frequency and topic models
Additional quantitative analysis
Summary
A. R Fundamentals
Introduction
Getting R up and running
Using R
Data frames and matrices
Summary stats
Installing and loading the R packages
Summary
Index

Mastering Machine Learning with R

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...

Table of contents

  1. Mastering Machine Learning with R

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Mastering Machine Learning with R by Cory Lesmeister in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.