ertk.sklearn.utils.get_base_estimator

ertk.sklearn.utils.get_base_estimator(clf) BaseEstimator

Gets the base estimator of a pipeline or meta-estimator, assuming there is only one.

Parameters:
clf: estimator

An estimator.

Returns:
estimator

The base estimator of clf.