#NEWLINE# def fit_and_predict( model_def , data , prep_index = None , train_index = None ) : #NEWLINE# #INDENT# ( x , y , fitted_model ) = fit_model ( model_def , data , prep_index , train_index ) #NEWLINE# return predict_with_model ( model_def , data , fitted_model )