当前位置:网站首页>Function of activation function
Function of activation function
2022-07-06 06:00:00 【algolearn】
The activation function can introduce non-linear factors into the linear model , So as to solve the problem that linear model is difficult to solve .

Design a classification to separate the triangle and circle above , Take perceptron as an example , Consider a few situations :
Single layer perceptron Multilayer perceptron Single layer perceptron + Activation function Multilayer perceptron + Activation function
1 Single layer perceptron

The expression of single-layer perceptron is , It can draw a line , Divide the plane . For input features And characteristics , If , Prove to be a positive class ; If , Prove to be a negative class . We won't discuss it here In special circumstances . According to this, we can draw the coordinate map on the right .
No matter how the straight line obtained by the perceptron moves, it cannot separate the triangle from the circle .
2 Multilayer perceptron

The expression of multi-layer perceptron is shown in the formula on the right of the above figure , After the expression merges similar items , You can get , It can be found that no matter how it is combined , The final result is about the input linear equation, which can't deal with non-linear classification .
The straight line obtained by the multi-layer perceptron cannot separate the triangle from the circle no matter how it moves .
3 Single layer perceptron + Activation function

Add another one to the output of the sensor sigmoid Activation function , because sigmoid Is a non-linear function , So the output is obviously a nonlinear function , It is possible to solve the non-linear classification problem mentioned above .
Single layer perceptron + The curve obtained by activating the function may separate the triangle from the circle .
4 Multilayer perceptron + Activation function

Add the activation function to the output of the multi-layer perceptron , You can get the expression on the right . Because each layer is a non-linear output , The final output will also be a non-linear function , It is also possible for the non-linear classification problem mentioned above .
Multilayer perceptron + The curve obtained by activating the function may separate the triangle from the circle .
3、4 By constantly optimizing the loss function , Can learn to correctly classify the curves of triangles and circular points , As shown in the figure below 3 Curves .

边栏推荐
- P2802 go home
- 【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
- 入侵检测领域数据集总结
- 查詢生產訂單中某個(些)工作中心對應的標准文本碼
- Some easy-to-use tools make your essay style more elegant
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Luogu p1460 [usaco2.1] healthy Holstein cows
- Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
- Redis6 cluster setup
- Implementation of linked list in address book management system
猜你喜欢
IPv6 comprehensive experiment
Li Chuang EDA learning notes 12: common PCB board layout constraint principles
Sequoiadb Lake warehouse integrated distributed database, June 2022 issue
About PHP startup, mongodb cannot find the specified module
Station B Liu Erden linear regression pytoch
类和对象(一)this指针详解
[SQL Server fast track] - authentication and establishment and management of user accounts
What preparations should be made for website server migration?
ContentType的作用
MIT6.s081-2020 Lab2 System Calls
随机推荐
How can large websites choose better virtual machine service providers?
[SQL Server Express Way] - authentification et création et gestion de comptes utilisateurs
Company video accelerated playback
功能安全之故障(fault),错误(error),失效(failure)
Dynamic programming -- knapsack problem
Title 1093: character reverse order
清除浮动的方式
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
Request forwarding and redirection
Novice entry SCM must understand those things
Redistemplate common collection instructions opsforvalue (II)
Processes and threads
Redis6 cluster setup
入侵检测领域数据集总结
请求转发与重定向
Station B Liu Erden linear regression pytoch
[Jiudu OJ 07] folding basket
What impact will frequent job hopping have on your career?
[course notes] Compilation Principle
ContentType的作用