简体   繁体   English

vowpal wabbit 的自定义损失

[英]Custom loss for vowpal wabbit

Vowpal Wabbit currently offers 5 losses... I was looking to implement a new loss that match my problem. Vowpal Wabbit 目前提供 5 个损失...我正在寻求实施一个与我的问题相匹配的新损失。 How one could do that?怎么可能做到这一点? How one could do that using the python (pyvw) wrapper?如何使用 python (pyvw) 包装器做到这一点?

You cannot currently implement a custom loss through Python.您目前无法通过 Python 实现自定义损失。 All of the loss functions are currently implemented here: https://github.com/VowpalWabbit/vowpal_wabbit/blob/master/vowpalwabbit/loss_functions.cc目前所有的损失函数都在这里实现: https://github.com/VowpalWabbit/vowpal_wabbit/blob/master/vowpalwabbit/loss_functions.cc

Work would need to be done to make it possible for a binding to provide their own loss function.需要做一些工作以使绑定能够提供自己的损失 function。 I don't know if that would be that great though because generally these are called potentially multiple times for every example and so the performance might not be great if it having to call into Python.我不知道这是否会那么好,因为通常每个示例都可能多次调用这些,因此如果必须调用 Python,性能可能不会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM