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

Arrow left icon
Profile Icon Rivas Profile Icon Pablo Rivas
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (3 Ratings)
Paperback Sep 2020 432 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Rivas Profile Icon Pablo Rivas
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (3 Ratings)
Paperback Sep 2020 432 pages 1st Edition
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781838640859
Category :
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Sep 18, 2020
Length: 432 pages
Edition : 1st
Language : English
ISBN-13 : 9781838640859
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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.