edit result_predict functions, solve lack_of_memory problem.