Sigmoid Function
1. Introduction
To limit all data within the range of 0 to 1.
2. Formula
y=11+e−x
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
Sigmoid函数详解

本文介绍了Sigmoid函数的基本概念,详细解析了其数学公式,并通过Octave编程语言实现了该函数的绘图过程。Sigmoid函数是一种将输入数据转换到0到1范围内的非线性函数,在机器学习中被广泛应用于激活函数。
1911

被折叠的 条评论
为什么被折叠?



