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");