当前位置:网站首页>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 .
边栏推荐
- 请求转发与重定向
- Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
- Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
- How to use the container reflection method encapsulated by thinkphp5.1 in business code
- IPv6 comprehensive experiment
- [experience] install Visio on win11
- Embedded interview questions (IV. common algorithms)
- 华为路由器忘记密码怎么恢复
- Bit operation rules
- CoDeSys note 2: set coil and reset coil
猜你喜欢
The usage and difference between strlen and sizeof
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Investment strategy discussion and market scale prediction report of China's solid state high power amplifier industry from 2022 to 2028
Garbage collector with serial, throughput priority and response time priority
嵌入式面试题(四、常见算法)
養了只小猫咪
Hongliao Technology: how to quickly improve Tiktok store
【SQL server速成之路】——身份驗證及建立和管理用戶賬戶
[Baiwen smart home] first day of the course_ Learn Embedded and understand the development mode of bare metal and RTOS
C language learning notes (mind map)
随机推荐
Introduction to promql of # yyds dry goods inventory # Prometheus
H3C V7 switch configuration IRF
C language bubble sort
Report on the competition status and investment decision recommendations of Guangxi hospital industry in China from 2022 to 2028
Report on market depth analysis and future trend prediction of China's arsenic trioxide industry from 2022 to 2028
华为路由器忘记密码怎么恢复
假设检验学习笔记
请求转发与重定向
Raised a kitten
授予渔,从0开始搭建一个自己想要的网页
Bit operation rules
LTE CSFB process
Database: ODBC remote access SQL Server2008 in oracel
What impact will frequent job hopping have on your career?
Arrays and collections
IDEA 新UI使用
H3C V7版本交换机配置IRF
Investment strategy discussion and market scale prediction report of China's solid state high power amplifier industry from 2022 to 2028
J'ai un chaton.
Embedded interview questions (I: process and thread)