13 #ifndef MLPACK_BINDINGS_GO_PRINT_METHOD_CONFIG_HPP 14 #define MLPACK_BINDINGS_GO_PRINT_METHOD_CONFIG_HPP 32 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
34 const typename std::enable_if<!std::is_same<T,
35 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
37 const std::string prefix(indent,
' ');
39 std::string def =
"nil";
40 if (std::is_same<T, bool>::value)
45 std::string name = d.
name;
46 std::string goParamName = name;
55 std::cout << prefix << goParamName <<
" " << GetGoType<T>(d)
67 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
69 const std::string prefix(indent,
' ');
71 std::string def =
"nil";
72 if (std::is_same<T, bool>::value)
77 std::string name = d.
name;
78 std::string goParamName = name;
87 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
99 const typename std::enable_if<std::is_same<T,
100 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
102 const std::string prefix(indent,
' ');
104 std::string def =
"nil";
105 if (std::is_same<T, bool>::value)
110 std::string name = d.
name;
111 std::string goParamName = name;
120 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
132 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
135 const std::string prefix(indent,
' ');
137 std::string def =
"nil";
138 if (std::is_same<T, bool>::value)
143 std::string name = d.
name;
144 std::string goParamName = name;
153 std::cout << prefix << goParamName <<
" *" << GetGoType<T>(d)
174 PrintMethodConfig<typename std::remove_pointer<T>::type>(d,
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void PrintMethodConfig(util::ParamData &d, const size_t indent, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0)
Print param in configuration struct for a standard option type.
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.
std::string name
Name of this parameter.
bool required
True if this option is required.