[mlpack-git] [mlpack/mlpack] add train test split (#523)

Ryan Curtin notifications at github.com
Tue Apr 12 16:14:22 EDT 2016


> +  /**
> +   * @brief TrainTestSplit
> +   * @param testRatio the ratio of test data
> +   * @param seed seed of the random device
> +   * @warning slice should not less than 1
> +   */
> +  TrainTestSplit(double testRatio,                
> +                 arma::arma_rng::seed_type seed = 0) :
> +    seed(seed),    
> +    testRatio(testRatio)
> +  {    
> +  }
> +
> +  /**
> +   *Split training data and test data, please define
> +   *ARMA_USE_CXX11 to enable move of c++11

mlpack requires C++11 so I think we can assume that `ARMA_USE_CXX11` is enabled without any issues.

---
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/523/files/860256202d7cba23dd3500a05e36ecd351f1d673#r59445167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160412/2a94daf0/attachment.html>


More information about the mlpack-git mailing list