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

Ryan Curtin notifications at github.com
Thu May 26 09:21:54 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");

I think for consistency with other programs in mlpack I would go with parameters --training_file (-t), --training_labels_file (-l), --test_file (-T), and --test_labels_file (-L) for the output parameters.

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


More information about the mlpack-git mailing list