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

Keon Kim notifications at github.com
Thu May 26 15:41:34 EDT 2016


> +  Log::Info << "Train Data Count: " << get<0>(value).n_cols << endl;
> +  Log::Info << "Test Data Count: " << get<1>(value).n_cols << endl;
> +  Log::Info << "Train Label Count: " << get<2>(value).n_cols << endl;
> +  Log::Info << "Test Label Count: " << get<3>(value).n_cols << endl;
> +
> +  // Cast double matrix to string matrix
> +  //Mat<string> training = conv_to<Mat<string>>::from(get<0>(value));
> +  //Mat<string> test = conv_to<Mat<string>>::from(get<1>(value));
> +  //Mat<string> trainingLabels = conv_to<Mat<string>>::from(get<2>(value));
> +  //Mat<string> testLabels = conv_to<Mat<string>>::from(get<3>(value));
> +
> +  //Cast double matrix to string matrix
> +  mat training = get<0>(value);
> +  mat test = get<1>(value);
> +  mat trainingLabels = get<2>(value);
> +  mat testLabels = get<3>(value);

I need to cast current Mat<double> into string, but armadillo doesn't seem to provide Matrix with strings.
I am searching for the best way to do this.

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


More information about the mlpack-git mailing list