[mlpack] [mlpack/mlpack] adds GammaDistribution::Train(observations, probabilities) (#834)

Yashu Seth notifications at github.com
Thu Dec 22 02:03:25 EST 2016


yashu-seth commented on this pull request.



> +    for(size_t i = 0; i < N; i++)
+    {
+      if(i%2 == 0)
+        rdata(j, i) = dist(generator);
+      else
+        rdata(j, i) = dist2(generator);
+    }
+  }
+
+  for(size_t i = 0; i<N; i++)
+  {
+    if(i%2 == 0)
+      probabilities(i) = low_prob(generator);
+    else
+      probabilities(i) = high_prob(generator);
+  }

This would require ensuring shuffling rdata matrix and probabilities vector in the same order. How to use shuffle for this?

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/834
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20161221/726a8b03/attachment.html>


More information about the mlpack mailing list