Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Deep Learning Essentials. - Second Edition

You're reading from  R Deep Learning Essentials. - Second Edition

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781788992893
Pages 378 pages
Edition 2nd Edition
Languages
Authors (2):
Mark Hodnett Mark Hodnett
Profile icon Mark Hodnett
Joshua F. Wiley Joshua F. Wiley
Profile icon Joshua F. Wiley
View More author details

Table of Contents (13) Chapters

Preface Getting Started with Deep Learning Training a Prediction Model Deep Learning Fundamentals Training Deep Prediction Models Image Classification Using Convolutional Neural Networks Tuning and Optimizing Models Natural Language Processing Using Deep Learning Deep Learning Models Using TensorFlow in R Anomaly Detection and Recommendation Systems Running Deep Learning Models in the Cloud The Next Level in Deep Learning Other Books You May Enjoy

Introduction to the TensorFlow library

TensorFlow is not just a deep learning library, but an expressive programming language that can implement various optimization and mathematical transformations on data. While it is mainly used to implement deep learning algorithms, it can perform much more. In TensorFlow, programs are represented as computational graphs, and data in TensorFlow is stored in tensors. A tensor is an array of data that has the same data type, and the rank of a tensor is the number of dimensions. Because all the data in a tensor must have the same type, they are more similar to R matrices than data frames.

Here is an example of tensors of various ranks:

library(tensorflow)

> # tensor of rank-0
> var1 <- tf$constant(0.1)
> print(var1)
Tensor("Const:0", shape=(), dtype=float32)

> sess <- tf$InteractiveSession()
T:\src\github\tensorflow...
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 $15.99/month. Cancel anytime}