diff --git a/src/mlpack/core/util/io.cpp b/src/mlpack/core/util/io.cpp index 2c9efefb3a..9dd571e369 100644 --- a/src/mlpack/core/util/io.cpp +++ b/src/mlpack/core/util/io.cpp @@ -289,7 +289,7 @@ void IO::CheckInputMatrices() { IO::CheckInputMatrix(IO::GetParam(paramName), paramName); } - else if (paramType == "TUPLE_TYPE") + else if (paramType == "std::tuple") { IO::CheckInputMatrix( std::get<1>(IO::GetParam(paramName)), paramName); diff --git a/src/mlpack/core/util/param.hpp b/src/mlpack/core/util/param.hpp index c820df4b65..73f462e464 100644 --- a/src/mlpack/core/util/param.hpp +++ b/src/mlpack/core/util/param.hpp @@ -1014,8 +1014,8 @@ using DatasetInfo = DatasetMapper; * https://github.com/mlpack/mlpack/issues/100 for more information. */ #define PARAM_MATRIX_AND_INFO_IN(ID, DESC, ALIAS) \ - PARAM_IN(std::tuple, ID, DESC, \ - ALIAS, std::tuple(), false) + PARAM_IN(std::tuple, ID, DESC, ALIAS, \ + std::tuple(), false) /** * Define an input model. From the command line, the user can specify the file