当前位置:网站首页>12. Neural network model
12. Neural network model
2022-07-26 00:18:00 【WuJiaYFN】
primary coverage :
- The reason why neural networks are introduced
- Introduction to neural network model
- Computational vectorization of Neural Networks
- The relationship between neural network and logistic regression algorithm
One 、 The reason why neural networks are introduced
- Both linear regression and logistic regression have such a disadvantage , namely : When there are too many features , The calculated load will be very large .
- Most machine learning involves many features , For nonlinear classification problems , Often need to construct polynomial To represent the relationship between data , Ordinary logistic regression model , Can't handle so many features effectively , Now we need neural networks
Two 、 Introduction to neural network model
2.1 A single neuron model

- In the neural network , The small yellow circles in the figure are called with sigmoid perhaps logistic Activate the Artificial neuron
- x_0 node , It is called bias unit or bias neuron ,x_0 Always =1, You can draw or not draw , It mainly depends on how to be more convenient in specific examples
- Another term of activation function in neural network refers to nonlinear function g(z)
- θ The parameter is called the weight of the model in the neural network
2.2 Neural network model
A neural network is a group of neurons , Connected collections

Neural network has three layers :
- The first input layer —— Input characteristics x_1,x_2…
- The second hidden layer —— I can't see it in the training set , Its value is not x Neither y , There may be more than one hidden layer , Any non input layer and non output layer are called hidden layers
- The third output layer —— Output the final calculation result of the hypothesis h_θ(x)
Calculation method of neural network model :

Activation term : It refers to the value calculated and output by a specific neuron
θ^(j): Weight matrices , Control from j Layer to j+1 Mapping of layers
For example, in the figure :θ^(1) The parameter matrix that controls the mapping from three input units to three hidden units , It's a 3 x 4 Matrix
If a neural network is in the j Layer has a s_j A unit , stay j+1 Layer has a s_j +1 A unit , that θ^(j) That is, it controls the j layer To j+1 Layer mapping ,θ^(j) For one s_(j+1) X (s_j + 1) Matrix
The mathematical definition of the hypothetical function of neural network :
Neural networks define functions h_θ(x) From input x To output y Mapping , These hypothetical functions are parameterized , The parameter is recorded as θ, So just change θ, You can get different hypothetical functions
3、 ... and 、 Computational vectorization of Neural Networks

- For the convenience of representation and calculation , Input in the input layer x , It can be regarded as the activation value of the first layer , That is to say a^(1) = x
- Input from a particular neuron x_1,x_2,x_3 The weighted linear combination of the other is z
- a_0^(2) —— It is called a bias unit , be equal to 1
Four 、 The relationship between neural network and logistic regression algorithm

- In the neural network , In fact, the latter part is a logistic regression algorithm
- But neural network does not directly use the original x_1,x_2, … x_n As an input feature , Instead, it uses the learned function input value a1,a2,…an As an input feature
But neural network does not directly use the original x_1,x_2, … x_n As an input feature , Instead, it uses the learned function input value a1,a2,…an As an input feature - Neural networks do not use input features x_1,x_2, … x_n To train logical regression , Instead, use what you learned a1,a2,…an To train the logical model by yourself , Thus, we can get complex and diverse nonlinear hypothetical functions
If you think the article is good , You can give me some praise and encouragement
Pay attention to me , Let's study together , Progress together !!!
边栏推荐
猜你喜欢

通货膨胀之下,后市如何操作?2021-05-14

Thymeleaf view integration

Binary tree -- 257. All paths of binary tree

Binary tree -- 222. Number of nodes of a complete binary tree

FreeRTOS个人笔记-互斥量

测试7年,面试华为最后面议要薪1万,HR说我不尊重华为,他们没有那么低薪资的岗位~

Detailed explanation of kubernetes network plug-ins - calico chapter - Overview

MPLS实验

Leetcode169 detailed explanation of most elements

07_ UE4 advanced_ MP value of firing fireball and mechanism of attacking blood deduction
随机推荐
nodejs启动mqtt服务报错SchemaError: Expected `schema` to be an object or boolean问题解决
After using MQ message oriented middleware, I began to regret
一个List到底能存多大的数据呢?
34 use of sparksql custom functions, architecture and calculation process of sparkstreaming, dstream conversion operation, and processing of sparkstreaming docking Kafka and offset
用了MQ消息中间件后,我开始后悔了...
06_ UE4 advanced_ Set up a large map using the terrain tool
FreeRTOS personal notes - mutex
MySQL - database log
Binary tree 101. Symmetric binary tree
MPLS实验
"Animal coin" is fierce, trap or opportunity? 2021-05-12
测试7年,面试华为最后面议要薪1万,HR说我不尊重华为,他们没有那么低薪资的岗位~
如何让你的 JS 代码写得更漂亮
白蛋白纳米粒表面修饰低分子量鱼精蛋白LMWP/PEG-1900修饰牛血清白蛋白制备研究
Leetcode high frequency question 66. add one, give you an array to represent numbers, then add one to return the result
Leetcode question brushing series -- 931. Minimum sum of descent path
【目录】Nodejs、npm、yarn、BUG
How does the server build a virtual host?
自动化测试之数据驱动DDT
Nodejs学习资源