code_16.py 74 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1
def logistic_regression(X, y, w, b, lr, iter): # 定义逻辑回归模型