aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-11-04 15:44:45 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-11-04 15:44:45 +0100
commit3fef4f63328fbdcabe0ab9d6cdb1eaf1c2899238 (patch)
tree12d7cbbc62825c2057418112d5aeb1b4edc76e7e /main.cpp
parentad4fbabeca2cbdf4cb47f1a923183027494ab0a8 (diff)
Improved automatic subsampling size calculation.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 4aad1db..a0d20c8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;