diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-14 19:03:21 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-14 19:03:21 +0200 |
commit | 5ddc763ab9953eebdaf78af4eb72288d7955b310 (patch) | |
tree | fffaf3d22173feae684b7c02ce86c67cf77c7fec /data/spambase/2svmlight.rb | |
parent | 26c490f404731d053a6205719b6246502c07b449 (diff) |
cleanup
Diffstat (limited to 'data/spambase/2svmlight.rb')
-rwxr-xr-x | data/spambase/2svmlight.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/data/spambase/2svmlight.rb b/data/spambase/2svmlight.rb deleted file mode 100755 index 2da4456..0000000 --- a/data/spambase/2svmlight.rb +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby - - -while line = STDIN.gets - line.strip! - a = line.split ',' - label = a[-1].to_i - label = -1 if label==0 - a = a[0..a.size-2] - f = [] - a.each_with_index { |i,idx| - f<<"#{idx+1}:#{i.to_f}" - } - puts "#{label} #{f.join(' ')}" -end - |