[mlpack-git] [mlpack/mlpack] add cli executable for data_split (#650)

Keon Kim notifications at github.com
Thu May 26 10:11:32 EDT 2016


> +#include <mlpack/core.hpp>
> +#include <mlpack/core/data/split_data.hpp>
> +
> +PROGRAM_INFO("Split into Train and Test Data", "This "
> +    "utility takes data and labels and split into a training "
> +    "set and a test set.");
> +
> +// Define parameters for data
> +PARAM_STRING_REQ("input_file", "File containing data,", "i");
> +PARAM_STRING_REQ("output_train_data", "File name to save train data", "d");
> +PARAM_STRING_REQ("output_test_data", "File name to save test data", "D");
> +
> +// Define parameters for labels
> +PARAM_STRING_REQ("input_label", "File containing labels", "I");
> +PARAM_STRING_REQ("output_train_label", "File name to save train label", "l");
> +PARAM_STRING_REQ("output_test_label", "File name to save test label", "L");

Sure, I agree. I will update it.

---
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/a35c39061245b0ccb757f65dfe6626b8a3c04d9c#r64751914
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160526/6c67e492/attachment.html>


More information about the mlpack-git mailing list