From e62d097e27cf0fcbfadc16c080754f644de190ca Mon Sep 17 00:00:00 2001 From: Omar Shrit Date: Sat, 20 Nov 2021 19:29:07 +0000 Subject: [PATCH] Fix the gmm error Signed-off-by: Omar Shrit --- src/mlpack/methods/gmm/gmm_train_main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mlpack/methods/gmm/gmm_train_main.cpp b/src/mlpack/methods/gmm/gmm_train_main.cpp index e1ebf6a12c..ebeb2b074e 100644 --- a/src/mlpack/methods/gmm/gmm_train_main.cpp +++ b/src/mlpack/methods/gmm/gmm_train_main.cpp @@ -18,6 +18,7 @@ #define BINDING_NAME gmm_train #include +#include #include "gmm.hpp" #include "diagonal_gmm.hpp" @@ -27,6 +28,7 @@ #include using namespace mlpack; +using namespace mlpack::math; using namespace mlpack::gmm; using namespace mlpack::util; using namespace mlpack::kmeans; @@ -155,9 +157,9 @@ void BINDING_FUNCTION(util::Params& params, util::Timers& timers) { // Check parameters and load data. if (params.Get("seed") != 0) - math::RandomSeed((size_t) params.Get("seed")); + RandomSeed((size_t) params.Get("seed")); else - math::RandomSeed((size_t) std::time(NULL)); + RandomSeed((size_t) std::time(NULL)); RequireParamValue(params, "gaussians", [](int x) { return x > 0; }, true, "number of Gaussians must be positive");