激活函数:logistic、Tanh、Relu、leaky relu、ELU的图像及python绘制代码
#绘制激活函数代码importnumpyasnpimportmatplotlib.pyplotasplt#定义激活函数deflogistic(x):return1/(1+np.exp(-x))deftanh(x):returnnp.tanh(x)defrelu(x):returnnp.maximum(0,x)defleaky_relu(x,alpha=0.01):returnnp.where(x>