Browse files

add script for handling vw output

  • Loading branch information...
1 parent e3f5a63 commit 373b700ea7420863942698d3dc2b4010383ddf83 @rspeer committed Nov 10, 2011
Showing with 1,003,247 additions and 704 deletions.
  1. +1,003,232 −704 oneoff/all_features_output.txt
  2. +15 −0 oneoff/process_vw_features.py
View
1,003,936 oneoff/all_features_output.txt
1,003,232 additions, 704 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
15 oneoff/process_vw_features.py
@@ -0,0 +1,15 @@
+prefix = "Features^diff_"
+values = []
+for line in open('all_features_output.txt'):
+ if line.startswith(prefix):
+ line = line[len(prefix):]
+ parts = line.strip().split(':')
+ score = float(parts[3])
+ card = parts[0]
+ values.append((score, card))
+
+values.sort()
+values.reverse()
+for score, card in values:
+ print "%4.4f\t%s" % (score / 0.0372, card)
+

0 comments on commit 373b700

Please sign in to comment.