<gh_stars>0
import math

import matplotlib.pyplot as plt
import numpy as np


def sigmoid(a):
    s = 1 / (1 + e ** -a)
    return s


e = math.e
dx = 0.1
x = np.arange(-8, 8, dx)

# y=1/(1+e^(-x))
# y_sig = 1 / (1 + e ** -x)
y_sig = sigmoid(x)

plt.plot(x, y_sig)
plt.show()

import math

import matplotlib.pyplot as plt
import numpy as np


def sigmoid(a):
    s = 1 / (1 + e ** -a)
    return s


e = math.e
dx = 0.1
x = np.arange(-8, 8, dx)

# y=1/(1+e^(-x))
# y_sig = 1 / (1 + e ** -x)
y_sig = sigmoid(x)

plt.plot(x, y_sig)
plt.show()
# y=1/(1+e^(-x)) # y_sig = 1 / (1 + e ** -x)