From 8151031373c08ccd714a99f50783eafcb54d2010 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 10 Jun 2015 14:48:34 +0200 Subject: undo unfortunate variable naming: cfg -> conf! --- log_reg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'log_reg') diff --git a/log_reg b/log_reg index 3916d0c..82dc353 100755 --- a/log_reg +++ b/log_reg @@ -36,14 +36,14 @@ def approx_eql x, y, eps=10**-10 end def main - cfg = Trollop::options do + conf = Trollop::options do opt :input, "input data", :type => :string, :required => true opt :output, "1/0 output data", :type => :string, :required => true end - data = read_data cfg[:input] + data = read_data conf[:input] dim = data[0].size zeros = [0.0]*dim - t = ReadFile.readlines(cfg[:output]).map{ |i| i.to_f } + t = ReadFile.readlines(conf[:output]).map{ |i| i.to_f } model = Vector.elements zeros prev_model = nil gradient = Vector.elements zeros -- cgit v1.2.3