python - 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
解决方案
推荐阅读
- ubuntu - 如何更改 Virtuoso 数据库文件?
- excel - 跨多列查找电子邮件地址并将其复制到一列
- java - 使用模块作为库 IntelliJ
- java - 你可以为spring security userdetails用户创建一个外键吗?
- asp.net-web-api - 对 Shoutcast 的 WebRequest 引发“无效或无法识别的响应”异常
- recursion - 帕斯卡递归求和函数学校练习题
- amazon-web-services - AWS Beanstalk 托管是否对其创建的每个 EC2 实例收费?
- c++ - LNK2019 使用 GLFW 无法解析的外部符号
- android - 每次单击底部导航视图时如何避免重新创建新活动
- variadic - 类中的 C++ 递归可变参数模板