【问题标题】:Error while using .cache file with vowpal wabbit将 .cache 文件与 vowpal wabbit 一起使用时出错
【发布时间】:2017-05-03 21:26:24
【问题描述】:

我正在尝试 vowpal-wabbit tutorial 上给出的示例,但在使用 *.cache 文件进行训练时出现错误。错误:对于简单标签来说,6 标记过多:8.3.0c�?�p�k>���>���L=��O�?@ second_house�p�Q8>������>�33�>��O�?? third_house�p�?��

V$ cat house_dataset
0 | price:.23 sqft:.25 age:.05 2006
1 2 'second_house | price:.18 sqft:.15 age:.35 1976
0 1 0.5 'third_house | price:.53 sqft:.32 age:.87 1924

V$ ls -lrth
total 4.0K
-rw-r--r-- 1 A users 144 May  3 06:28 house_dataset
V$ vw --version
8.3.0
V$ vw house_dataset -c
Num weight bits = 18
learning rate = 0.5
initial_t = 0
power_t = 0.5
creating cache_file = house_dataset.cache
Reading datafile = house_dataset
num sources = 1
average  since         example        example  current  current  current
loss     last          counter         weight    label  predict features
0.000000 0.000000            1            1.0   0.0000   0.0000        5
0.666667 1.000000            2            3.0   1.0000   0.0000        5

finished run
number of examples per pass = 4
passes used = 1
weighted example sum = 5.000000
weighted label sum = 2.000000
average loss = 0.600000
best constant = 0.500000
best constant's loss = 0.250000
total feature number = 16
V$ vw house_dataset.cache
Num weight bits = 18
learning rate = 0.5
initial_t = 0
power_t = 0.5
using no cache
Reading datafile = house_dataset.cache
num sources = 1
average  since         example        example  current  current  current
loss     last          counter         weight    label  predict features
Error: 6 is too many tokens for a simple label: 8.3.0c�?�p�k>���>���L=��O�?@
                                                                            second_house�p�Q8>�ޙ�>�33�>��O�??
                                                                                                             third_house�p�?��
0.000000 0.000000            1            1.0  unknown   0.0000        1
0.000000 0.000000            2            2.0  unknown   0.0000        1

finished run
number of examples per pass = 2
passes used = 1
weighted example sum = 2.000000
weighted label sum = 0.000000
average loss = 0.000000
total feature number = 2

【问题讨论】:

    标签: vowpalwabbit


    【解决方案1】:

    应该是 $ vw --cache_file house_dataset.cache 您可以查看命令行参数描述here

    【讨论】:

      猜你喜欢
      • 2015-02-19
      • 2014-08-07
      • 2016-08-22
      • 2014-11-23
      • 2015-07-01
      • 2014-10-26
      • 2015-08-06
      • 2018-01-20
      • 2013-04-07
      相关资源
      最近更新 更多