[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Tham
notifications at github.com
Tue Jul 5 21:23:31 EDT 2016
> @@ -69,6 +69,29 @@ class MissingPolicy
> return NaN;
> }
> }
> +
> + template <typename eT, typename MapType>
> + void MapTokens(const std::vector<std::string>& tokens,
> + size_t& row,
> + arma::Mat<eT>& matrix,
> + MapType& maps,
> + std::vector<Datatype>& types)
> + {
> + std::stringstream token;
> + for (size_t i = 0; i != tokens.size(); ++i)
> + {
> + token.str(tokens[i]);
> + token>>matrix.at(row, i);
What if users set the missing value as numerical value?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/694/files/1a908c2a7b014b825667da28526b30e45dfea084..2edbc400adac676fa2909724a608adf96a70e024#r69664105
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160705/8d922260/attachment.html>
More information about the mlpack-git
mailing list