如何在python之外使用Wabbit模型

2024-09-27 07:21:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个关于如何使用VW在python之外生成的值的问题。例如,我有以下VW的“可读输出”:

Feature1:221152:-0.0342143
Feature2:115611:-0.003415
Feature3:230533:-0.0162561
Feature4:222340:-0.0244261
Constant:116060:-0.74116
Feature5:240651:0.0662623
Feature6:201380:0.568669
Feature7:168515:0.00426367
Feature8:107643:-0.00488802
Feature9:25461:0.0186098
Feature10:172852:-0.00895446

如果我有以下数据点:

1 1 'datapoint1 | Feature10:0 Feature5:0 Feature3:0 Feature7:22 Feature4:7 Feature6:0.603153898117 Feature2:0 Feature1:0 Feature8:0 Feature9:0

当我通过VW进行测试时,得到以下结果:

0.383351 datapoint1

但当我尝试手动重新创建最终值时,得到的结果却大不相同:

-0.74116+(0.00426367*22)+(-0.0244261*7)+(0.568669*0.603153898117) = -0.475347035911703727
Constant    Feature7        Feature4          Feature6          

我用的是逻辑损失函数。有人知道我们应该如何使用大众在大众框架之外产生的价值观吗?我不知道这些生成的值应该如何应用。你知道吗


Tags: 数据vwconstant大众feature1feature2feature3feature4

热门问题