[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Tham
notifications at github.com
Thu Jul 7 11:08:13 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);
Nice idea, this open my eye.
---
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#r69924311
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160707/9598208e/attachment-0001.html>
More information about the mlpack-git
mailing list