concept deep neural network in category deep learning

appears as: deep neural networks, deeper neural network, deep neural network, deep neural network, A deep neural network, deep neural networks, The deep neural networks, Deep neural networks
Deep Learning for Vision Systems

This is an excerpt from Manning's book Deep Learning for Vision Systems.

Let me say this right now to set the stage for further discussions: deep neural networks are data hungry. The overall consensus is that the more data you have, the more you are setting your network up for success. With that in mind, a common behavior by machine learning novices is throwing more data on the learning algorithm as their first solution to improve its performance. But collecting and labeling more data is not always a feasible option. Also, depending on your problem, it could be very costly to collect and label data. Plus, it might not even be that effective.

Before diving into comparisons, remember that training a deep neural network requires tuning several hyperparameters. This may in-turn lead into pitfalls while comparing several algorithms, e.g. an approach could just perform better if the underlying CNN performs favorably on the same pre-trained dataset(s). Other similar hyperparameters are - training algorithm choice, e.g. vanilla SGD or a more sophisticated Adam and many other parameters that we have learned throughout this book. Therefore one must delve deeper into an algorithm machinery to see the complete picture.

Deep Reinforcement Learning in Action

This is an excerpt from Manning's book Deep Reinforcement Learning in Action.

If you run this gradient descent algorithm, you should get x = –0.750000000882165, which is (if rounded) exactly what you get when calculated algebraically. This simple process is the same one we use when training deep neural networks, except that deep neural networks are multivariable compositional functions, so we use partial derivatives. A partial derivative is no more complex than a normal derivative.

Consider the multivariable function f(x,y) = x4 + y2. There is no longer a single derivative of this function since it has two input variables. We can take the derivative with respect to x or y or both. When we take the derivative of a multivariable function with respect to all of its inputs and package this into a vector, we call it the gradient, which is denoted by the nabla symbol ∇, i.e., ∇f(x) = [df/dx,df/dy]. To compute the partial derivative of f with respect to x, i.e., df/dx, we simply set the other variable y to be a constant and differentiate as usual. In this case, df/dx = 4x3 and df/dy = 2y. So the gradient ∇f(x) = [4x3,2y], which is the vector of partial derivatives. Then we can run gradient descent as usual, except now we find the vector associated with the lowest point in an error function of the deep neural network.

Deep neural networks are popular because they are in many cases the most accurate parametric machine learning models for a given task, like image classification. This is largely due to the way they represent data. Deep neural networks have many layers (hence the “deep”), which induces the model to learn layered representations of input data. This layered representation is a form of compositionality, meaning that a complex piece of data is represented as the combination of more elementary components, and those components can be further broken down into even simpler components, and so on, until you get to atomic units.

Human language is compositional (figure 1.3). For example, a book is composed of chapters, chapters are composed of paragraphs, paragraphs are composed of sentences, and so on, until you get to individual words, which are the smallest units of meaning. Yet each individual level conveys meaning—an entire book is meant to convey meaning, and its individual paragraphs are meant to convey smaller points. Deep neural networks can likewise learn a compositional representation of data—for example, they can represent an image as the composition of primitive contours and textures, which are composed into elementary shapes, and so on, until you get the complete, complex image. This ability to handle complexity with compositional representations is largely what makes deep learning so powerful.

In our data center example, we hope that our agent will learn how to decrease our cooling costs. Unless we’re able to supply it with complete knowledge of the environment, it will have to employ some degree of trial and error. If we’re lucky, the agent might learn so well that it can be used in different environments than the one it was originally trained in. Since the agent is the learner, it is implemented as some sort of learning algorithm. And since this is a book about deep reinforcement learning, our agents will be implemented using deep learning algorithms (also known as deep neural networks, see figure 1.9). But remember, RL is more about the type of problem and solution than about any particular learning algorithm, and you could certainly use alternatives to deep neural networks. In fact, in chapter 3 we’ll begin by using a very simple non-neural network algorithm, and we’ll replace it with a neural network by the end of the chapter.

