I am trying to get a wowpal wabbit model saved with inverted hashes. I have a working model with the following:
vw --oaa 2 -b 24 -d mydata.vw --readable_model mymodel.readable
which creates the model file as follows:
Version 7.7.0 Min label:-1.000000 Max label:1.000000 bits:24 0 pairs: 0 triples: rank:0 lda:0 0 ngram: 0 skip: options: --oaa 2 :0 66:0.016244 67:-0.016241 80:0.026017 81:-0.026020 84:0.015005 85:-0.015007 104:-0.053924 105:0.053905 112:-0.015402 113:0.015412 122:-0.025704 123:0.025704 ...
(etc. for many thousands of functions). However, to be more useful, I need to see function names. It seemed like a pretty obvious thing, but I did
vw --oaa 2 -b 24 -d mydata.vw --invert_hash mymodel.inverted
and he created such a model file (no weights):
Version 7.7.0 Min label:-1.000000 Max label:1.000000 bits:24 0 pairs: 0 triples: rank:0 lda:0 0 ngram: 0 skip: options: --oaa 2 :0
It seems like I obviously did something wrong, but I think I am using options in a documented path :
--invert_hash is similar to --readable_model , but the model is displayed in a more readable format with function names followed by weights, not hash indexes and weights.
Does anyone see why my second command is not producing any output?
vowpalwabbit
Ben collins
source share