[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Ryan Curtin
notifications at github.com
Wed Jul 13 10:36:35 EDT 2016
> + const T& mappedValue,
> + const size_t dimension,
> + const bool transpose = true)
> + {
> + // initiate output
> + output = input;
> + size_t count = 0;
> +
> + if (transpose)
> + {
> + for (size_t i = 0; i < input.n_cols; ++i)
> + {
> + if (input(dimension, i) == mappedValue ||
> + std::isnan(input(dimension, i)))
> + {
> + output.shed_col(i - count);
I think that the speedup should be much more dramatic if you use larger datasets, too. It's probably a good idea to test with matrices that are something like 100k+ points in a variety of dimensions. If you want, I can provide some typical datasets that I like to use for testing.
---
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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r70637214
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160713/5b1e9bb4/attachment.html>
More information about the mlpack-git
mailing list