summaryrefslogtreecommitdiff
path: root/training/dtrain
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
commit6e1c8f0fbc0a8f66a50d496c61052c3f94f867f1 (patch)
tree4c60e3fa1a953fda9ca6a97f178e0540f45c6ee0 /training/dtrain
parentafbd3ea06c16d1ffcee1fa76b489c91dc0264bf5 (diff)
parallelize.rb: proper command line arguments
Diffstat (limited to 'training/dtrain')
-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]