void DiscreteModel::plotStepData(size_t iteration, const vectord& xNext, double yNext) { if(mParameters.verbose_level >0) { FILE_LOG(logINFO) << "Iteration: " << iteration+1 << " of " << mParameters.n_iterations << " | Total samples: " << iteration+1+mParameters.n_init_samples ; FILE_LOG(logINFO) << "Trying point at: " << xNext ; FILE_LOG(logINFO) << "Current outcome: " << yNext ; FILE_LOG(logINFO) << "Best found at: " << getPointAtMinimum() ; FILE_LOG(logINFO) << "Best outcome: " << getValueAtMinimum() ; } }
void Dataset::plotData(TLogLevel level) { // For logging purpose FILE_LOG(level) << "Initial points:" ; for(size_t i = 0; i < mY.size(); i++) { FILE_LOG(level) << "X:" << mX[i] << "|Y:" << mY(i); } const double yPoint = getValueAtMinimum(); const vectord xPoint = getPointAtMinimum(); FILE_LOG(level) << "Best point so far:" ; FILE_LOG(level) << "X:" << xPoint << "|Y:" << yPoint; } // plotData
vectord DiscreteModel::getFinalResult() { return getPointAtMinimum(); }