predict set optimization