Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Machine Learning with R
  • Toc
  • feedback
Mastering Machine Learning with R

Mastering Machine Learning with R

By : Lesmeister
1.3 (3)
close
Mastering Machine Learning with R

Mastering Machine Learning with R

1.3 (3)
By: Lesmeister

Overview of this book

Given the growing popularity of the R-zerocost statistical programming environment, there has never been a better time to start applying ML to your data. This book will teach you advanced techniques in ML ,using? the latest code in R 3.5. You will delve into various complex features of supervised learning, unsupervised learning, and reinforcement learning algorithms to design efficient and powerful ML models. This newly updated edition is packed with fresh examples covering a range of tasks from different domains. Mastering Machine Learning with R starts by showing you how to quickly manipulate data and prepare it for analysis. You will explore simple and complex models and understand how to compare them. You’ll also learn to use the latest library support, such as TensorFlow and Keras-R, for performing advanced computations. Additionally, you’ll explore complex topics, such as natural language processing (NLP), time series analysis, and clustering, which will further refine your skills in developing applications. Each chapter will help you implement advanced ML algorithms using real-world examples. You’ll even be introduced to reinforcement learning, along with its various use cases and models. In the concluding chapters, you’ll get a glimpse into how some of these blackbox models can be diagnosed and understood. By the end of this book, you’ll be equipped with the skills to deploy ML techniques in your own projects or at work.
Table of Contents (16 chapters)
close

Sentiment analysis

"We shall nobly save, or meanly lose, the last, best hope of earth.”
Abraham Lincoln

In this section, we'll take a look at the various sentiment options available in tidytext. Then, we'll apply that to a subset of the data before, during, and after the Civil War. To get started, let's explore the sentiments dataset that comes with tidytext:

> table(sentiments$lexicon)

AFINN bing loughran nrc
2476 6788 4149 13901

The four sentiment options and researchers associated with them are as follows:

  • AFINN: Finn, Arup, and Nielsen
  • bing: Bing, Liu et al.
  • loughran: Loughran and McDonald
  • nrc: Mohammad and Turney

The AFINN sentiment categorizes words on a negative to positive scale from -5 to +5. The bing version has a simple binary negative or positive ranking; loughran provides six different categories including negative...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete