Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Deep Learning for Beginners
Deep Learning for Beginners

Deep Learning for Beginners: A beginner's guide to getting up and running with deep learning from scratch using Python

eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Deep Learning for Beginners

Introduction to Machine Learning

You have probably heard the term Machine Learning (ML) or Artificial Intelligence (AI) frequently in recent years, especially Deep Learning (DL). It may be the reason you decided to invest in this book and get to know more. Given some new, exciting developments in the area of neural networks, DL has come to be a hot area in ML. Today, it is difficult to imagine a world without quick text translation between languages, or without fast song identification. These, and many other things, are just the tip of the iceberg when it comes to the potential of DL to change your world. When you finish this book, we hope you will join the bus and ride along with amazing new applications and projects based on DL.

This chapter briefly introduces the field of ML and how it is used to solve common problems. Throughout this chapter, you will be driven to understand...

Diving into the ML ecosystem

From the typical ML application process depicted in Figure 1.1, you can see that ML has a broad range of applications. However, ML algorithms are only a small part of a bigger ecosystem with a lot of moving parts, and yet ML is transforming lives around the world today:

Figure 1.1 - ML ecosystem. ML interacts with the world through several stages of data manipulation and interpretation to achieve an overall system integration

Deployed ML applications usually start with a process of data collection that uses sensors of different types, such as cameras, lasers, spectroscopes, or other types of direct access to data, including local and remote databases, big or small. In the simplest of cases, input can be gathered through a computer keyboard or smartphone screen taps. At this stage, the data collected or sensed is considered to be raw data.

Raw data is usually preprocessed before presenting it to an ML model. Raw data is rarely the actual input to ML algorithms...

Training ML algorithms from data

A typical preprocessed dataset is formally defined as follows:

Where y is the desired output corresponding to the input vector x. So, the motivation of ML is to use the data to find linear and non-linear transformations over x using highly complex tensor (vector) multiplications and additions, or to simply find ways to measure similarities or distances among data points, with the ultimate purpose of predicting y given x.

A common way of thinking about this is that we want to approximate some unknown function over x:

Where w is an unknown vector that facilitates the transformation of x along with b. This formulation is very basic, linear, and is simply an illustration of what a simple learning model would look like. In this simple case, the ML algorithms revolve around finding the best w and b that yields the closest (if not perfect) approximation to y, the desired output. Very simple algorithms such as the perceptron (Rosenblatt, F. 1958) try different...

Introducing deep learning

While a more detailed discussion of learning algorithms will be addressed in Chapter 4, Learning from Data, in this section, we will deal with the fundamental concept of a neural network and the developments that led to deep learning.

The model of a neuron

The human brain has input connections from other neurons (synapses) that receive stimuli in the form of electric charges, and then has a nucleus that depends on how the input stimulates the neuron that can trigger the neuron's activation. At the end of the neuron, the output signal is propagated to other neurons through dendrites, thus forming a network of neurons.

The analogy of the human neuron is depicted in Figure 1.3, where the input is represented with the vector x, the activation of the neuron is given by some function z(.), and the output is y. The parameters of the neuron are w and b:

Figure 1.3 - The basic model of a neuron

The trainable parameters of a neuron are w and b, and they are unknown...

Why is deep learning important today?

Today, we enjoy the benefits of algorithms and strategies that we did not have 20 or 30 years ago, which enable us to have amazing applications that are changing lives. Allow me to summarize some of the great and important things about deep learning today:

  • Training in mini-batches: This strategy allows us today to have very large datasets and train a deep learning model little by little. In the past, we would have to load the entire dataset into memory, making it computationally impossible for some large datasets. Today, yes, it may take a little longer, but we at least can actually perform training on finite time.
  • Novel activation functions: Rectified linear units (ReLUs), for example, are a relatively new kind of activation that solved many of the problems with large-scale training with backpropagation strategies. These new activations enable training algorithms to converge on deep architectures when, in the past, we would get stuck on non-converging...

Summary

This introductory chapter presented an overview of ML. It introduced the motivation behind ML and the terminology that is commonly used in the field. It also introduced deep learning and how it fits in the realm of artificial intelligence. At this point, you should feel confident that you know enough about what a neural network is to be curious about how big it can be. You should also feel very intrigued about the area of deep learning and all the new things that are coming out every week.

At this point, you must be a bit anxious to begin your deep learning coding journey; for that reason, the next logical step is to go to Chapter 2, Setup and Introduction to Deep Learning Frameworks. In this chapter, you will get ready for the action by setting up your system and making sure you have access to the resources you will need to be a successful deep learning practitioner. But before you go there, please try to quiz yourself with the following questions.

