Sigmoid函数解析
代码如下
import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x):
return 1.0/(1+np.exp(-x))
sigmoid_inputs = np.arange(-10,10,0.1)
sigmoid_output = sigmoid(sigmoid_inputs)
print("Sigmoid Function Input:{}".format(sigmoid_inputs))
print("Sigmoid F
原创
2020-10-21 20:09:07 ·
734 阅读 ·
0 评论