MCPcopy Index your code
hub / github.com/python/cpython / logistic_kernel

Function logistic_kernel

Lib/statistics.py:831–837  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

829
830@register('logistic')
831def logistic_kernel():
832 # 1.0 / (exp(t) + 2.0 + exp(-t))
833 pdf = lambda t: 1/2 / (1.0 + cosh(t))
834 cdf = lambda t: 1.0 - 1.0 / (exp(t) + 1.0)
835 invcdf = lambda p: log(p / (1.0 - p))
836 support = None
837 return pdf, cdf, invcdf, support
838
839@register('sigmoid')
840def sigmoid_kernel():

Callers

nothing calls this directly

Calls 1

logFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…