predict_time#

EstimatorReport.metrics.predict_time(*, data_source='test', cast=True)[source]#

Get prediction time if it has been already measured.

Parameters:
data_source{“test”, “train”}, default=”test”

The data source for which the prediction time was recorded.

castbool, default=True

Whether to cast the numbers to floats. If False, the return value is None when the predictions have never been computed.

Returns:
float or None

The prediction time in seconds, or None when not available.