当前位置:网站首页>激活函数之relu函数
激活函数之relu函数
2022-04-23 11:36:00 【小嘿黑15斤】
relu函数
ReLU (Rectified Linear Unit)函数。ReLU 函数在输入大于 0 时,直接输出该值;在输入小于等于 0 时,输出 0。
import matplotlib.pyplot as plt
import numpy as np
def relu(x):
return np.maximum(0,x)
if __name__ == '__main__':
x = np.arange(-5, 5, 0.1)
y = relu(x)
plt.plot(x, y)
plt.ylim(-1, 5)
plt.show()
执行结果:
版权声明
本文为[小嘿黑15斤]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_45590490/article/details/124360673
边栏推荐
- MQ的了解
- 解析社交性机器人对基础科学的作用
- Laravel adds custom helper functions
- MySQL8. 0 upgraded stepping on the pit Adventure
- 实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
- 解析性能良好的机器人使用守则
- Yunna | how to manage the company's fixed assets and how to manage fixed assets
- 解读机器人编程课程的生物认知度
- Study notes of C [8] SQL [1]
- qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
猜你喜欢
qt 64位静态版本显示gif
实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
laravel编写Console脚本
配电房远程综合监控系统在10kV预制舱项目中的应用
Study notes of C [8] SQL [1]
Résumé de la relation entre GPU, cuda et cudnn
Nacos Basics (5): getting started with Nacos configuration
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
[web daily practice] eight color puzzle (float)
Yunna | how to manage the company's fixed assets and how to manage fixed assets
随机推荐
Analyze the rules for the use of robots with good performance
Understanding of fileprovider path configuration strategy
SOFA Weekly | 年度优秀 Committer 、本周 Contributor、本周 QA
Resolution due to AMD not found_ ags_ x64. DLL, unable to continue code execution. Reinstallation of the program may solve this problem, Forza horizon 5
博客文章导航(实时更新)
2022爱分析· 工业互联网厂商全景报告
Redis learning 5 - high concurrency distributed lock practice
Detailed explanation of writing sequence and execution sequence of MySQL series SQL query statements
Overall plan management mode in maker Education
赛微微电科创板上市破发:跌幅达26% 公司市值44亿
nacos基础(8):登录管理
Precautions for PCB
小程序 支付
MySQL8. 0 upgraded stepping on the pit Adventure
实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
Yunna | how to manage the company's fixed assets and how to manage fixed assets
Usage record of map < qstring, bool >
Laravel admin form validation
[Web 每日一练] 八色拼图(float)
qt5. 8. You want to use SQLite in the 64 bit static library, but the static library has no method to compile the supporting library