{"id":322,"date":"2018-08-27T09:18:29","date_gmt":"2018-08-27T09:18:29","guid":{"rendered":"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=322"},"modified":"2019-01-02T06:56:21","modified_gmt":"2019-01-02T06:56:21","slug":"neural-networks-i","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/chapter\/neural-networks-i\/","title":{"rendered":"Neural Networks \u2013 I"},"content":{"raw":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/yZy3QbTYwxU\" target=\"_blank\" rel=\"noopener\"><img src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a>\r\n<\/span><\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Welcome to the e-PG Pathshala Lecture Series on Machine Learning. In this and the next modules we will be discussing another important and interesting machine learning technique \u2013 Neural networks.<\/p>\r\n&nbsp;\r\n\r\n<strong>Learning Objectives:<\/strong>\r\n\r\n&nbsp;\r\n\r\nThe learning objectives of this module are as follows:\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">\u2022 To understand the Artificial Neural Network Classification Methods<\/p>\r\n<p style=\"text-align: justify\">\u2022 To explain the working of ANN, types of ANN and its applications<\/p>\r\n<p style=\"text-align: justify\">\u2022 To discuss about back propagation\u00a0 and feed forward networks.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.1 Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Neural networks are considered as models of biological neural networks. The main aim of neural networks was to design artificial systems that tried to mimic the intelligent and complex behaviour of the human brain. Another objective was the possibility of enhancing our own understanding of the human brain. Most neural networks are based on some sort of training rule. In other words, neural networks learn from examples similar to the way children learn to recognize objects by observing examples of the objects. They also need to have the capability of generalization so that they can predict about unseen data beyond the training data.<\/p>\r\n&nbsp;\r\n\r\n19.1.1 <strong>Real Neurons<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In order to understand the working of neural networks it is necessary to have an understanding about the components of the real neuron of the human brain. We will describe the Cell structure of the neuron (Figure 19.1). It consists of basically four components. The first component namely the cell body or SOMA is responsible for processing the inputs. The second component consists of a host of fine structures called dendrites that collects the input signals and passes it to the third component which is the the axon. The neuron sends out electrical signals through the axon which splits it into thousands of branches. Finally we\u00a0<span style=\"text-align: initial;font-size: 1em\">have the synaptic terminals which are responsible for the electro-chemical contacts between the neurons and inhibit or excite activity of the neuron.<\/span><\/p>\r\n\r\n<\/div>\r\n<img class=\"size-full wp-image-323 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213.png\" alt=\"\" width=\"471\" height=\"404\" \/>\r\n\r\n<strong>Structure 19.1.2 The Neuron Metaphor<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The main purpose of neurons is to receive, analyze and transmit further information x1,x2,x3, \u2026\u2026.xN in the form of signals (electric pulses). The multiple inputs are multiplied by weights wi1,wi2, \u2026..wiN\u00a0 and summed to get an input ui.This ui is given as input to the function to get the output yi (Figure 19.2) . There is an additional input unit that corresponds to an nonexisting attribute xo = 1. This is called the bias.<\/p>\r\n<img class=\"size-full wp-image-324 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214.png\" alt=\"\" width=\"358\" height=\"280\" \/>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>19.2 <\/strong><strong>Goals of Neural Computation<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Before we go into the details of neural networks let us discuss some possible goals of neural computation. The first and possibly lofty goal is to understand how the brain actually works. As of now we know that it is a big, complex collection of cells. The second and practical goal is to understand a new style of computation that is inspired by neurons and their adaptive connections. Essentially this style of computation is different from sequential computation. This neural computation approach is good for cognitive processes such as computer vision. While sequential process is suitable for large scale computation, neural style of computation is not suited for such computation. Another goal is to carry out the learning for practical problems where the algorithms learnt are useful even they do not depict how the brain works.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.3 Artificial Neural Network<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Artificial neural networks or ANNs as they are called are built of densely interconnected set of simple units, each taking several real-valued inputs and producing single-valued output. ANN is characterized by its architecture, its training or learning algorithm and its activation functions. One motivation is to capture highly parallel computations on distributed processes. However most ANN software run only on sequential machines that emulate distributed processes.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.4 Appropriate Problems for Neural Network Learning<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now let us discuss the type of problems that are suitable to be solved by ANNs. ANNs are well suited for problems that take noisy complex sensor data such as from cameras and microphones. Here the input instances are represented as attribute-value pair. The target output may be discrete-valued, real-valued, or a vector of several real or discrete-valued attributes. Training samples may not always be accurate and may contain errors. The long training time due to noisy complex data is generally acceptable. It is after the training phase, that fast evaluation of the target function is required. There is no need for humans to understand or interpret the learning of the target function.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.5 Pros and Cons of Neural Networks<\/strong>\r\n\r\n&nbsp;\r\n\r\n<strong>19.5.1 Pros<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Basically neural networks are suited to problems that take continuous data especially in domains with little initial knowledge. Neural networks are easy to use and basically learns by example and need very little user domain\u2010specific expertise. Neural networks have the ability to solve new kinds of problems that are difficult and sometimes impossible to explicitly define. ANNs can be used when a good functional model is not known. Neural computation provides\u00a0<span style=\"text-align: initial;font-size: 1em\">human characteristics to problem solving that are otherwise difficult to simulate. It is flexible and easy to maintain. Although training may take time, once trained it exhibits fast processing speed.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">ANNs are generally robust and have the ability to cope with incomplete or fuzzy data. As ANNs consist of a large number of massively interconnected parallel processing units, operating on the same problem and are fast when parallel processors are used for implementation.<\/span><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong>Cons<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The main disadvantage of ANNs is that they do not produce an explicit model. ANNs do not provide explanation capabilities as the results are based on connection weights which usually do not have obvious interpretations. The main disadvantage of ANNs is that the solution is not interpretable, that is it acts as a \u201cblack box\u201d. The learning during the training phase is generally slow. For achieving good generalization many input data points may be required for training.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.6 Linear Models<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In a simple problem of linear regression we have the training data X = {x1k },<\/p>\r\n<p style=\"text-align: justify\">k=1,..,N with corresponding output Y = {yk }, k=1,..,N and our job is to find the parameters that predict the output Y from the data X in a linear fashion that is<\/p>\r\n&nbsp;\r\n\r\nyk \u2248 wo + w1 x1k.\r\n\r\n&nbsp;\r\n\r\nLet\u00a0 us\u00a0 first\u00a0 consider\u00a0 the\u00a0 general\u00a0 form of\u00a0 linear\u00a0 models\u00a0 for\u00a0 regression\u00a0 and classification as given below:\r\n\r\n<img class=\"size-full wp-image-325 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215.png\" alt=\"\" width=\"350\" height=\"91\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">such as Gaussian functions, or sigmoid basis functions, W are the weights we are trying to learn.As we have already discussed for regression <em>f is identity function<\/em> (in the case of Linear Regression), while for classification <em>f is a nonlinear activation<\/em> function as specified in generalized linear regression). If the function f is sigmoid than the regression is called logistic regression and is as given below:<\/p>\r\n<img class=\"size-full wp-image-326 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-216.png\" alt=\"\" width=\"209\" height=\"92\" \/>\r\n\r\n<strong>19.6.1 Extending Linear Models<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The linear models that we have discussed are useful for discussing analytical and computational properties but however have limited applicability mainly due to the curse of dimensionality. For example the number of polynomial co-efficients that are needed, like finding means of Gaussians is difficult. Therefore we extend the scope by adapting basis functions \u03d5j to the parameters. This approach is suited for large scale problems.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Both SVMs and Neural Networks address this limitation. In the case of SVM a varying number of basis functions <em>M,<\/em> centred around training data points are used and a subset of these are selected during training. In the case of ANNs the number of basis functions <em>M is fixed<\/em> but \u03d5j have their own parameters {wji} which are adapted appropriately during training.<\/p>\r\n<img class=\"size-full wp-image-327 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217.png\" alt=\"\" width=\"433\" height=\"73\" \/>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>19.7 SVM versus Neural Networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now let us compare SVM and ANNs. In the case of SVM, training involves non-linear optimization. The objective function is convex, but however the optimization is straightforward usually with a single minimum. The number of basis functions to be considered is much smaller than the number of training points. SVMs produce probabilistic outputs at the expense of non-convex optimization.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Neural Network on the other hand has only a fixed number of basis functions, and parametric forms. Multilayer perceptron uses layers of logistic regression models. ANNs also involve non-convex optimization during training (many minima). At the expense of longer periods of training, we get a more compact and faster model after the learning process is completed<strong>.<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>19.8 Origin of Neural Networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The origin of neural networks was based on the desire to find information processing models of biological systems. The term covers a wide range of models and most them make exaggerated claims of biological plausibility. Moreover the biological realism imposes unnecessary constraints. However neural networks are efficient models for machine learning especially multilayer perceptrons. The neural network parameters can be obtained using the\u00a0<span style=\"text-align: initial;font-size: 1em\">maximum likelihood framework. It is basically a nonlinear optimization problem and requires evaluating derivative of log-likelihood function w.r.t network parameters which can be performed efficiently using error back propagation.<\/span><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong>19.9 The Structure of the Neural Network<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The neural network can be viewed as a generalization of linear models. Each ANN is composed of a collection of perceptrons grouped in layers. A typical and simple network consists of three layers namely input, intermediate (called the <strong><em>hidden layer<\/em><\/strong>) and output. Several hidden layers can be placed between the input and output layers.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.10 Types of Neural Network<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The simplest and widely used neural network is the Feed-forward neural network where the information travels in one direction only (Figure 19.3). In other words there is no feedback or no cycles that is it is a Directed Acyclic graph. These types of neural networks are used for pattern recognition.<\/p>\r\n<img class=\"size-full wp-image-328 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218.png\" alt=\"\" width=\"285\" height=\"313\" \/>\r\n<p style=\"text-align: justify\">In another type of neural networks, the signals travel in both directions and the networks become complicated and dynamic (Figure 19.4). These networks have context units that act as internal memory to store a part of the inputs and use this internal memory to process arbitrary sequences of inputs. Recurrent neural networks are usually used to learn temporal patterns<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-329 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219.png\" alt=\"\" width=\"344\" height=\"314\" \/>\r\n\r\n<strong>19.11 Types of Neuron<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now let us see the different types of neurons that can be designed based on the function used. We show (Figure 19.5) only a few but potentially more functions can be designed. The simplest is the linear neuron where the function<img class=\"size-full wp-image-330 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220.png\" alt=\"\" width=\"523\" height=\"260\" \/><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">used is linear. Then we have the use of the sigmoid function resulting in the logistic neuron. We also show a simple step function resulting in the perceptron.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>19.12 Feed Forward Network Functions<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">A neural network can also be represented like linear models but where the basis functions are generalized. The activation function used for regression is the identity function while for classification a nonlinear function like the sigmoid function is used. The weight coefficients wj are adjusted during training. Please note that there can be several activation functions.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The basis function \u03d5j (x) is a nonlinear function, such as tanh, and is a linear combination of D inputs and its parameters are also adjusted during training. Here f is the activation function and \u03d5j (x) is the basis function.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-331 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-221.png\" alt=\"\" width=\"283\" height=\"81\" \/>\r\n<p style=\"text-align: justify\">Here the superscript (1) indicates that the parameters we are talking about are in the first layer of the network. The parameters wji are referred to as weights while wj0 with input 1 are referred to as biases. The quantities aj which consider the combination of D weighted inputs and the bias are known as activations.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-332 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222.png\" alt=\"\" width=\"412\" height=\"368\" \/>\r\n<p style=\"text-align: justify\">Each activation aj is transformed using differentiable nonlinear activation functions zj=h(aj). The zj correspond to outputs of basis functions \u03d5j(x) or the first layer of network or hidden units. The nonlinear functions h are chosen to be sigmoidal. Two examples of the above activation functions are<\/p>\r\n\r\n<ul>\r\n \t<li>logistic sigmoid [1\/1+exp(-<em>a)]<\/em><\/li>\r\n \t<li><em>tanh [(e<\/em><em>a<\/em><em>-e<\/em><em>-a<\/em><em>)\/(e<\/em><em>a<\/em><em>+e<\/em><em>-a<\/em><em>)]<\/em><\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>19.12.2<\/strong>\u00a0 <strong>Activation Function<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The activation function used depends on the nature of the data and the assumed distribution of target variables. A variety of activation functions can be used. Some of them are Sigmoidal (S-shaped), Logistic sigmoid [1\/1+exp(-<em>a)<\/em>] (Used for binary classification), Hyperbolic tangent - tanh and the radial basis function given below:<\/p>\r\n<img class=\"size-full wp-image-333 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-223.png\" alt=\"\" width=\"202\" height=\"76\" \/>\r\n<p style=\"text-align: justify\">Softmax is another activation function often used for multi-class classification and is as given below:<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-334 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-224.png\" alt=\"\" width=\"162\" height=\"90\" \/>\r\n<p style=\"text-align: justify\">Th Identity function <em>y<\/em><em>k<\/em> <em>= a<\/em><em>k<\/em> is generally useful for regression. It is possible to use different activation function in each unit.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>19.12.3 Second Layer: Activation Functions<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Values of <em>z<\/em><em>j<\/em> <em>are again linearly combined to give<\/em> output unit activations<\/p>\r\n<img class=\"size-full wp-image-335 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225.png\" alt=\"\" width=\"505\" height=\"120\" \/>\r\n<p style=\"text-align: justify\">Where <em>K is the total number of outputs<\/em><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Output unit activations are transformed by using appropriate activation function to give network outputs <em>y<\/em><em>k<\/em> (Figure 19.6)<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>19.12.4 Overall Network Function<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Combining the stages of the overall function with sigmoidal output<\/p>\r\n<img class=\"size-full wp-image-336 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226.png\" alt=\"\" width=\"586\" height=\"85\" \/>\r\n<p style=\"text-align: justify\">where w is the set of all weights and bias parameters. Note presence of both \u03c3 and <em>h functions<\/em><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Thus a neural network is simply a set of nonlinear functions from input variables {xi} to output variables {yk} controlled by vector w of adjustable parameters.<\/p>\r\n&nbsp;\r\n\r\n<strong>19.12.5<\/strong>\u00a0\u00a0\u00a0 <strong>Forward Propagation<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The bias parameters can be absorbed into weight parameters by defining a new input variable x0<\/p>\r\n<img class=\"size-full wp-image-337 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227.png\" alt=\"\" width=\"425\" height=\"118\" \/>\r\n<p style=\"text-align: justify\">The process of evaluation is forward propagation through network. The multilayer perceptron uses only continuous sigmoidal functions.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong>19.12.6 Feed Forward Networks<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Therefore we connect together a number of these units to form the feed-forward network (DAG). Figure 19.6 shows a network with one layer of hidden unit and basically implements the following function<\/p>\r\n<img class=\"size-full wp-image-338 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228.png\" alt=\"\" width=\"509\" height=\"157\" \/>\r\n<p style=\"text-align: justify\">Therefore we have looked at generalized linear models of the form:<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-339 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229.png\" alt=\"\" width=\"353\" height=\"95\" \/>\r\n<p style=\"text-align: justify\">For fixed non-linear basis function \u00d8(.), we now extend this model by allowing adaptive basis function and learning their parameters. In feed-forward networks (a.k.a. Multi-layer perceptrons) we let each basis function be another non-linear function of linear combination of the inputs.<\/p>\r\n<img class=\"size-full wp-image-340 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-230.png\" alt=\"\" width=\"279\" height=\"123\" \/>\r\n<p style=\"text-align: justify\">Starting with input x= (x1,\u2026,xD), we construct linear combinations. The aj are known as activations which pass through an activation function h(.) to get output zj=h(aj). The model of an individual neuron is summarized (Figure 19.7).<\/p>\r\n<img class=\"size-full wp-image-341 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231.png\" alt=\"\" width=\"601\" height=\"269\" \/>\r\n\r\n&nbsp;\r\n\r\n19.13 <strong>Representation power of Feed Forward Networks<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The representation power of the feed forward network depends on the width and depth of the networks. <strong>Boolean functions<\/strong> can be represented by network with two layers of units where the number of hidden units required grows exponentially. <strong>Bounded continuous functions c<\/strong>an be approximated with arbitrarily small error, by network with two layers of units. <strong>Arbitrary functions<\/strong> can be approximated to arbitrary accuracy by a network with three layers of units.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">19.14 <strong>Two-class Classification<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Neural Networks can also be used for two-class classification. Here there are two puts, two hidden units with <em>tan h activation functions.<\/em> In Figure 19.8 the red line shows the decision boundary for network., while the d ashed lines are the contours for two hidden units and the green line shows the decision boundary from distributions of the data<\/p>\r\n<img class=\"size-full wp-image-342 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232.png\" alt=\"\" width=\"323\" height=\"314\" \/>\r\n<p style=\"text-align: justify\">19.15 <strong>Network Training<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now the main question to be answered is the setting of the weight parameters given a specified network structure. For this we first define a criterion to measure how well our network performs, and then optimize against it. For regression, training data are (xn, t), tn \u03ad R, squared error can be defined as:<\/p>\r\n<img class=\"size-full wp-image-343 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233.png\" alt=\"\" width=\"473\" height=\"332\" \/>\r\n<p style=\"text-align: justify\"><strong>19.15.1 Parameter Optimization: Geometrical View<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">For these problems, the error function E(w) is complex since it is Non-Convex with local minima. The E(w) can be viewed as a surface sitting over weight space where wA is the local minimum and wB is the global minimum. We need to find a minimum point wC which is the local gradient and is given by vector \u2207E(w) which essentially points in the direction of greatest rate of increase of E(w) and so correspondingly a negative gradient points to rate of greatest decrease.<\/p>\r\n<img class=\"size-full wp-image-344 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-234.png\" alt=\"\" width=\"251\" height=\"274\" \/>\r\n<ol start=\"19\">\r\n \t<li style=\"text-align: justify\"><strong> 16 Neural Network Learning Problem<\/strong><\/li>\r\n<\/ol>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now the goal is to learn the weights w from a labelled set of training samples. The learning procedure consists of two stages namely the evaluation of derivatives of error function \u2207E(w) with respect to weights w1,..wT and the use of these derivatives to compute adjustments to the weights.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">w(t+1) = w(t)\u2212\u03b7\u2207E(w(t) )<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The total number of weights is T=(D+1)M+(M+1)K =M(D+K+1)+K where D is the number of inputs, M is the number of hidden units, and K is required number of outputs.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><strong><em>19.16.1 Descent Methods<\/em><\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The typical strategy for optimization problems of this sort is a descent method:<\/p>\r\n<p style=\"text-align: justify\">w(t+1) = w(t) + w(t)<\/p>\r\nOne such method is the gradient descent \u2207E(w(t)) method given below\r\n\r\nw(\u03c4+1)=w(\u03c4)\u2212\u03b7\u2207E(w(\u03c4)) \u2013 here \u03b7 is the learning rate\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">We can use the stochastic gradient descent \u2207En(w(t)) or the second order Newton-Raphson method. The stochastic gradient descent is particularly effective. For a good optimization strategy the gradient based algorithm can run multiple times, using a different starting point every time. Starting with a range of different initial weight sets increases the chances of the chance of finding the global minimum<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The function y(xn , w) implemented by a network is complex and it is necessary to compute error function derivatives with respect to weights. Numerical methods can be used for calculating error derivatives, using finite differences. However the use of gradients improves the computational speed.<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>you can view video on Neural Networks \u2013 I<\/strong><\/td>\r\n<td><a href=\"https:\/\/youtu.be\/yZy3QbTYwxU\" target=\"_blank\" rel=\"noopener\"><img class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n\r\n<strong>Summary<\/strong>\r\n<ul>\r\n \t<li style=\"text-align: justify\">Discussed the neural network basics and Learning paradigm<\/li>\r\n \t<li style=\"text-align: justify\">Discussed the pros and cons, types of problems handled by neural networks.<\/li>\r\n \t<li style=\"text-align: justify\">Explained the architecture and learning method of Feed-Forward neural network<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>Web Links<\/strong>\r\n<ul>\r\n \t<li>http:\/\/www.iasri.res.in\/sscnars\/data_mining\/4-Artificial%20Neural%20Networks_Amrender.pdf<\/li>\r\n \t<li>http:\/\/web.cecs.pdx.edu\/~mperkows\/CLASS_479\/2011.ALL_LECTURES\/2011-0480.Neural-Networks.ppt<\/li>\r\n \t<li>http:\/\/www.cse.hcmut.edu.vn\/~dtanh\/download\/ANN.ppt<\/li>\r\n \t<li>plato.acadiau.ca\/courses\/comp\/dsilver\/3503\/Slides\/ANN_ml.ppt<\/li>\r\n \t<li>http:\/\/www.cse.scu.edu\/~tschwarz\/coen266_09\/PPT\/Artificial%20Neural%20Networks.ppt<\/li>\r\n \t<li>http:\/\/cdn.intechopen.com\/pdfs\/4606\/InTech-<\/li>\r\n \t<li>Bio_inspired_algorithms_for_tsp_and_generalized_tsp.pdf<\/li>\r\n \t<li>https:\/\/www.cs.cmu.edu\/afs\/cs.cmu.edu\/academic\/class\/15381...\/nn.pdf<\/li>\r\n \t<li>Http:\/\/vda.univie.ac.at\/Teaching\/ML\/15s\/<\/li>\r\n \t<li>pantherfile.uwm.edu\/borji\/www\/lecturesML\/NN\/Training.pdf<\/li>\r\n \t<li>https:\/\/www.linkedin.com\/pulse\/neural-network-based-forecasting-shaile<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>Supporting &amp; Reference Materials<\/strong>\r\n<ul>\r\n \t<li>Christopher M. Bishop, \u201cPattern Recognition and Machine Learning\u201d, 2007<\/li>\r\n \t<li>David Kriesel, \u201cA Brief Introduction to Neural Networks\u201d, 2005<\/li>\r\n \t<li>Yegnanarayana, \u201cArtificial Neural Networks\u201d, Prentice-Hall of India Private Limited, 2005<\/li>\r\n \t<li>Tom Mitchell, \u201cMachine Learning\u201d, McGraw Hill, 1997<\/li>\r\n<\/ul>","rendered":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/yZy3QbTYwxU\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a><br \/>\n<\/span><\/div>\n<div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Welcome to the e-PG Pathshala Lecture Series on Machine Learning. In this and the next modules we will be discussing another important and interesting machine learning technique \u2013 Neural networks.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Learning Objectives:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>The learning objectives of this module are as follows:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">\u2022 To understand the Artificial Neural Network Classification Methods<\/p>\n<p style=\"text-align: justify\">\u2022 To explain the working of ANN, types of ANN and its applications<\/p>\n<p style=\"text-align: justify\">\u2022 To discuss about back propagation\u00a0 and feed forward networks.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.1 Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Neural networks are considered as models of biological neural networks. The main aim of neural networks was to design artificial systems that tried to mimic the intelligent and complex behaviour of the human brain. Another objective was the possibility of enhancing our own understanding of the human brain. Most neural networks are based on some sort of training rule. In other words, neural networks learn from examples similar to the way children learn to recognize objects by observing examples of the objects. They also need to have the capability of generalization so that they can predict about unseen data beyond the training data.<\/p>\n<p>&nbsp;<\/p>\n<p>19.1.1 <strong>Real Neurons<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In order to understand the working of neural networks it is necessary to have an understanding about the components of the real neuron of the human brain. We will describe the Cell structure of the neuron (Figure 19.1). It consists of basically four components. The first component namely the cell body or SOMA is responsible for processing the inputs. The second component consists of a host of fine structures called dendrites that collects the input signals and passes it to the third component which is the the axon. The neuron sends out electrical signals through the axon which splits it into thousands of branches. Finally we\u00a0<span style=\"text-align: initial;font-size: 1em\">have the synaptic terminals which are responsible for the electro-chemical contacts between the neurons and inhibit or excite activity of the neuron.<\/span><\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-323 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213.png\" alt=\"\" width=\"471\" height=\"404\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213.png 471w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213-300x257.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213-65x56.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213-225x193.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-213-350x300.png 350w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p><strong>Structure 19.1.2 The Neuron Metaphor<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The main purpose of neurons is to receive, analyze and transmit further information x1,x2,x3, \u2026\u2026.xN in the form of signals (electric pulses). The multiple inputs are multiplied by weights wi1,wi2, \u2026..wiN\u00a0 and summed to get an input ui.This ui is given as input to the function to get the output yi (Figure 19.2) . There is an additional input unit that corresponds to an nonexisting attribute xo = 1. This is called the bias.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-324 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214.png\" alt=\"\" width=\"358\" height=\"280\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214.png 358w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214-300x235.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214-65x51.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214-225x176.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-214-350x274.png 350w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>19.2 <\/strong><strong>Goals of Neural Computation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Before we go into the details of neural networks let us discuss some possible goals of neural computation. The first and possibly lofty goal is to understand how the brain actually works. As of now we know that it is a big, complex collection of cells. The second and practical goal is to understand a new style of computation that is inspired by neurons and their adaptive connections. Essentially this style of computation is different from sequential computation. This neural computation approach is good for cognitive processes such as computer vision. While sequential process is suitable for large scale computation, neural style of computation is not suited for such computation. Another goal is to carry out the learning for practical problems where the algorithms learnt are useful even they do not depict how the brain works.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.3 Artificial Neural Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Artificial neural networks or ANNs as they are called are built of densely interconnected set of simple units, each taking several real-valued inputs and producing single-valued output. ANN is characterized by its architecture, its training or learning algorithm and its activation functions. One motivation is to capture highly parallel computations on distributed processes. However most ANN software run only on sequential machines that emulate distributed processes.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.4 Appropriate Problems for Neural Network Learning<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now let us discuss the type of problems that are suitable to be solved by ANNs. ANNs are well suited for problems that take noisy complex sensor data such as from cameras and microphones. Here the input instances are represented as attribute-value pair. The target output may be discrete-valued, real-valued, or a vector of several real or discrete-valued attributes. Training samples may not always be accurate and may contain errors. The long training time due to noisy complex data is generally acceptable. It is after the training phase, that fast evaluation of the target function is required. There is no need for humans to understand or interpret the learning of the target function.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.5 Pros and Cons of Neural Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.5.1 Pros<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Basically neural networks are suited to problems that take continuous data especially in domains with little initial knowledge. Neural networks are easy to use and basically learns by example and need very little user domain\u2010specific expertise. Neural networks have the ability to solve new kinds of problems that are difficult and sometimes impossible to explicitly define. ANNs can be used when a good functional model is not known. Neural computation provides\u00a0<span style=\"text-align: initial;font-size: 1em\">human characteristics to problem solving that are otherwise difficult to simulate. It is flexible and easy to maintain. Although training may take time, once trained it exhibits fast processing speed.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">ANNs are generally robust and have the ability to cope with incomplete or fuzzy data. As ANNs consist of a large number of massively interconnected parallel processing units, operating on the same problem and are fast when parallel processors are used for implementation.<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Cons<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The main disadvantage of ANNs is that they do not produce an explicit model. ANNs do not provide explanation capabilities as the results are based on connection weights which usually do not have obvious interpretations. The main disadvantage of ANNs is that the solution is not interpretable, that is it acts as a \u201cblack box\u201d. The learning during the training phase is generally slow. For achieving good generalization many input data points may be required for training.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.6 Linear Models<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In a simple problem of linear regression we have the training data X = {x1k },<\/p>\n<p style=\"text-align: justify\">k=1,..,N with corresponding output Y = {yk }, k=1,..,N and our job is to find the parameters that predict the output Y from the data X in a linear fashion that is<\/p>\n<p>&nbsp;<\/p>\n<p>yk \u2248 wo + w1 x1k.<\/p>\n<p>&nbsp;<\/p>\n<p>Let\u00a0 us\u00a0 first\u00a0 consider\u00a0 the\u00a0 general\u00a0 form of\u00a0 linear\u00a0 models\u00a0 for\u00a0 regression\u00a0 and classification as given below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-325 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215.png\" alt=\"\" width=\"350\" height=\"91\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215.png 350w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215-300x78.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215-65x17.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-215-225x59.png 225w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">such as Gaussian functions, or sigmoid basis functions, W are the weights we are trying to learn.As we have already discussed for regression <em>f is identity function<\/em> (in the case of Linear Regression), while for classification <em>f is a nonlinear activation<\/em> function as specified in generalized linear regression). If the function f is sigmoid than the regression is called logistic regression and is as given below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-326 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-216.png\" alt=\"\" width=\"209\" height=\"92\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-216.png 209w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-216-65x29.png 65w\" sizes=\"auto, (max-width: 209px) 100vw, 209px\" \/><\/p>\n<p><strong>19.6.1 Extending Linear Models<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The linear models that we have discussed are useful for discussing analytical and computational properties but however have limited applicability mainly due to the curse of dimensionality. For example the number of polynomial co-efficients that are needed, like finding means of Gaussians is difficult. Therefore we extend the scope by adapting basis functions \u03d5j to the parameters. This approach is suited for large scale problems.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Both SVMs and Neural Networks address this limitation. In the case of SVM a varying number of basis functions <em>M,<\/em> centred around training data points are used and a subset of these are selected during training. In the case of ANNs the number of basis functions <em>M is fixed<\/em> but \u03d5j have their own parameters {wji} which are adapted appropriately during training.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-327 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217.png\" alt=\"\" width=\"433\" height=\"73\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217.png 433w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217-300x51.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217-65x11.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217-225x38.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-217-350x59.png 350w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>19.7 SVM versus Neural Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now let us compare SVM and ANNs. In the case of SVM, training involves non-linear optimization. The objective function is convex, but however the optimization is straightforward usually with a single minimum. The number of basis functions to be considered is much smaller than the number of training points. SVMs produce probabilistic outputs at the expense of non-convex optimization.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Neural Network on the other hand has only a fixed number of basis functions, and parametric forms. Multilayer perceptron uses layers of logistic regression models. ANNs also involve non-convex optimization during training (many minima). At the expense of longer periods of training, we get a more compact and faster model after the learning process is completed<strong>.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.8 Origin of Neural Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The origin of neural networks was based on the desire to find information processing models of biological systems. The term covers a wide range of models and most them make exaggerated claims of biological plausibility. Moreover the biological realism imposes unnecessary constraints. However neural networks are efficient models for machine learning especially multilayer perceptrons. The neural network parameters can be obtained using the\u00a0<span style=\"text-align: initial;font-size: 1em\">maximum likelihood framework. It is basically a nonlinear optimization problem and requires evaluating derivative of log-likelihood function w.r.t network parameters which can be performed efficiently using error back propagation.<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>19.9 The Structure of the Neural Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The neural network can be viewed as a generalization of linear models. Each ANN is composed of a collection of perceptrons grouped in layers. A typical and simple network consists of three layers namely input, intermediate (called the <strong><em>hidden layer<\/em><\/strong>) and output. Several hidden layers can be placed between the input and output layers.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.10 Types of Neural Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The simplest and widely used neural network is the Feed-forward neural network where the information travels in one direction only (Figure 19.3). In other words there is no feedback or no cycles that is it is a Directed Acyclic graph. These types of neural networks are used for pattern recognition.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-328 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218.png\" alt=\"\" width=\"285\" height=\"313\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218.png 285w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218-273x300.png 273w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218-65x71.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-218-225x247.png 225w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/p>\n<p style=\"text-align: justify\">In another type of neural networks, the signals travel in both directions and the networks become complicated and dynamic (Figure 19.4). These networks have context units that act as internal memory to store a part of the inputs and use this internal memory to process arbitrary sequences of inputs. Recurrent neural networks are usually used to learn temporal patterns<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-329 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219.png\" alt=\"\" width=\"344\" height=\"314\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219.png 344w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219-300x274.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219-65x59.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-219-225x205.png 225w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/p>\n<p><strong>19.11 Types of Neuron<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now let us see the different types of neurons that can be designed based on the function used. We show (Figure 19.5) only a few but potentially more functions can be designed. The simplest is the linear neuron where the function<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-330 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220.png\" alt=\"\" width=\"523\" height=\"260\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220.png 523w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220-300x149.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220-65x32.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220-225x112.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-220-350x174.png 350w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">used is linear. Then we have the use of the sigmoid function resulting in the logistic neuron. We also show a simple step function resulting in the perceptron.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>19.12 Feed Forward Network Functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">A neural network can also be represented like linear models but where the basis functions are generalized. The activation function used for regression is the identity function while for classification a nonlinear function like the sigmoid function is used. The weight coefficients wj are adjusted during training. Please note that there can be several activation functions.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The basis function \u03d5j (x) is a nonlinear function, such as tanh, and is a linear combination of D inputs and its parameters are also adjusted during training. Here f is the activation function and \u03d5j (x) is the basis function.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-331 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-221.png\" alt=\"\" width=\"283\" height=\"81\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-221.png 283w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-221-65x19.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-221-225x64.png 225w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/p>\n<p style=\"text-align: justify\">Here the superscript (1) indicates that the parameters we are talking about are in the first layer of the network. The parameters wji are referred to as weights while wj0 with input 1 are referred to as biases. The quantities aj which consider the combination of D weighted inputs and the bias are known as activations.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-332 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222.png\" alt=\"\" width=\"412\" height=\"368\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222.png 412w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222-300x268.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222-65x58.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222-225x201.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-222-350x313.png 350w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p style=\"text-align: justify\">Each activation aj is transformed using differentiable nonlinear activation functions zj=h(aj). The zj correspond to outputs of basis functions \u03d5j(x) or the first layer of network or hidden units. The nonlinear functions h are chosen to be sigmoidal. Two examples of the above activation functions are<\/p>\n<ul>\n<li>logistic sigmoid [1\/1+exp(-<em>a)]<\/em><\/li>\n<li><em>tanh [(e<\/em><em>a<\/em><em>-e<\/em><em>-a<\/em><em>)\/(e<\/em><em>a<\/em><em>+e<\/em><em>-a<\/em><em>)]<\/em><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>19.12.2<\/strong>\u00a0 <strong>Activation Function<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The activation function used depends on the nature of the data and the assumed distribution of target variables. A variety of activation functions can be used. Some of them are Sigmoidal (S-shaped), Logistic sigmoid [1\/1+exp(-<em>a)<\/em>] (Used for binary classification), Hyperbolic tangent &#8211; tanh and the radial basis function given below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-333 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-223.png\" alt=\"\" width=\"202\" height=\"76\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-223.png 202w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-223-65x24.png 65w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/p>\n<p style=\"text-align: justify\">Softmax is another activation function often used for multi-class classification and is as given below:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-334 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-224.png\" alt=\"\" width=\"162\" height=\"90\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-224.png 162w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-224-65x36.png 65w\" sizes=\"auto, (max-width: 162px) 100vw, 162px\" \/><\/p>\n<p style=\"text-align: justify\">Th Identity function <em>y<\/em><em>k<\/em> <em>= a<\/em><em>k<\/em> is generally useful for regression. It is possible to use different activation function in each unit.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>19.12.3 Second Layer: Activation Functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Values of <em>z<\/em><em>j<\/em> <em>are again linearly combined to give<\/em> output unit activations<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-335 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225.png\" alt=\"\" width=\"505\" height=\"120\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225.png 505w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225-300x71.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225-65x15.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225-225x53.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-225-350x83.png 350w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/p>\n<p style=\"text-align: justify\">Where <em>K is the total number of outputs<\/em><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Output unit activations are transformed by using appropriate activation function to give network outputs <em>y<\/em><em>k<\/em> (Figure 19.6)<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>19.12.4 Overall Network Function<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Combining the stages of the overall function with sigmoidal output<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-336 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226.png\" alt=\"\" width=\"586\" height=\"85\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226.png 586w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226-300x44.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226-65x9.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226-225x33.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-226-350x51.png 350w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/p>\n<p style=\"text-align: justify\">where w is the set of all weights and bias parameters. Note presence of both \u03c3 and <em>h functions<\/em><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Thus a neural network is simply a set of nonlinear functions from input variables {xi} to output variables {yk} controlled by vector w of adjustable parameters.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>19.12.5<\/strong>\u00a0\u00a0\u00a0 <strong>Forward Propagation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The bias parameters can be absorbed into weight parameters by defining a new input variable x0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-337 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227.png\" alt=\"\" width=\"425\" height=\"118\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227.png 425w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227-300x83.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227-65x18.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227-225x62.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-227-350x97.png 350w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/p>\n<p style=\"text-align: justify\">The process of evaluation is forward propagation through network. The multilayer perceptron uses only continuous sigmoidal functions.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong>19.12.6 Feed Forward Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Therefore we connect together a number of these units to form the feed-forward network (DAG). Figure 19.6 shows a network with one layer of hidden unit and basically implements the following function<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-338 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228.png\" alt=\"\" width=\"509\" height=\"157\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228.png 509w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228-300x93.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228-225x69.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-228-350x108.png 350w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/p>\n<p style=\"text-align: justify\">Therefore we have looked at generalized linear models of the form:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-339 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229.png\" alt=\"\" width=\"353\" height=\"95\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229.png 353w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229-300x81.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229-65x17.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229-225x61.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-229-350x94.png 350w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/p>\n<p style=\"text-align: justify\">For fixed non-linear basis function \u00d8(.), we now extend this model by allowing adaptive basis function and learning their parameters. In feed-forward networks (a.k.a. Multi-layer perceptrons) we let each basis function be another non-linear function of linear combination of the inputs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-340 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-230.png\" alt=\"\" width=\"279\" height=\"123\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-230.png 279w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-230-65x29.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-230-225x99.png 225w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/p>\n<p style=\"text-align: justify\">Starting with input x= (x1,\u2026,xD), we construct linear combinations. The aj are known as activations which pass through an activation function h(.) to get output zj=h(aj). The model of an individual neuron is summarized (Figure 19.7).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-341 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231.png\" alt=\"\" width=\"601\" height=\"269\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231.png 601w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231-300x134.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231-65x29.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231-225x101.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-231-350x157.png 350w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>19.13 <strong>Representation power of Feed Forward Networks<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The representation power of the feed forward network depends on the width and depth of the networks. <strong>Boolean functions<\/strong> can be represented by network with two layers of units where the number of hidden units required grows exponentially. <strong>Bounded continuous functions c<\/strong>an be approximated with arbitrarily small error, by network with two layers of units. <strong>Arbitrary functions<\/strong> can be approximated to arbitrary accuracy by a network with three layers of units.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">19.14 <strong>Two-class Classification<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Neural Networks can also be used for two-class classification. Here there are two puts, two hidden units with <em>tan h activation functions.<\/em> In Figure 19.8 the red line shows the decision boundary for network., while the d ashed lines are the contours for two hidden units and the green line shows the decision boundary from distributions of the data<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-342 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232.png\" alt=\"\" width=\"323\" height=\"314\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232.png 323w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232-300x292.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232-65x63.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-232-225x219.png 225w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/p>\n<p style=\"text-align: justify\">19.15 <strong>Network Training<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now the main question to be answered is the setting of the weight parameters given a specified network structure. For this we first define a criterion to measure how well our network performs, and then optimize against it. For regression, training data are (xn, t), tn \u03ad R, squared error can be defined as:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-343 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233.png\" alt=\"\" width=\"473\" height=\"332\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233.png 473w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233-300x211.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233-65x46.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233-225x158.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-233-350x246.png 350w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/p>\n<p style=\"text-align: justify\"><strong>19.15.1 Parameter Optimization: Geometrical View<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">For these problems, the error function E(w) is complex since it is Non-Convex with local minima. The E(w) can be viewed as a surface sitting over weight space where wA is the local minimum and wB is the global minimum. We need to find a minimum point wC which is the local gradient and is given by vector \u2207E(w) which essentially points in the direction of greatest rate of increase of E(w) and so correspondingly a negative gradient points to rate of greatest decrease.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-344 aligncenter\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-234.png\" alt=\"\" width=\"251\" height=\"274\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-234.png 251w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-234-65x71.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2018\/08\/Untitled-234-225x246.png 225w\" sizes=\"auto, (max-width: 251px) 100vw, 251px\" \/><\/p>\n<ol start=\"19\">\n<li style=\"text-align: justify\"><strong> 16 Neural Network Learning Problem<\/strong><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now the goal is to learn the weights w from a labelled set of training samples. The learning procedure consists of two stages namely the evaluation of derivatives of error function \u2207E(w) with respect to weights w1,..wT and the use of these derivatives to compute adjustments to the weights.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">w(t+1) = w(t)\u2212\u03b7\u2207E(w(t) )<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The total number of weights is T=(D+1)M+(M+1)K =M(D+K+1)+K where D is the number of inputs, M is the number of hidden units, and K is required number of outputs.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><strong><em>19.16.1 Descent Methods<\/em><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The typical strategy for optimization problems of this sort is a descent method:<\/p>\n<p style=\"text-align: justify\">w(t+1) = w(t) + w(t)<\/p>\n<p>One such method is the gradient descent \u2207E(w(t)) method given below<\/p>\n<p>w(\u03c4+1)=w(\u03c4)\u2212\u03b7\u2207E(w(\u03c4)) \u2013 here \u03b7 is the learning rate<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">We can use the stochastic gradient descent \u2207En(w(t)) or the second order Newton-Raphson method. The stochastic gradient descent is particularly effective. For a good optimization strategy the gradient based algorithm can run multiple times, using a different starting point every time. Starting with a range of different initial weight sets increases the chances of the chance of finding the global minimum<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The function y(xn , w) implemented by a network is complex and it is necessary to compute error function derivatives with respect to weights. Numerical methods can be used for calculating error derivatives, using finite differences. However the use of gradients improves the computational speed.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>you can view video on Neural Networks \u2013 I<\/strong><\/td>\n<td><a href=\"https:\/\/youtu.be\/yZy3QbTYwxU\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Summary<\/strong><\/p>\n<ul>\n<li style=\"text-align: justify\">Discussed the neural network basics and Learning paradigm<\/li>\n<li style=\"text-align: justify\">Discussed the pros and cons, types of problems handled by neural networks.<\/li>\n<li style=\"text-align: justify\">Explained the architecture and learning method of Feed-Forward neural network<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Web Links<\/strong><\/p>\n<ul>\n<li>http:\/\/www.iasri.res.in\/sscnars\/data_mining\/4-Artificial%20Neural%20Networks_Amrender.pdf<\/li>\n<li>http:\/\/web.cecs.pdx.edu\/~mperkows\/CLASS_479\/2011.ALL_LECTURES\/2011-0480.Neural-Networks.ppt<\/li>\n<li>http:\/\/www.cse.hcmut.edu.vn\/~dtanh\/download\/ANN.ppt<\/li>\n<li>plato.acadiau.ca\/courses\/comp\/dsilver\/3503\/Slides\/ANN_ml.ppt<\/li>\n<li>http:\/\/www.cse.scu.edu\/~tschwarz\/coen266_09\/PPT\/Artificial%20Neural%20Networks.ppt<\/li>\n<li>http:\/\/cdn.intechopen.com\/pdfs\/4606\/InTech-<\/li>\n<li>Bio_inspired_algorithms_for_tsp_and_generalized_tsp.pdf<\/li>\n<li>https:\/\/www.cs.cmu.edu\/afs\/cs.cmu.edu\/academic\/class\/15381&#8230;\/nn.pdf<\/li>\n<li>Http:\/\/vda.univie.ac.at\/Teaching\/ML\/15s\/<\/li>\n<li>pantherfile.uwm.edu\/borji\/www\/lecturesML\/NN\/Training.pdf<\/li>\n<li>https:\/\/www.linkedin.com\/pulse\/neural-network-based-forecasting-shaile<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Supporting &amp; Reference Materials<\/strong><\/p>\n<ul>\n<li>Christopher M. Bishop, \u201cPattern Recognition and Machine Learning\u201d, 2007<\/li>\n<li>David Kriesel, \u201cA Brief Introduction to Neural Networks\u201d, 2005<\/li>\n<li>Yegnanarayana, \u201cArtificial Neural Networks\u201d, Prentice-Hall of India Private Limited, 2005<\/li>\n<li>Tom Mitchell, \u201cMachine Learning\u201d, McGraw Hill, 1997<\/li>\n<\/ul>\n","protected":false},"author":3,"menu_order":18,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-322","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":16,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/322\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/322\/revisions\/488"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/322\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapter-type?post=322"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/contributor?post=322"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/license?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}