[mlpack-git] [mlpack] add train test split (#523)
Ryan Curtin
notifications at github.com
Thu Mar 3 11:37:43 EST 2016
Personally I think that we should avoid supporting Cubes, and have users represent their data always as an arma::Mat object. If they want they can actually represent their data in their program as a Cube, but when they use mlpack they should represent it as a Mat. This is pretty easy actually:
```
arma::Cube cube; // this is filled with data, each slice is a point
arma::Mat matrixRepresentation(cube.memptr(), cube.n_slices, cube.n_rows * cube.n_cols, false); // don't copy memory; this is an alias
```
Maybe there is some nicer Armadillo function to do that; I didn't look.
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/523#issuecomment-191843403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160303/3722fece/attachment.html>
More information about the mlpack-git
mailing list