summaryrefslogtreecommitdiff
path: root/lin-reg
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
committerPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
commitb31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch)
tree31f2b599fa5f6996aeb134390d58deb63eefe04a /lin-reg
parent8805e95ae94d798c6441f7e1b72c90e049563f17 (diff)
overhaulHEADmaster
Diffstat (limited to 'lin-reg')
-rwxr-xr-xlin-reg7
1 files changed, 3 insertions, 4 deletions
diff --git a/lin-reg b/lin-reg
index 87dded5..eb9193e 100755
--- a/lin-reg
+++ b/lin-reg
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
-require 'zipf'
-require 'optimist'
+require "zipf"
+require "optimist"
def read_data fn, scale
f = ReadFile.new fn
@@ -29,7 +29,7 @@ def main
opt :output, "output data", :type => :string, :required => true
opt :learning_rate, "learning rate", :type => :float, :default => 0.07
opt :stop, "stopping criterion", :type => :int, :default => 100
- opt :scale_features,"scale features", :type => :bool, :default => false, :short => '-t'
+ opt :scale_features,"scale features", :type => :bool, :default => false, :short => "-t"
opt :show_loss, "show loss per iter", :type => :bool, :default => false
end
data = read_data conf[:input], conf[:scale_features]
@@ -67,4 +67,3 @@ def main
end
main
-