13 #ifndef MLPACK_BINDINGS_GO_PRINT_DOC_HPP
14 #define MLPACK_BINDINGS_GO_PRINT_DOC_HPP
43 const size_t indent = *((
size_t*) input);
44 bool Lower = *((
bool*) isLower);
45 std::ostringstream oss;
48 oss << GetGoType<typename std::remove_pointer<T>::type>(d) <<
"): "
61 oss <<
" Default value " << boost::any_cast<
double>(d.
value) <<
".";
65 oss <<
" Default value " << boost::any_cast<
int>(d.
value) <<
".";
boost::any value
The actual value that is held.
The core includes that mlpack expects; standard C++ includes and Armadillo.
std::string desc
Description of this parameter, if any.
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.
if(NOT R_FOUND OR NOT R_RCPP OR NOT R_RCPPARMADILLO OR NOT R_RCPPENSMALLEN OR NOT R_BH OR NOT R_ROXYGEN2 OR NOT R_TESTTHAT) if(NOT R_FOUND OR NOT R_RCPP OR NOT R_RCPPARMADILLO OR NOT R_RCPPENSMALLEN OR NOT R_BH OR NOT R_ROXYGEN2 OR NOT R_TESTTHAT) file(READ"$
bool required
True if this option is required.
std::string HyphenateString(const std::string &str, const std::string &prefix, const bool force=false)
Hyphenate a string or split it onto multiple 80-character lines, with some amount of padding on each ...
std::string cppType
The true name of the type, as it would be written in C++.
void PrintDoc(util::ParamData &d, const void *input, void *isLower)
Print the docstring documentation for a given parameter.
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 "$