diff options
author | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:39:21 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:39:21 +0200 |
commit | 71278b098dcea1a5fb8520ab08b086cded0764fe (patch) | |
tree | a9383ace41f49f7fda084756a0890bd976a6abb0 /lin-reg | |
parent | 1fd4762a41cf84d9b6ebe9ed4dcf83cde78f61d3 (diff) |
trollop -> optimist
Diffstat (limited to 'lin-reg')
-rwxr-xr-x | lin-reg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |