evalml.pipelines.components.utils.generate_component_code

evalml.pipelines.components.utils.generate_component_code(element)[source]

Creates and returns a string that contains the Python imports and code required for running the EvalML component.

Parameters

element (component instance) – The instance of the component to generate string Python code for

Returns

String representation of Python code that can be run separately in order to recreate the component instance. Does not include code for custom component implementation.