set a position in the search i.e. the parameters with a range form a (hyper)grid that can be searched by calling this function with all integers in the range 0 < i < GetTotalIterations() Definition at line 60 of file RangeIterator.h. References GetTotalIterations(), ILOG_ERROR, mDone, and mRanges. Referenced by Impala::Core::Training::ParameterSearcher::CallEvaluator(), Impala::Core::Training::ParameterSearcher::PrintAllScores(), and Impala::Core::Training::ParameterSearcher::Search(). 00061 { 00062 if(iteration >= GetTotalIterations()) 00063 ILOG_ERROR("argument too big"); 00064 00065 mDone = false; 00066 00067 for(int i=0 ; i<mRanges.size() ; i++) 00068 { 00069 Util::Iterable* curr = mRanges[i]; 00070 int range = curr->GetSteps(); 00071 if(range > 0) 00072 { 00073 curr->SetIteration(iteration % range); 00074 iteration /= range; 00075 } 00076 } 00077 }
Here is the call graph for this function:
|