Book Image

R Deep Learning Projects

Book Image

R Deep Learning Projects

Overview of this book

R is a popular programming language used by statisticians and mathematicians for statistical analysis, and is popularly used for deep learning. Deep Learning, as we all know, is one of the trending topics today, and is finding practical applications in a lot of domains. This book demonstrates end-to-end implementations of five real-world projects on popular topics in deep learning such as handwritten digit recognition, traffic light detection, fraud detection, text generation, and sentiment analysis. You'll learn how to train effective neural networks in R—including convolutional neural networks, recurrent neural networks, and LSTMs—and apply them in practical scenarios. The book also highlights how neural networks can be trained using GPU capabilities. You will use popular R libraries and packages—such as MXNetR, H2O, deepnet, and more—to implement the projects. By the end of this book, you will have a better understanding of deep learning concepts and techniques and how to use them in a practical setting.
Table of Contents (11 chapters)

Text fraud detection


Fraud has become an issue beyond the traditional transaction fraud. Many websites, for instance, rely on user reviews about services, such as restaurants, hotels or tourist attractions, that are monetized in different ways. If the users lose trust in those reviews, for example, by a business owner deliberately messing with the good reviews for his or her own business, then the website will find it hard to regain that trust and to remain profitable. Hence, it is important to detect such potential issues. 

How can autoencoders help us with this? As before, the idea is to learn the representation of a normal review on a website, and then find those that do not fit the normal review. The issue with text data is that there is some processing to be done before. We will illustrate this with an example, which will also serve as a motivation for the different ways of modelling text that will be discussed in the next chapters.

From unstructured text data to a matrix

An issue with...