lib/rumale/naive_bayes/gaussian_nb.rb in rumale-0.23.0 vs lib/rumale/naive_bayes/gaussian_nb.rb in rumale-0.23.1

- old
+ new

@@ -60,10 +60,10 @@ log_likelihoods = Array.new(n_classes) do |l| Math.log(@class_priors[l]) - 0.5 * ( Numo::NMath.log(2.0 * Math::PI * @variances[l, true]) + ((x - @means[l, true])**2 / @variances[l, true])).sum(1) end - Numo::DFloat[*log_likelihoods].transpose + Numo::DFloat[*log_likelihoods].transpose.dup end end end end