lib/svmkit/kernel_approximation/rbf.rb in svmkit-0.2.4 vs lib/svmkit/kernel_approximation/rbf.rb in svmkit-0.2.5

- old
+ new

@@ -102,10 +102,10 @@ @random_vec = obj[:random_vec] @rng = obj[:rng] nil end - protected + private # Generate the uniform random matrix with the given shape. def rand_uniform(shape) rnd_vals = Array.new(shape.inject(:*)) { @rng.rand } Numo::DFloat.asarray(rnd_vals).reshape(shape[0], shape[1])