lib/svmkit/utils.rb in svmkit-0.7.2 vs lib/svmkit/utils.rb in svmkit-0.7.3

- old
+ new

@@ -4,10 +4,10 @@ # @!visibility private module Utils module_function # @!visibility private - def choice_ids(size, probs, rng=nil) + def choice_ids(size, probs, rng = nil) rng ||= Random.new Array.new(size) do target = rng.rand chosen = 0 probs.each_with_index do |p, idx|