12 #ifndef MLPACK_BINDINGS_GO_DEFAULT_PARAM_HPP 13 #define MLPACK_BINDINGS_GO_DEFAULT_PARAM_HPP 28 const util::ParamData& data,
29 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
30 const typename boost::disable_if<util::IsStdVector<T>>::type* = 0,
31 const typename boost::disable_if<data::HasSerialize<T>>::type* = 0,
32 const typename boost::disable_if<std::is_same<T, std::string>>::type* = 0,
33 const typename boost::disable_if<std::is_same<T,
34 std::tuple<mlpack::data::DatasetInfo, arma::mat>>>::type* = 0);
41 const util::ParamData& data,
42 const typename boost::enable_if<util::IsStdVector<T>>::type* = 0);
49 const util::ParamData& data,
50 const typename boost::enable_if<std::is_same<T, std::string>>::type* = 0);
59 const util::ParamData& data,
60 const typename boost::enable_if_c<
61 arma::is_arma_type<T>::value ||
63 arma::mat>>::value>::type* = 0);
71 const util::ParamData& data,
72 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
73 const typename boost::enable_if<data::HasSerialize<T>>::type* = 0);
84 std::string* outstr = (std::string*) output;
85 *outstr = DefaultParamImpl<typename std::remove_pointer<T>::type>(data);
93 #include "default_param_impl.hpp" Auxiliary information for a dataset, including mappings to/from strings (or other types) and the data...
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 DefaultParam(const util::ParamData &data, const void *, void *output)
Return the default value of an option.
std::string DefaultParamImpl(const util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::disable_if< util::IsStdVector< T >>::type *=0, const typename boost::disable_if< data::HasSerialize< T >>::type *=0, const typename boost::disable_if< std::is_same< T, std::string >>::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< mlpack::data::DatasetInfo, arma::mat >>>::type *=0)
Return the default value of an option.