[mlpack-git] master, mlpack-1.0.x: Typo which causes a segfault. (f2e17ed)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:48:25 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit f2e17ed47fbf056c6856501953debb5d97610867
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Jun 3 23:16:35 2014 +0000
Typo which causes a segfault.
>---------------------------------------------------------------
f2e17ed47fbf056c6856501953debb5d97610867
src/mlpack/methods/kmeans/kmeans_main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/kmeans/kmeans_main.cpp b/src/mlpack/methods/kmeans/kmeans_main.cpp
index 3f81020..65bbcd9 100644
--- a/src/mlpack/methods/kmeans/kmeans_main.cpp
+++ b/src/mlpack/methods/kmeans/kmeans_main.cpp
@@ -133,7 +133,7 @@ int main(int argc, char** argv)
if (CLI::HasParam("refined_start"))
{
const int samplings = CLI::GetParam<int>("samplings");
- const double percentage = CLI::GetParam<int>("percentage");
+ const double percentage = CLI::GetParam<double>("percentage");
if (samplings < 0)
Log::Fatal << "Number of samplings (" << samplings << ") must be "
More information about the mlpack-git
mailing list