Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
R Machine Learning Projects

You're reading from   R Machine Learning Projects Implement supervised, unsupervised, and reinforcement learning techniques using R 3.5

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher Packt
ISBN-13 9781789807943
Length 334 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dr. Sunil Kumar Chinnamgari Dr. Sunil Kumar Chinnamgari
Author Profile Icon Dr. Sunil Kumar Chinnamgari
Dr. Sunil Kumar Chinnamgari
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Exploring the Machine Learning Landscape FREE CHAPTER 2. Predicting Employee Attrition Using Ensemble Models 3. Implementing a Jokes Recommendation Engine 4. Sentiment Analysis of Amazon Reviews with NLP 5. Customer Segmentation Using Wholesale Data 6. Image Recognition Using Deep Neural Networks 7. Credit Card Fraud Detection Using Autoencoders 8. Automatic Prose Generation with Recurrent Neural Networks 9. Winning the Casino Slot Machines with Reinforcement Learning 10. The Road Ahead
11. Other Books You May Enjoy

Understanding the Amazon reviews dataset

We use the Amazon product reviews polarity dataset for the various projects in this chapter. It is an open dataset constructed and made available by Xiang Zhang. It is used as a text classification benchmark in the paper: Character-level Convolutional Networks for Text Classification and Advances in Neural Information Processing Systems 28, Xiang Zhang, Junbo Zhao, Yann LeCun, (NIPS 2015).

The Amazon reviews polarity dataset is constructed by taking review score 1 and 2 as negative, 4 and 5 as positive. Samples of score 3 are ignored. In the dataset, class 1 is the negative and class 2 is the positive. The dataset has 1,800,000 training samples and 200,000 testing samples.

The train.csv and test.csv files contains all the samples as comma-separated values. There are three columns in them, corresponding to class index (1 or 2), review title...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime