train and predict added for the first time