Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问metrics.binary_crossentropy这个是什么函数呀? #111

Open
augustkx opened this issue Aug 10, 2017 · 3 comments
Open

请问metrics.binary_crossentropy这个是什么函数呀? #111

augustkx opened this issue Aug 10, 2017 · 3 comments

Comments

@augustkx
Copy link

documentation里都搜不到。。

@salan668
Copy link

@augustkx 有个函数是category_crossentropy. 我觉得这个binary_crossentropy可以看做是category_crossentropy的特例, 即只有两个分类.

@augustkx
Copy link
Author

谢谢!初学者能再弱问下吗?
其实不太理解metrics 下的函数,究竟跟loss有什么区别,我看见说“ Metric functions are to be supplied in the metrics parameter when a model is compiled.” 那为什么不跟loss保持一致呢?

@salan668
Copy link

我理解的Metrics属于监督机制, 即你在模型搭建, 选择能量函数, 优化方法, 进行模型训练的时候, metrics可以不提供. 但涉及回调函数的时候, Metrics提供的值就会起到帮助.

比如说你期望在loss不在下降的时候, 减小搜索步长, 那么你就需要监测loss. 即metrics=['loss']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants