gaussianPredict function for predict, task will be complete or not