forked from LufsX/Experiment-LogReg
This commit is contained in:
@@ -37,6 +37,7 @@ def train_logreg(X, y, learning_rate=0.01, iterations=1000):
|
|||||||
return weights
|
return weights
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def predict_logreg(inX, weights):
|
def predict_logreg(inX, weights):
|
||||||
"""
|
"""
|
||||||
对率回归预测函数。
|
对率回归预测函数。
|
||||||
|
|||||||
Reference in New Issue
Block a user