summaryrefslogtreecommitdiff
path: root/training/dtrain/parallelize.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2013-03-11 15:57:34 +0100
committerPatrick Simianer <p@simianer.de>2013-03-11 15:57:34 +0100
commit2482bc590bc38b0256322c52e135672a222e84d0 (patch)
tree916bff3637883076d71c54700719cdb1bac8adcb /training/dtrain/parallelize.rb
parent5125f56e6f0f5ee5427f2687eb5f962589ae4c5e (diff)
parallelize.rb: proper command line arguments
Diffstat (limited to 'training/dtrain/parallelize.rb')
-rwxr-xr-xtraining/dtrain/parallelize.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/training/dtrain/parallelize.rb b/training/dtrain/parallelize.rb
index acfd7290..30fb0008 100755
--- a/training/dtrain/parallelize.rb
+++ b/training/dtrain/parallelize.rb
@@ -21,6 +21,7 @@ opts = Trollop::options do
opt :references, "references", :type => :string
opt :qsub, "use qsub", :type => :bool, :default => false
opt :dtrain_binary, "path to dtrain binary", :type => :string
+ opt :lplp_args, "arguments for lplp arguments", :type => :string, :default => "l2 select_k 100000"
end
puts opts.to_s
@@ -34,7 +35,7 @@ else
end
ruby = '/usr/bin/ruby'
lplp_rb = "#{dtrain_dir}/hstreaming/lplp.rb"
-lplp_args = 'l2 select_k 100000'
+lplp_args = opts[:lplp_args]
cat = '/bin/cat'
ini = opts[:config]