tanh Function
来源:互联网 发布:萧山网络问政关注 编辑:程序博客网 时间:2024/06/06 17:18
tanh Function
1. Introduction
To limit all data within the range of -1 to 1. Comparing to Sigmoid Function which output range is [0,1]
2. Formula
The formula and derivative of tanh is:
where as the sigmoid function is pretty close
See the figure of tanh and sigmoid below.
3. Implementation
3.1 Octave
x = linspace(-10, 10 ,10000); y = zeros( size(x, 1), size(x, 2)); for i = 1:length(x) y(i) = 1/(1+e^(-x(i))); endfor figure(); plot( x,y); grid on; xlabel("x"); ylabel("y=1/(1+e^-x)"); title("Sigmoid Function");
Output figure
Relative
Sigmoid Function
阅读全文
0 0
- tanh Function
- tanh
- 神经网络中的激活函数(activation function)-Sigmoid, ReLu, TanHyperbolic(tanh), softmax, softplus
- 人工神经网络中的activation function的作用以及ReLu,tanh,sigmoid激励函数的区别
- 机器学习笔记-神经网络中激活函数(activation function)对比--Sigmoid、ReLu,tanh
- 神经网络中的激活函数具体是什么?为什么ReLu要好过于tanh和sigmoid function?
- 请问人工神经网络中的activation function的作用具体是什么?为什么ReLu要好过于tanh和sigmoid function?
- 人工神经网络中的activation function的作用具体是什么?为什么ReLu要好过于tanh和sigmoid function?
- tanh () 函数
- 激活函数之tanh
- ReLU Sigmoid and Tanh
- tanh ( ) 【C语言库函数源代码】
- Sigmoid和tanh的异同
- sigmoid 和tanh 权值初始化区间
- 激活函数实现--3 Tanh函数实现
- sigmoid、tanh、softplus和ReLu激活函数
- sigmod函数tanh函数ReLU函数
- sigmoid和tanh求导的特殊技巧
- PostgreSQL判断表是否存在最快的方法
- redis设计与实现(四)字典
- Mathematics
- Java程序性能优化 读书笔记(四)设计模式:享元模式
- 《Spring设计思想》AOP设计基本原理
- tanh Function
- java.lang.IllegalStateException: Failed to load ApplicationContext
- 个人总结20
- 访问者模式
- redis
- 类和对象
- Mahmoud and a Dictionary CodeForces
- Matlab中plot、fplot、ezplot的使用方法和区别
- 数据库事务并发带来的问题