Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ _predict
Method
_predict
mla/linear_models.py:136–138 ·
view source on GitHub ↗
(self, X=None)
Source
from the content-addressed store, hash-verified
134
return
0.5 * (np.tanh(0.5 * x) + 1)
135
136
def
_predict(self, X=None):
137
X = self._add_intercept(X)
138
return
self.sigmoid(X.dot(self.theta))
Callers
nothing calls this directly
Calls
2
sigmoid
Method · 0.95
_add_intercept
Method · 0.80
Tested by
no test coverage detected