[mlpack-git] master: Fix segfault. (d65abd5)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:46:44 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125
>---------------------------------------------------------------
commit d65abd53b4a3fb882b156fbac23714c571cc29cf
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Dec 2 08:04:37 2015 -0800
Fix segfault.
>---------------------------------------------------------------
d65abd53b4a3fb882b156fbac23714c571cc29cf
src/mlpack/methods/hoeffding_trees/hoeffding_tree_main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/hoeffding_trees/hoeffding_tree_main.cpp b/src/mlpack/methods/hoeffding_trees/hoeffding_tree_main.cpp
index 3cdd976..0be4623 100644
--- a/src/mlpack/methods/hoeffding_trees/hoeffding_tree_main.cpp
+++ b/src/mlpack/methods/hoeffding_trees/hoeffding_tree_main.cpp
@@ -146,7 +146,7 @@ void PerformActions(const typename TreeType::NumericSplit& numericSplit)
const string labelsFile = CLI::GetParam<string>("labels_file");
const double confidence = CLI::GetParam<double>("confidence");
const size_t maxSamples = (size_t) CLI::GetParam<int>("max_samples");
- const size_t minSamples = (size_t) CLI::GetParam<size_t>("min_samples");
+ const size_t minSamples = (size_t) CLI::GetParam<int>("min_samples");
const string inputModelFile = CLI::GetParam<string>("input_model_file");
const string outputModelFile = CLI::GetParam<string>("output_model_file");
const string testFile = CLI::GetParam<string>("test_file");
More information about the mlpack-git
mailing list