[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Tham
notifications at github.com
Fri Jun 24 08:51:28 EDT 2016
> + if (input(i, dimension) == mappedValue)
> + {
> + targets.push_back(std::make_pair(i, dimension));
> + }
> + else
> + {
> + elems++;
> + sum += input(i, dimension);
> + }
> + }
> + }
> + else
> + {
> + for (size_t i = 0; i < input.n_cols; ++i)
> + {
> + if (input(dimension, i) == mappedValue)
I think we can omit the check
---
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/d8618ec909005b0453f0a3803ac1e6cc5e588f1f#r68393167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160624/4707d84a/attachment.html>
More information about the mlpack-git
mailing list