def pipeline_code_wrapper(pipeline_code):
 return '\nexported_pipeline = {}\n\nexported_pipeline.fit(training_features, training_classes)\nresults = exported_pipeline.predict(testing_features)\n'.format(pipeline_code)

def pipeline_code_wrapper ( pipeline_code ) : return '\nexported_pipeline = {}\n\nexported_pipeline.fit(training_features, training_classes)\nresults = exported_pipeline.predict(testing_features)\n' . format ( pipeline_code )
generate code specific to the execution of the sklearn pipeline parameters pipeline_code: str code that defines the final sklearn pipeline returns source code for the sklearn pipeline and calls to fit and predict .