Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ predict_prob
Function
predict_prob
machine_learning/logistic_regression.py:79–80 ·
view source on GitHub ↗
(X)
Source
from the content-addressed store, hash-verified
77
78
79
def
predict_prob(X):
80
return
sigmoid_function(np.dot(X, theta))
# predicting the value of probability from the logistic regression algorithm
81
82
83
plt.figure(figsize=(10, 6))
Callers
1
logistic_regression.py
File · 0.85
Calls
1
sigmoid_function
Function · 0.85
Tested by
no test coverage detected