首页 > 解决方案 > Vowpal Wabbit - 格式错误的示例,只有一行可以有成本(上下文强盗)

问题描述

我是 Vowpal Wabbit 的新手。我已经成功地测试了一个 VW 代理/学习器,以获得来自 DataFrame 的一小部分数据(约 20 行)。但是当我将数据集增加到 2000 行时,出现格式错误?

我发起的学习者是:

vw = pyvw.vw("--cb_explore_adf -q UA --quiet --epsilon 0.2")

我的大众格式数据如下所示:

shared |User user=46235223 time_of_day=2020-11-15T12:01:00.000Z
|Action article=politics on world news
|Action article=sports page about football 
|Action article=music about the 80s
|Action article=food regarding veganism

数据样本:

articleId   user    time_of_day            article
0001        1212    02-01-2021-16:06:01    Food regarding veganism                                     
0002        1422    03-01-2021-06:16:32    Sports page about football 
0003        8286    12-08-2021-15:43:05    Music about the 80s
0004        4528    27-11-2021-16:11:09    Food regarding veganism 

Vowpal Wabbit 格式错误

标签: pythonmachine-learningreinforcement-learningvowpalwabbit

解决方案


推荐阅读