lib/rumale/kernel_approximation/rbf.rb in rumale-kernel_approximation-0.28.0 vs lib/rumale/kernel_approximation/rbf.rb in rumale-kernel_approximation-0.28.1
- old
+ new
@@ -41,10 +41,10 @@
def initialize(gamma: 1.0, n_components: 128, random_seed: nil)
super()
@params = {
gamma: gamma,
n_components: n_components,
- random_seed: (random_seed || srand)
+ random_seed: random_seed || srand
}
@rng = Random.new(@params[:random_seed])
end
# Fit the model with given training data.