aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-11-30 23:21:32 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-11-30 23:21:32 +0100
commitf55e5dcfa82b552a1eb6642b093ed42a48565a3a (patch)
treeaa3b83296280a5846669451b9d3b27ccd12c645d
parent6942d8c4f847bf8ad8c5184d7d1b2ae341f01ba3 (diff)
main.cpp: Back to random sampling.
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index a0d20c8..81498a7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -135,7 +135,8 @@ int main(int argc, char **argv)
sampleIndices.load(indicesFilename.toStdString(), arma::raw_ascii);
subsampleSize = sampleIndices.n_elem;
} else {
- sampleIndices = relevanceSampling(X, subsampleSize);
+ // sampleIndices = relevanceSampling(X, subsampleSize);
+ sampleIndices = arma::randi<arma::uvec>(subsampleSize, arma::distr_param(0, n-1));
}
}
if (parser.isSet(subsampleFileOutputOption)) {