def generate_pipeline_code(pipeline_tree):
 steps = process_operator(pipeline_tree)
 pipeline_text = 'make_pipeline(\n{STEPS}\n)'.format(STEPS=_indent(',\n'.join(steps), 4))
 return pipeline_text

def generate_pipeline_code ( pipeline_tree ) : steps = process_operator ( pipeline_tree ) pipeline_text = 'make_pipeline(\n{STEPS}\n)' . format ( STEPS = _indent ( ',\n' . join ( steps ) , 4 ) ) return pipeline_text
generate code specific to the construction of the sklearn pipeline parameters pipeline_tree: list list of operators in the current optimized pipeline returns source code for the sklearn pipeline .