Figure 1.9. The input data (which is the state of the environment at some point in time) is fed into the agent (implemented as a deep neural network in this book), which then evaluates that data in order to take an action. The process is a little more involved than shown here, but this captures the essence.
  • Reinforcement learning is a subclass of machine learning. RL algorithms learn by maximizing rewards in some environment, and they’re useful when a problem involves making decisions or taking actions. RL algorithms can, in principle, employ any statistical learning model, but it has become increasingly popular and effective to use deep neural networks.
  • The agent is the focus of any RL problem. It is the part of the RL algorithm that processes input to determine which action to take. In this book we are primarily focused on agents implemented as deep neural networks.
  • Deep Learning with JavaScript: Neural networks in TensorFlow.js

    This is an excerpt from Manning's book Deep Learning with JavaScript: Neural networks in TensorFlow.js.

    Throughout the 2000s, companies like NVIDIA and AMD invested billions of dollars in developing fast, massively parallel chips (GPUs) to power the graphics of increasingly photorealistic video games—cheap, single-purpose supercomputers designed to render complex 3D scenes on your screen in real time. This investment came to benefit the scientific community when, in 2007, NVIDIA launched CUDA (short for Compute Unified Device Architecture), a general-purpose programming interface for its line of GPUs. A small number of GPUs started replacing massive clusters of CPUs in various highly parallelizable applications, beginning with physics modeling. Deep neural networks, consisting mostly of many matrix multiplications and additions, are also highly parallelizable.

    Around 2011, some researchers began to write CUDA implementations of neural nets—Dan Ciresan and Alex Krizhevsky were among the first. Today, high-end GPUs can deliver hundreds of times more parallel computation power when training deep neural networks than what a typical CPU is capable of. Without the sheer computational power of modern GPUs, it would be impossible to train many state-of-the-art deep neural networks.

  • High-performance, distributed training of deep neural networks that involve a huge amount of data (on the order of terabytes) in the Node.js environment
  • Figure 3.2. Two frequently used nonlinear activation functions for deep neural networks. Left: the sigmoid function S(x) = 1 / (1 + e ^ -x). Right: the rectified linear unit (relu) function relu(x) = {0:x < 0, x:x >= 0}
  • If step 3 completed correctly, the nvidia-smi command should now be available on your path. You can use it to check the status of your GPUs. It provides information such as the name, temperature-sensor reading, fan speed, processor, and memory usage of the NVIDIA GPUs installed on your machine, in addition to the current NVIDIA driver version. It is a handy tool for real-time monitoring of your GPU when you are using tfjs-node-gpu to train deep neural networks. A typical printed message from nvidia-smi looks like the following (note this machine has two NVIDIA GPUs):
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 384.111                Driver Version: 384.111                   |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  Quadro P1000        Off  | 00000000:65:00.0  On |                  N/A |
    | 41%   53C    P0   ERR! /  N/A |    620MiB /  4035MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
    |   1  Quadro M4000        Off  | 00000000:B3:00.0 Off |                  N/A |
    | 46%   30C    P8    11W / 120W |      2MiB /  8121MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
    
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID   Type   Process name                             Usage      |
    |=============================================================================|
    |    0      3876      G   /usr/lib/xorg/Xorg                           283MiB |
    +-----------------------------------------------------------------------------+
  • Deep Learning for Search

    This is an excerpt from Manning's book Deep Learning for Search.

    Deep neural networks are good at the following:

    In the past, a key difficulty in computer vision (a field of computer science that deals with processing and understanding visual data like pictures or videos), when working with images, was that it was nearly impossible to obtain an image representation containing information about the enclosed objects and visual structures. How can you make a computer tell whether an image represents a running lion, a refrigerator, a group of monkeys, and so on? DL helped to solve this problem with the creation of a special type of deep neural network that could learn image representations incrementally, one abstraction at a time, as exemplified in figure 1.9.

    Figure 1.9. Learning image abstractions incrementally

    As mentioned earlier in this chapter, DL is a subfield of ML that focuses on learning deep representations of text, images, or data in general by learning successive abstractions of increasingly meaningful representations. It does that by using deep neural networks (figure 1.10 shows a deep neural network with three hidden layers). Remember that a neural network is considered deep when it has at least two hidden layers.

    Neural search is about integrating DL and deep neural networks into search at different stages. DL’s ability to capture deep semantics lets us obtain relevant models and ranking functions that adapt well to underlying data. Deep neural networks can learn image representations that give surprisingly good results in image search. Simple similarity measures like cosine distance can be applied to DL-generated representations of data to capture semantically similar words, sentences, paragraphs, and so on; this has a number of applications, such as in the text analysis phase and in recommending similar documents. At the same time, deep neural networks can do more than “just” learn representations; they can learn to generate or translate text, and how to optimize search engine performance.