当前位置:网站首页>激活函数之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
边栏推荐
- Design and practice of the smallest short website system in the whole network
- The way to change children's programming structure
- 分享两个实用的shell脚本
- Significance of actively participating in middle school robot competition
- MQ的了解
- Get things technology network optimization - CDN resource request Optimization Practice
- 配电房远程综合监控系统在10kV预制舱项目中的应用
- 解析幼儿教育中steam教育的融合
- 云呐|如何管理好公司的固定资产,固定资产管理怎么做
- 论坛系统数据库设计
猜你喜欢
随机推荐
Implementation of partition table of existing data table by MySQL
TclError: no display name and no $DISPLAY environment variable
Who said you should know PS? This open-source artifact can also be pulled in batch, and the effect is outstanding!
qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
RebbitMQ的初步了解
Tensorflow使用keras创建神经网络的方法
让中小学生在快乐中学习的创客教育
golang之筆試題&面試題01
Learn go language 0x05: the exercise code of map in go language journey
微型机器人的认知和研发技术
My creation anniversary
Analyzing the role of social robots in basic science
Precautions for PCB
Learning go language 0x02: understanding slice
怎么进行固定资产盘点,资产盘点报告如何一键生成
Compress the curl library into a sending string of utf8 and send it with curl library
Nacos Foundation (7): Configuration Management
论坛系统数据库设计
AcWing 1874. Moo encryption (enumeration, hash)
QT 64 bit static version display gif







![抓包整理————tcp 协议[八]](/img/ae/4957a997af725a1bf3f61cb24fc717.png)

