[mlpack-git] [mlpack/mlpack] add cli executable for data_split (#650)
Marcus Edel
notifications at github.com
Tue May 31 19:13:01 EDT 2016
> @@ -67,17 +83,31 @@ void CheckDuplication(const Row<size_t>& trainLabels,
> BOOST_REQUIRE_EQUAL(counts[i], 1);
> }
>
> -BOOST_AUTO_TEST_CASE(SplitDataSplitResultMat)
> +BOOST_AUTO_TEST_CASE(SplitDataResultMat)
> +{
> + mat input(2, 10);
> + size_t count = 0; // count for putting unique sequential values
> + input.imbue([&count] () { return ++count; });
Really neat idea, I propably just used:
```arma::mat input = arma::reshape(arma::linspace<arma::mat>(0, 19, 20), 2, 10);```
but your idea is great.
---
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/650/files/8ad3b900bba6c8535ad94b5af31aaab1de0c64d1#r65278959
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160531/ac07d3b1/attachment.html>
More information about the mlpack-git
mailing list