diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-11-04 15:44:45 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-11-04 15:44:45 +0100 |
commit | 3fef4f63328fbdcabe0ab9d6cdb1eaf1c2899238 (patch) | |
tree | 12d7cbbc62825c2057418112d5aeb1b4edc76e7e | |
parent | ad4fbabeca2cbdf4cb47f1a923183027494ab0a8 (diff) |
Improved automatic subsampling size calculation.
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ int main(int argc, char **argv) arma::vec labels = m->labels(); arma::uword n = X.n_rows; - int subsampleSize = 3 * ((int) sqrt(n)); + int subsampleSize = (int) (3 * sqrt(n)); arma::uvec sampleIndices; arma::mat Ys; |