mlpack
Namespaces | Functions
load_impl.hpp File Reference
#include <exception>
#include <algorithm>
#include <mlpack/core/util/timers.hpp>
#include "load_csv.hpp"
#include "load.hpp"
#include "extension.hpp"
#include "detect_file_type.hpp"
#include <boost/algorithm/string/trim.hpp>
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp>
#include "load_arff.hpp"
Include dependency graph for load_impl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::data
 Functions to load and save matrices and models.
 

Functions

template<typename Tokenizer >
std::vector< std::string > mlpack::data::details::ToTokens (Tokenizer &lineTok)
 
void mlpack::data::details::TransposeTokens (std::vector< std::vector< std::string >> const &input, std::vector< std::string > &output, size_t index)
 
template<typename MatType >
bool mlpack::data::inplace_transpose (MatType &X, bool fatal)
 
template<typename eT >
bool mlpack::data::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. More...
 
template<typename eT , typename PolicyType >
bool mlpack::data::Load (const std::string &filename, arma::Mat< eT > &matrix, DatasetMapper< PolicyType > &info, const bool fatal=false, const bool transpose=true)
 Loads a matrix from a file, guessing the filetype from the extension and mapping categorical features with a DatasetMapper object. More...
 
template<typename eT >
bool mlpack::data::Load (const std::string &filename, arma::SpMat< eT > &matrix, const bool fatal=false, const bool transpose=true)
 Loads a sparse matrix from file, using arma::coord_ascii format. More...
 

Detailed Description

Author
Ryan Curtin

Implementation of templatized load() function defined in load.hpp.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.