[mlpack-git] master, mlpack-1.0.x: Don't initialize empty distributions. (0ac2184)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:42:52 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 0ac2184436ec07e561c5b06b65beb1b9cd6b4641
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Feb 10 13:50:54 2014 +0000
Don't initialize empty distributions.
>---------------------------------------------------------------
0ac2184436ec07e561c5b06b65beb1b9cd6b4641
src/mlpack/tests/to_string_test.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/tests/to_string_test.cpp b/src/mlpack/tests/to_string_test.cpp
index a2b3ddd..c7dbbef 100644
--- a/src/mlpack/tests/to_string_test.cpp
+++ b/src/mlpack/tests/to_string_test.cpp
@@ -70,7 +70,7 @@ BOOST_AUTO_TEST_SUITE(ToStringTest);
BOOST_AUTO_TEST_CASE(DiscreteDistributionString)
{
- DiscreteDistribution d;
+ DiscreteDistribution d("0.4 0.5 0.1");
Log::Debug << d;
std::string s = d.ToString();
BOOST_REQUIRE_NE(s, "");
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(DiscreteDistributionString)
BOOST_AUTO_TEST_CASE(GaussianDistributionString)
{
- GaussianDistribution d;
+ GaussianDistribution d("0.1 0.3", "1.0 0.1; 0.1 1.0");
Log::Debug << d;
std::string s = d.ToString();
BOOST_REQUIRE_NE(s, "");
More information about the mlpack-git
mailing list