Skip to content

Commit

Permalink
Use "traditional" initialization to help fix Windows build (hopefully).
Browse files Browse the repository at this point in the history
  • Loading branch information
rcurtin committed Feb 27, 2017
1 parent bb5ad66 commit 40d4a39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mlpack/tests/distribution_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ BOOST_AUTO_TEST_CASE(MultiDiscreteDistributionConstructorTest)
*/
BOOST_AUTO_TEST_CASE(MultiDiscreteDistributionTrainTest)
{
std::vector<arma::vec> pro{{0.1, 0.3, 0.6},
{0.3, 0.3, 0.3},
{0.25, 0.25, 0.5}};
std::vector<arma::vec> pro;
pro.push_back(arma::vec("0.1, 0.3, 0.6"));
pro.push_back(arma::vec("0.3, 0.3, 0.3"));
pro.push_back(arma::vec("0.25, 0.25, 0.5"));

DiscreteDistribution d(pro);

Expand Down

0 comments on commit 40d4a39

Please sign in to comment.