手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

【Mathematica】LogisticSigmoid函数简介

时间:2024-10-20 12:43:17

1、这个函数表现为S形曲线:Plot[5*f, {x, -5, 5}, AspectRatio -> Automatic]

【Mathematica】LogisticSigmoid函数简介

2、它是单调递增函数:In[0]:= D[f, x] // FunctionExpand // SimplifyOut[0]= E^x/(1 + E^x)^2

【Mathematica】LogisticSigmoid函数简介

3、它的值域是[0,1],以y=0和y=1为渐近线:In[0]:= Limit[f, x -> -Infinity]Out[0]= 0In[0]:= Limit[f, x -> +Infinity]Out[0]= 1

【Mathematica】LogisticSigmoid函数简介

4、它是中心对称图形,左侧是下凹曲线,右侧是上凸曲线:In[0]:= D[f, {x, 2}] // FunctionExpand // Simplif烤恤鹇灭yOut[0]= -((E^x (-1 + E^x))/(1 + E^x)^3)

【Mathematica】LogisticSigmoid函数简介

5、它可以把所有数据归拢到0和1之间,且不同的数据,仍旧不同:In[0]:= data = Rando罪焐芡拂mReal[10, 10]Out[0]= {0.143454, 4.77656, 1.28397, 0.799853, 4.48448, 9.89067,9.6725, 7.84665, 2.66615, 7.23431}In[0]:= LogisticSigmoid[#] & /@ dataOut[0]= {0.535802, 0.991645, 0.783125, 0.689943, 0.988843,0.999949, 0.999937, 0.999609, 0.935, 0.999279}

【Mathematica】LogisticSigmoid函数简介

6、与此功能类似的函数,可以是ArcTan[x]:

【Mathematica】LogisticSigmoid函数简介

7、对比一下这两个函数的图像:Plot[{2*ArcTan[x]/Pi + 1, 2 f}, {x, -2, 2}, AspectRatio -> Automatic]

【Mathematica】LogisticSigmoid函数简介
© 手抄报圈