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
Neural Networks with R

You're reading from   Neural Networks with R Build smart systems by implementing popular deep learning models in R

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781788397872
Length 270 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Balaji Venkateswaran Balaji Venkateswaran
Author Profile Icon Balaji Venkateswaran
Balaji Venkateswaran
Giuseppe Ciaburro Giuseppe Ciaburro
Author Profile Icon Giuseppe Ciaburro
Giuseppe Ciaburro
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Neural Network and Artificial Intelligence Concepts FREE CHAPTER 2. Learning Process in Neural Networks 3. Deep Learning Using Multilayer Neural Networks 4. Perceptron Neural Network Modeling – Basic Models 5. Training and Visualizing a Neural Network in R 6. Recurrent and Convolutional Neural Networks 7. Use Cases of Neural Networks – Advanced Topics

The rnn package in R


To implement RNN in an R environment, we can use the rnn package available through CRAN. This package is widely used to implement an RNN. A brief description of the rnn package, extracted from the official documentation, is shown in the following table:

rnn: Recurrent Neural Network

Description:

Implementation of an RNN in R

Details:

Package: rnn Type: Package Version: 0.8.0 Date: 2016-09-11 License: GPL-3

Authors:

Bastiaan Quast Dimitri Fichou

The main functions used from the rnn package are shown in this table:

predict_rnn

Predicts the output of an RNN model:

predict_rnn(model, X, hidden = FALSE, real_output = T, ...)

run.rnn_demo

A function to launch the rnn_demo app​:

run.rnn_demo(port = NULL)

trainr

This trains the RNN. The model is used by the predictr function.

predictr

This predicts the output of an RNN model:

predictr(model, X, hidden = FALSE, real_output = T, ...)

 

 

As always, to be able to use a library, we must first install and then load it into our script.

Note

Remember, to...

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 ₹800/month. Cancel anytime