get_model_of_pipeline#

get_model_of_pipeline(model: Union[Pipeline, BasicModel])[source]#

Return the model of a given Pipeline or itself if a BaseEstimator is given.

Parameters
modelUnion[Pipeline, BasicModel]

a Pipeline or a BasicModel

Returns
Union[Pipeline, BasicModel]

the inner BaseEstimator of the Pipeline or itself