ENH Include verbose message when sample_weight is provided.
@@ -25,6 +25,7 @@ def _parallel_fit_estimator(estimator, X, y, sample_weight=None,
"""Private function used to fit an estimator within a job."""
if sample_weight is not None:
try:
+ with _print_elapsed_time(message_clsname, message):
estimator.fit(X, y, sample_weight=sample_weight)
except TypeError as exc:
if "unexpected keyword argument 'sample_weight'" in str(exc):
