13 #ifndef MLPACK_BINDINGS_GO_PRINT_DEFN_INPUT_HPP
14 #define MLPACK_BINDINGS_GO_PRINT_DEFN_INPUT_HPP
31 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
33 const typename boost::disable_if<std::is_same<T,
34 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
49 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0)
65 const typename boost::enable_if<std::is_same<T,
66 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
82 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
86 std::string goStrippedType, strippedType, printedType, defaultsType;
87 StripType(d.
cppType, goStrippedType, strippedType, printedType, defaultsType);
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...
void PrintDefnInput(util::ParamData &d, 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 input in method definition for a regular parameter type.
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.
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++.
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 "$