Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Deep Learning with PyTorch

You're reading from  Deep Learning with PyTorch

Product type Book
Published in Feb 2018
Publisher Packt
ISBN-13 9781788624336
Pages 262 pages
Edition 1st Edition
Languages
Author (1):
Vishnu Subramanian Vishnu Subramanian
Profile icon Vishnu Subramanian
Toc

Table of Contents (11) Chapters close

Preface 1. Getting Started with Deep Learning Using PyTorch 2. Building Blocks of Neural Networks 3. Diving Deep into Neural Networks 4. Fundamentals of Machine Learning 5. Deep Learning for Computer Vision 6. Deep Learning with Sequence Data and Text 7. Generative Networks 8. Modern Network Architectures 9. What Next? 10. Other Books You May Enjoy

Our first neural network

We present our first neural network, which learns how to map training examples (input array) to targets (output array). Let's assume that we work for one of the largest online companies, Wondermovies, which serves videos on demand. Our training dataset contains a feature that represents the average hours spent by users watching movies on the platform and we would like to predict how much time each user would spend on the platform in the coming week. It's just an imaginary use case, don't think too much about it. Some of the high-level activities for building such a solution are as follows:

  • Data preparation: The get_data function prepares the tensors (arrays) containing input and output data
  • Creating learnable parameters: The get_weights function provides us with tensors containing random values that we will optimize to solve our problem...
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