for (int j = 0; j < getHillclimbIterations(); ++j) {
if (m_algorithm == ALGORITHM_FORWARD) {
modelBag.forwardSelect(getReplacement(), data,
m_hillclimbMetric);
} else if (m_algorithm == ALGORITHM_BACKWARD) {
modelBag.backwardEliminate(data, m_hillclimbMetric);
} else if (m_algorithm == ALGORITHM_FORWARD_BACKWARD) {
modelBag.forwardSelectOrBackwardEliminate(
getReplacement(), data, m_hillclimbMetric);
}
}