当前位置:网站首页>Relu function of activation function
Relu function of activation function
2022-04-23 11:40:00 【Hey, little black 15kg】
relu function
ReLU (Rectified Linear Unit) function .ReLU Function at input greater than 0 when , Output the value directly ; Enter less than or equal to 0 when , Output 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()
Execution results :

版权声明
本文为[Hey, little black 15kg]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231136045965.html
边栏推荐
- 简易投票系统数据库设计
- Use kettle to copy records to and get records from results
- Practical data Lake iceberg lesson 30 MySQL - > iceberg, time zone problems of different clients
- 全网最细的短网址系统设计与实战
- Significance of actively participating in middle school robot competition
- 配电房远程综合监控系统在10kV预制舱项目中的应用
- Precautions for PCB
- [Web 每日一练] 八色拼图(float)
- Laravel增加自定义助手函数
- 远程访问家里的树莓派(上)
猜你喜欢

QT 64 bit static version display gif

系统编程之高级文件IO(十三)——IO多路复用-select

Analyze the rules for the use of robots with good performance

SOFA Weekly | 年度优秀 Committer 、本周 Contributor、本周 QA

Interpretation of biological recognition in robot programming course

MQ的了解

Docker MySQL master-slave backup

Cognition and R & D technology of micro robot

简易投票系统数据库设计

nacos基础(7):配置管理
随机推荐
GPU, CUDA,cuDNN三者的关系总结
Nacos Foundation (6): Nacos configuration management model
云呐|如何管理好公司的固定资产,固定资产管理怎么做
Golang Pen & interview 01
用curl库压缩成发送字符串为utf8并用curl库发送
创客教育中的统筹方案管理模式
Redis learning 5 - high concurrency distributed lock practice
使用连接组优化连接 (IM 6)
第四章 为物化视图启用和禁用IM列存储(IM 4.6)
Overall plan management mode in maker Education
Analyzing the role of social robots in basic science
解析性能良好的机器人使用守则
ThinkPHP adds image text watermark to generate promotion poster with QR code
nacos基础(5):nacos配置入门
AcWing 1874. Moo encryption (enumeration, hash)
IM 体系结构:CPU架构:SIMD向量处理(IM-2.3)
[web daily practice] eight color puzzle (float)
Who said you should know PS? This open-source artifact can also be pulled in batch, and the effect is outstanding!
RebbitMQ的初步了解
Summary of QT semaphore unresolved errors