import numpy as np
import plotly.graph_objs as go
from plotly.offline import iplot
def sigmoid(x): return 1 / (1 + np.exp(-x))
import plotly
xrange = np.linspace(-3, 3)
yvals = sigmoid(xrange)
data = [
{"x": xrange, "y": yvals, "name": "Logistic Sigmoig Function"}
]
layout = {
"title": "Logistic Sigmoid Function"
}
fig = go.FigureWidget(data)
iplot(fig)