separate predict set and terminal set.