Questions and answers

  1. Can a perceptron and/or a neural network solve the problem of classifying data that is linearly separable?

Yes, both can.

  1. Can a perceptron and/or a neural network solve the problem of classifying data that is non-separable?

Yes, both can. However, the perceptron will go on forever unless we specify a stopping condition such as a maximum number of iterations (updates), or stopping if the number of misclassified points does not decrease after a number of iterations.

  1. What are the changes in the ML filed that have enabled us to have deep learning today?

(A) backpropagation algorithms, batch training, ReLUs, and so on;

(B) computing power, GPUs, cloud, and so on.

  1. Why is generalization a good thing?

Because deep neural networks are most useful when they can function as expected when they are given data that they have not seen before, that is, data on which they have not been trained.

References

  • Hecht-Nielsen, R. (1992). Theory of the backpropagation neural network. In Neural networks for perception (pp. 65-93). Academic Press.
  • Kane, F. (2017). Hands-On Data Science and Python ML. Packt Publishing Ltd.
  • LeCun, Y., Bottou, L., Orr, G., and Muller, K. (1998). Efficient backprop in neural networks: Tricks of the trade (Orr, G. and Müller, K., eds.). Lecture Notes in Computer Science, 1524(98), 111.
  • Ojeda, T., Murphy, S. P., Bengfort, B., and Dasgupta, A. (2014). Practical Data Science Cookbook. Packt Publishing Ltd.
  • Rosenblatt, F. (1958). The perceptron: a probabilistic model for information storage and organization in the brain. Psychological Review, 65(6), 386.
  • Rumelhart, D. E., Hinton, G. E., and Williams, R. J. (1985). Learning internal representations by error propagation (No. ICS-8506). California Univ San Diego La Jolla Inst for Cognitive Science.
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand the fundamental machine learning concepts useful in deep learning
  • Learn the underlying mathematical concepts as you implement deep learning models from scratch
  • Explore easy-to-understand examples and use cases that will help you build a solid foundation in DL

Description

With information on the web exponentially increasing, it has become more difficult than ever to navigate through everything to find reliable content that will help you get started with deep learning. This book is designed to help you if you're a beginner looking to work on deep learning and build deep learning models from scratch, and you already have the basic mathematical and programming knowledge required to get started. The book begins with a basic overview of machine learning, guiding you through setting up popular Python frameworks. You will also understand how to prepare data by cleaning and preprocessing it for deep learning, and gradually go on to explore neural networks. A dedicated section will give you insights into the working of neural networks by helping you get hands-on with training single and multiple layers of neurons. Later, you will cover popular neural network architectures such as CNNs, RNNs, AEs, VAEs, and GANs with the help of simple examples, and learn how to build models from scratch. At the end of each chapter, you will find a question and answer section to help you test what you've learned through the course of the book. By the end of this book, you'll be well-versed with deep learning concepts and have the knowledge you need to use specific algorithms with various tools for different tasks.

Who is this book for?

This book is for aspiring data scientists and deep learning engineers who want to get started with the fundamentals of deep learning and neural networks. Although no prior knowledge of deep learning or machine learning is required, familiarity with linear algebra and Python programming is necessary to get started.

What you will learn

  • Implement recurrent neural networks (RNNs) and long short-term memory (LSTM) for image classification and natural language processing tasks
  • Explore the role of convolutional neural networks (CNNs) in computer vision and signal processing
  • Discover the ethical implications of deep learning modeling
  • Understand the mathematical terminology associated with deep learning
  • Code a generative adversarial network (GAN) and a variational autoencoder (VAE) to generate images from a learned latent space
  • Implement visualization techniques to compare AEs and VAEs

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 18, 2020
Length: 432 pages
Edition : 1st
Language : English
ISBN-13 : 9781838647582
Category :
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Sep 18, 2020
Length: 432 pages
Edition : 1st
Language : English
ISBN-13 : 9781838647582
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 98.97
Deep Learning for Beginners
€32.99
Artificial Intelligence with Python Cookbook
€32.99
Hands-On Mathematics for Deep Learning
€32.99
Total 98.97 Stars icon

Table of Contents

