From cf1939fc3c7d2707c27d9997ea177554e41296fa Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 16 Feb 2010 23:57:33 +0000 Subject: [PATCH] Initialized best_gamma to avoid a warning from gcc. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403468 --- examples/model_selection_ex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/model_selection_ex.cpp b/examples/model_selection_ex.cpp index 50c10334f..bd44a602a 100644 --- a/examples/model_selection_ex.cpp +++ b/examples/model_selection_ex.cpp @@ -177,7 +177,7 @@ int main() cout << "Doing a grid search" << endl; matrix best_result(2,1); best_result = 0; - double best_gamma, best_nu; + double best_gamma = 0.1, best_nu; for (long col = 0; col < params.nc(); ++col) { // pull out the current set of model parameters