Skip to main content

Installation

AutoHurdleRegressor

View source
Two-stage regression for non-negative targets with a point mass at zero. predict defaults to the mixture median, suitable for absolute error. With positive probability p, it is zero for p <= 0.5 and otherwise the positive distribution’s (p - 0.5) / p quantile. Quantiles use linear interpolation on the supplied grid, clamping levels outside that grid. Negative positive-stage predictions are clipped to zero. Mean predictions multiply the clipped positive-stage mean by p. Fitted attributes include hurdle_, zero_rate_, classifier_, and regressor_. classifier_ is None when the hurdle is inactive. Both estimators are None for an all-zero target with the hurdle enabled.
Parameters

AutoHurdleRegressor.fit

View source
Fit cloned estimators, preserving DataFrame columns and dtypes.
Parameters
Returns

AutoHurdleRegressor.predict

View source
Predict a mean, median, or list of quantile arrays in target units.
Parameters
Returns