19 Chapters
Section 1: Getting Up to Speed Chevron down icon Chevron up icon
Introduction to Machine Learning Chevron down icon Chevron up icon
Setup and Introduction to Deep Learning Frameworks Chevron down icon Chevron up icon
Preparing Data Chevron down icon Chevron up icon
Learning from Data Chevron down icon Chevron up icon
Training a Single Neuron Chevron down icon Chevron up icon
Training Multiple Layers of Neurons Chevron down icon Chevron up icon
Section 2: Unsupervised Deep Learning Chevron down icon Chevron up icon
Autoencoders Chevron down icon Chevron up icon
Deep Autoencoders Chevron down icon Chevron up icon
Variational Autoencoders Chevron down icon Chevron up icon
Restricted Boltzmann Machines Chevron down icon Chevron up icon
Section 3: Supervised Deep Learning Chevron down icon Chevron up icon
Deep and Wide Neural Networks Chevron down icon Chevron up icon
Convolutional Neural Networks Chevron down icon Chevron up icon
Recurrent Neural Networks Chevron down icon Chevron up icon
Generative Adversarial Networks Chevron down icon Chevron up icon
Final Remarks on the Future of Deep Learning Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(3 Ratings)
5 star 33.3%
4 star 66.7%
3 star 0%
2 star 0%
1 star 0%
Damian Valles Nov 27, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great introduction book by Pablo Rivas to Deep Learning concepts. The book provides great fundamental concepts that are flexible to Sciences and Engineering domains. Also, all proceedings are donated to Latinx in AI! #deeplearning #ai
Amazon Verified review Amazon
Rahul Gupta Feb 19, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
“Deep Learning for Beginners” by Dr. Pablo Rivas offers a great beginner's guide to getting up and running with deep learning from scratch using Python. It provides step-by-step guided instructions with code and examples explaining basic concepts with practical examples the theory and concepts of Deep Learning in diverse fields such as computer vision, natural language processing, learning representations etc. The book is organized to provide gradual transition between supervised and unsupervised models. Google Colabs, the free website, has been used to provide deep learning tools and libraries accessible to anyone enabling them to run the code on the cloud.Chapter 1, Introduction to Machine Learning, gives an overview of machine learning and introduces the motivation behind machine learning and the commonly used terminologies. It also introduces deep learning and how it fits in the realm of artificial intelligence.Chapter 2, Setup and Introduction to Deep Learning Frameworks, explains the process of setting up TensorFlow and Keras and their usefulness in deep learning.Chapter 3, Preparing Data, introduces the main concepts behind data processing for Deep Learning. It covers essential concepts of data formatting that are categorical or real-valued, as well as techniques for augmenting data or reducing the data dimensions.Chapter 4, Learning from Data, introduces elementary concepts of the theory of deep learning, including measuring performance on regression and classification as well as the identification of underfitting and overfitting and optimizing hyperparameters.Chapter 5, Training a Single Neuron, introduces the concept of a single neuron and the perceptron model, the key to understanding basic neural models that learn from data and explains the problem of non-linearly separable data.Chapter 6, Training Multiple Layers of Neurons, covers deep learning using the multi-layer perceptron (MLP) algorithm, such as gradient descent techniques for error minimization, and hyperparameter optimization.Chapter 7, Autoencoders, describes the AE model by explaining the necessity of both encoding and decoding layers, the loss functions associated with the autoencoder problem and applies it to the dimensionality reduction problem and data visualization.Chapter 8, Deep Autoencoders, introduces the idea of deep belief networks and the significance of deep unsupervised learning. It explains the concepts by introducing deep AEs and contrasting them with shallow AEs.Chapter 9, Variational Autoencoders, covers the principles behind generative models in the unsupervised deep learning field and their importance in the production of robust models free from noise and demonstrates as to why the VAE is a better alternative to a deep AE when working with perturbed data.Chapter 10, Restricted Boltzmann Machines, covers deep belief models by presenting RBMs. The backward-forward nature of RBMs is introduced and contrasted with the forward-only nature of AEs. The chapter compares RBMs and AEs on the problem of data dimensionality reduction using visual representations of the reduced data.Chapter 11, Deep and Wide Neural Networks, explains the difference in performance and complexities of deep versus wide neural networks and introduces the concept of dense networks and sparse networks in terms of the connections between neurons.Chapter 12, Convolutional Neural Networks, introduces CNNs, starting with the convolution operation and moving towards ensemble layers of convolutional operations aiming to learn and apply data filters how to visualize the learned filters.Chapter 13, Recurrent Neural Networks, presents the concepts of recurrent networks, exposing their shortcomings to justify the existence and success of long short-term memory (LSTM) models. Sequential models are explored with applications for image processing and natural language processing.
Amazon Verified review Amazon
AT Mar 24, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Disclaimer: The publisher asked me to review this book & gave me a review a copy. I promise to give my honest opinion about this book.This book covers all fundamentals of ML ecosystem with hands on example codes. It guides you to set up different ML frameworks. You will understand the concepts of data cleansing & preprocessing, basic ML algorithms, tuning hyper parameters, model evaluation. It covers great details on neural network architectures like CNN, RNN, AE, VAE, and GANs. After reading this, you will have pretty good idea about ML concepts and should be able to train some ML model by yourself.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.