[Machine Learning] Neural Network

Neural Network

1. Central idea about neural network

In general, neural network is just a semi-parameter statistical model. The central ideal is to extract linear combinations of inputs as derived features, and then model the target as a nonlinear function of these features. Or from the network diagram view, we can regard neural network as the standard linear model or multilogistic model on the hidden layer.

2. Understanding of neural network

Let’s look at the diagram of neural network.

This is a neural network which contains just one hidden layer. You can see that it is a graph with connections only exiting in neighboring layers. And each node is derived via an activation function of linear combinations of nodes in previous layer. To see the mechanism more clearly, look at the following picture

This picture tells us how the node is derived from previous layer.

  • firstly, we make a linear combination of all nodes in previous layer via ω parameters.
    vk=i=0mωkixi
  • then, we use an activation function ϕ to give the value of this node.
    y^k=ϕ(vk)

So, putting them together, we get the formula of it

y^k=ϕ(i=0mωixi)

which can be viewed as one-dimensional Projection Pursuit Method.

3. Back-Propagation algorithm

To determine the parameters used in neural network, measures of fit are needed be to set up.

Notations used: θ contains all parameters in all layers; N means the number of training data

  • for regression, RSS(residual sum of square) is used.
    R(θ)=12i=1Nk=1K(yiky^ik)2+λθ22weight decay

    • for classification, cross-entropy is used.
      R(θ)=i=1Nk=1Kyiklog(y^ik)+λθ22weight decay
    • The function of the weight decay item can avoid overfit problem. And minimizing R(θ) always use gradient descent, called back-propagation in this setting. Why this name is called will be clear after reading following section.

      Consider neural network containing only one hidden layer as example (with α , β denoting as the parameters of first and second layers) and take RSS as error measure, then we derive the formula for back-propagation algorithm. We have

      R(θ)=i=1NRi(θ)+λθ22=12i=1Nk=1K(yiky^ik)2+λθ22

      If we derive the derivatives of α and β , we have

      Riβkm=δkix(2)mi

      Riαml=smix(1)il

      with
      smi=γ(θ)δki

      So error term sml in updating parameters in the first layer bases on the error term δki in updating parameters in the latter layer. From that we can see that

      • the direction of prediction is from the lower layer to the upper.
      • the direction of updating parameters in gradient descent algorithm is form the upper layer to the lower.

      This is why we call the gradient descent as back-propagation algorithm.

      The advantage of back-propagation are its simple, local nature. In the pack-propagation algorithm, each hidden unit passes and receives information only to and from units that share a connection. Hence it can be implemented efficiently on a parallel architecture computer.—-‘Element of Statistical Learning

      4. Situations neural network to be used

      Since features used in neural network are so complex, the neural network is not very useful for understanding the importance of features and is little interpretable. But in return, due to its complexity, it can capture the nonlinearity of hidden model. So neural network has great performance of prediction.

      Neural network is especially effective in problems with a high signal-to-noise ratio and settings where prediction without interpretation is the goal. It is less effective for problems where the goal is to describe the physical process that generated the data and the roles of individual inputs.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值