Initialized best_gamma to avoid a warning from gcc.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403468
This commit is contained in:
Davis King 2010-02-16 23:57:33 +00:00
parent 2851ae5cfc
commit cf1939fc3c

View File

@ -177,7 +177,7 @@ int main()
cout << "Doing a grid search" << endl; cout << "Doing a grid search" << endl;
matrix<double> best_result(2,1); matrix<double> best_result(2,1);
best_result = 0; best_result = 0;
double best_gamma, best_nu; double best_gamma = 0.1, best_nu;
for (long col = 0; col < params.nc(); ++col) for (long col = 0; col < params.nc(); ++col)
{ {
// pull out the current set of model parameters // pull out the current set of model parameters