12 #ifndef MLPACK_BINDINGS_GO_GET_PRINTABLE_PARAM_HPP
13 #define MLPACK_BINDINGS_GO_GET_PRINTABLE_PARAM_HPP
28 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
31 const typename boost::disable_if<std::is_same<T,
32 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
34 std::ostringstream oss;
35 oss << boost::any_cast<T>(data.
value);
47 const T& t = boost::any_cast<T>(data.
value);
49 std::ostringstream oss;
50 for (
size_t i = 0; i < t.size(); ++i)
61 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0)
64 const T& matrix = boost::any_cast<T>(data.
value);
66 std::ostringstream oss;
67 oss << matrix.n_rows <<
"x" << matrix.n_cols <<
" matrix";
77 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
80 std::ostringstream oss;
81 oss << data.
cppType <<
" model at " << boost::any_cast<T*>(data.
value);
91 const typename boost::enable_if<std::is_same<T,
92 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0)
95 const T& tuple = boost::any_cast<T>(data.
value);
96 const arma::mat& matrix = std::get<1>(tuple);
98 std::ostringstream oss;
99 oss << matrix.n_rows <<
"x" << matrix.n_cols <<
" matrix with dimension type "
118 *((std::string*) output) =
119 GetPrintableParam<typename std::remove_pointer<T>::type>(data);