MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / sigmoid

Method sigmoid

mla/linear_models.py:133–134  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

131
132 @staticmethod
133 def sigmoid(x):
134 return 0.5 * (np.tanh(0.5 * x) + 1)
135
136 def _predict(self, X=None):
137 X = self._add_intercept(X)

Callers 2

_lossMethod · 0.95
_predictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected