14 #ifndef MLPACK_CORE_DATA_LOAD_HPP 15 #define MLPACK_CORE_DATA_LOAD_HPP 66 bool Load(
const std::string& filename,
68 const bool fatal =
false,
69 const bool transpose =
true,
70 const arma::file_type inputLoadType = arma::auto_detect);
101 template<
typename eT>
102 bool Load(
const std::string& filename,
104 const bool fatal =
false,
105 const bool transpose =
true);
114 extern template bool Load
(const std::string&, 118 const arma::file_type);
121 extern template bool Load
(const std::string&, 125 const arma::file_type);
127 extern template bool Load
(const std::string&, 131 const arma::file_type);
133 extern template bool Load
(const std::string&, 137 const arma::file_type);
139 extern template bool Load
(const std::string&, 143 const arma::file_type);
145 extern template bool Load
(const std::string&, 149 const arma::file_type);
151 extern template bool Load
(const std::string&, 155 const arma::file_type);
157 extern template bool Load
(const std::string&, 162 extern template bool Load
(const std::string&, 167 extern template bool Load
(const std::string&, 172 extern template bool Load
(const std::string&, 177 extern template bool Load
(const std::string&, 213 template<
typename eT>
214 bool Load(
const std::string& filename,
216 const bool fatal =
false);
245 template<
typename eT>
246 bool Load(
const std::string& filename,
248 const bool fatal =
false);
282 template<
typename eT,
typename PolicyType>
283 bool Load(
const std::string& filename,
286 const bool fatal =
false,
287 const bool transpose =
true);
296 extern template bool Load
( 303 extern template bool Load
( 310 extern template bool Load
( 317 extern template bool Load
( 324 extern template bool Load
( 361 bool Load(
const std::string& filename,
362 const std::string& name,
364 const bool fatal =
false,
380 template<
typename eT>
381 bool Load(
const std::string& filename,
384 const bool fatal =
false);
395 template<
typename eT>
396 bool Load(
const std::vector
& files, 399 const bool fatal =
false);
402 bool LoadImage(
const std::string& filename,
405 const bool fatal =
false);
411 #include "load_model_impl.hpp" 413 #include "load_vec_impl.hpp" 415 #include "load_image_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
format
Define the formats we can read through boost::serialization.
The core includes that mlpack expects; standard C++ includes and Armadillo.
bool LoadImage(const std::string &filename, arma::Mat< unsigned char > &matrix, ImageInfo &info, const bool fatal=false)
bool Load(const std::string &filename, arma::Mat< eT > &matrix, const bool fatal=false, const bool transpose=true, const arma::file_type inputLoadType=arma::auto_detect)
Loads a matrix from file, guessing the filetype from the extension.