13 #ifndef MLPACK_BINDINGS_GO_PRINT_DEFN_INPUT_HPP 14 #define MLPACK_BINDINGS_GO_PRINT_DEFN_INPUT_HPP 31 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
33 const typename std::enable_if<!std::is_same<T,
34 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
38 std::string name = d.
name;
49 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
54 std::string name = d.
name;
65 const typename std::enable_if<std::is_same<T,
66 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0)
71 std::string name = d.
name;
82 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
86 std::string goStrippedType, strippedType, printedType, defaultsType;
87 StripType(d.
cppType, goStrippedType, strippedType, printedType, defaultsType);
92 std::string name = d.
name;
116 PrintDefnInput<typename std::remove_pointer<T>::type>(d);
void StripType(const std::string &inputType, std::string &goStrippedType, std::string &strippedType, std::string &printedType, std::string &defaultsType)
Given an input type like, e.g., "LogisticRegression<>", return four types that can be used in Go code...
Linear algebra utility functions, generally performed on matrices or vectors.
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...
void PrintDefnInput(util::ParamData &d, 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 input in method definition for a regular parameter type.
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.
std::string cppType
The true name of the type, as it would be written in C++.