13 #ifndef MLPACK_BINDINGS_GO_PRINT_METHOD_CONFIG_HPP
14 #define MLPACK_BINDINGS_GO_PRINT_METHOD_CONFIG_HPP
32 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
34 const typename boost::disable_if<std::is_same<T,
35 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
40 if (std::is_same<T, bool>::value)
55 std::cout << prefix << goParamName <<
" " << GetGoType<T>(d)
67 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0)
72 if (std::is_same<T, bool>::value)
87 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
99 const typename boost::enable_if<std::is_same<T,
100 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
105 if (std::is_same<T, bool>::value)
120 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
132 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
138 if (std::is_same<T, bool>::value)
153 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
174 PrintMethodConfig<typename std::remove_pointer<T>::type>(d,
The core includes that mlpack expects; standard C++ includes and Armadillo.
This structure holds all of the information about a single parameter, including its value (which is s...
std::string CamelCase(std::string s, bool lower)
Given an snake_case like, e.g., "logistic_regression", return CamelCase(e.g.
void PrintMethodConfig(util::ParamData &d, const size_t indent, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>>::type *=0)
Print param in configuration struct for a standard option type.
std::string name
Name of this parameter.
bool required
True if this option is required.
src mlpack core util version hpp VERSION_HPP_CONTENTS string(REGEX REPLACE".*#define MLPACK_VERSION_MAJOR ([0-9]+).*""\\1"MLPACK_VERSION_MAJOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* MLPACK_VERSION_MINOR "$