[mlpack-git] [mlpack/mlpack] add cli executable for data_split (#650)
Keon Kim
notifications at github.com
Thu May 26 12:25:40 EDT 2016
> + const string inputLabel = CLI::GetParam<string>("input_label");
> + const string outputTrainLabel = CLI::GetParam<string>("output_train_label");
> + const string outputTestLabel = CLI::GetParam<string>("output_test_label");
> +
> + // Ratio
> + const double testRatio = CLI::GetParam<double>("test_ratio");
> +
> + // container for input data and labels
> + arma::mat data;
> + arma::Mat<size_t> labels;
> +
> + // Load Data and Labels
> + data::Load(inputFile, data, true);
> + data::Load(inputLabel, labels, true);
> + arma::Row<size_t> labels_row = labels.row(0); // extract first row
> +
I only thought of integer labels by looking at the test data. How should I allow decimal labels?
---
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#r64776600
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160526/4b2d12ee/attachment.html>
More information about the mlpack-git
mailing list