code_2.py 212 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2 3 4
print ("当权重为5, 偏置为3时, 损失为:",
loss_function(X_train, y_train, weight=5, bias=3))
print ("当权重为100, 偏置为1时, 损失为:",
loss_function(X_train, y_train, weight=100, bias=1))