summaryrefslogtreecommitdiff
path: root/lin-reg
diff options
context:
space:
mode:
Diffstat (limited to 'lin-reg')
-rwxr-xr-xlin-reg4
1 files changed, 2 insertions, 2 deletions
diff --git a/lin-reg b/lin-reg
index 7a8e614..87dded5 100755
--- a/lin-reg
+++ b/lin-reg
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require 'zipf'
-require 'trollop'
+require 'optimist'
def read_data fn, scale
f = ReadFile.new fn
@@ -24,7 +24,7 @@ def read_data fn, scale
end
def main
- conf = Trollop::options do
+ conf = Optimist::options do
opt :input, "input data", :type => :string, :required => true
opt :output, "output data", :type => :string, :required => true
opt :learning_rate, "learning rate", :type => :float, :default => 0.07