From 5ddc763ab9953eebdaf78af4eb72288d7955b310 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 14 Jun 2014 19:03:21 +0200 Subject: cleanup --- data/iris/2svmlight.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 data/iris/2svmlight.rb (limited to 'data/iris/2svmlight.rb') diff --git a/data/iris/2svmlight.rb b/data/iris/2svmlight.rb deleted file mode 100755 index 7307262..0000000 --- a/data/iris/2svmlight.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - - -label1 = "Iris-"+ARGV[0] - -while line = STDIN.gets - line.strip! - a = line.split ',' - label = -1 - label = 1 if a[-1]==label1 - a = a[0..a.size-2] - f = [] - a.each_with_index { |i,idx| - f<<"#{idx+1}:#{i.to_f}" - } - puts "#{label} #{f.join(' ')}" -end - -- cgit v1.2.3