| 函数crossentropy_loss(self, y_true, y_pred) |
| !给定预测和期望的输出,返回标量损耗 |
| Class (network_type), intent(in out): self |
| y_pred(), y_pred(), y_pred() |
| 损失=- sum(y_true∗log(y_pred)) |
| 结束功能丧失 |
| 函数d_crossentropy_loss(self, y_true, y_pred) result(loss) |
| !给定预测和预期输出 |
| !返回关于softmax输入的损失 |
| Class (network_type), intent(in out): self |
| y_pred(), y_pred(), y_pred() |
| 真正的(rk),可分配:损失() |
| 损失=y_pred——y_true |
| 结束函数d_loss |