[英]Derive log loss Gradient Descent in Python
Derive log loss Gradient Descent in Python,在 Python 中导出对数损失梯度下降,
Can anyone help me with basic code for gradient descent so that I can understand谁能帮我提供梯度下降的基本代码,以便我理解
Here's a good one for you这是一个适合你的
##Code: ##代码:
def log_loss_prime(y_true, y_pred):
return ((1 - y_true) / (1 - y_pred) - y_true / y_pred) / np.size(y_true)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.