14 #ifndef MLPACK_CORE_DATA_LOAD_HPP 15 #define MLPACK_CORE_DATA_LOAD_HPP 74 bool Load(
const std::string& filename,
75 arma::Mat<eT>& matrix,
76 const bool fatal =
false,
77 const bool transpose =
true,
109 template<
typename eT>
110 bool Load(
const std::string& filename,
111 arma::SpMat<eT>& matrix,
112 const bool fatal =
false,
113 const bool transpose =
true);
142 template<
typename eT>
143 bool Load(
const std::string& filename,
145 const bool fatal =
false);
174 template<
typename eT>
175 bool Load(
const std::string& filename,
176 arma::Row<eT>& rowvec,
177 const bool fatal =
false);
215 template<
typename eT,
typename PolicyType>
216 bool Load(
const std::string& filename,
217 arma::Mat<eT>& matrix,
218 DatasetMapper<PolicyType>& info,
219 const bool fatal =
false,
220 const bool transpose =
true);
248 bool Load(
const std::string& filename,
249 const std::string& name,
251 const bool fatal =
false,
258 #include "load_impl.hpp" 260 #include "load_model_impl.hpp" 262 #include "load_vec_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
format
Define the formats we can read through cereal.
The core includes that mlpack expects; standard C++ includes and Armadillo.
bool Load(const std::string &filename, arma::Mat< eT > &matrix, const bool fatal=false, const bool transpose=true, const FileType inputLoadType=FileType::AutoDetect)
Loads a matrix from file, guessing the filetype from the extension.
constexpr auto data(Container const &container) noexcept -> decltype(container.data())
attempt to automatically detect the file type