Keras 中的损失函数和度量有什么区别? [英] What is the difference between loss function and metric in Keras?

查看:29
本文介绍了Keras 中的损失函数和度量有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不清楚 Keras 中损失函数和指标之间的区别.文档对我没有帮助.

It is not clear for me the difference between loss function and metrics in Keras. The documentation was not helpful for me.

推荐答案

损失函数用于优化您的模型.这是优化器会最小化的函数.

The loss function is used to optimize your model. This is the function that will get minimized by the optimizer.

一个指标用于判断模型的性能.这个仅供你看,与优化过程无关.

A metric is used to judge the performance of your model. This is only for you to look at and has nothing to do with the optimization process.

这篇关于Keras 中的损失函数和度量有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