python - sigmoid
언어/python2018. 2. 4. 15:47
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
def sigmo(x):
a = list() # list
for i in x:
a.append(1/(1 + np.exp(-i)))
return a
def main():
x = np.linspace(start=-8.0, stop=8.0, num=10000)
sig = sigmo(x)
plt.plot(x, sig)
plt.show()
if __name__ == "__main__":
main()
'언어 > python' 카테고리의 다른 글
진행 중 - 파이썬 PE , 리버싱 (0) | 2018.02.07 |
---|---|
python - sigmoid - 2 (0) | 2018.02.04 |
turtle - clone (0) | 2018.02.03 |
turtle - 자동차 (0) | 2018.02.02 |
turtle - clone (0) | 2018.02.02 |