87 std::tuple
>>::type* = 0) 89 const std::string prefix(indent,
' ');
98 std::string name = d.
name;
100 std::cout << prefix <<
"var " << name <<
"Ptr mlpackArma" << std::endl;
101 std::cout << prefix << name <<
" := " << name <<
"Ptr.armaToGonumWith" 102 <<
"Info(\"" << d.
name <<
"\")" << std::endl;
112 const typename boost::disable_if
>::type* = 0, 116 std::string goStrippedType, strippedType, printedType, defaultsType;
117 StripType(d.
cppType, goStrippedType, strippedType, printedType, defaultsType);
119 const std::string prefix(indent,
' ');
128 std::string name = d.
name;
130 std::cout << prefix <<
"var " << name <<
" " << goStrippedType << std::endl;
131 std::cout << prefix << name <<
".get" << strippedType
132 <<
"(\"" << d.
name <<
"\")" << std::endl;
145 PrintOutputProcessing
::type>(d, 2);
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.
void PrintOutputProcessing(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 output processing for a regular parameter 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.
std::string cppType
The true name of the type, as it would be written in C++.