.. _f-intervalregressor: module ``mlmodel.interval_regressor`` ===================================== .. inheritance-diagram:: mlinsights.mlmodel.interval_regressor Short summary +++++++++++++ module ``mlinsights.mlmodel.interval_regressor`` Implements a piecewise linear regression. :githublink:`%|py|5` Classes +++++++ +--------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | class | truncated documentation | +======================================================================================+=====================================================================================================================+ | :class:`IntervalRegressor ` | Trains multiple regressors to provide a confidence interval on prediction. It only works for single regression. ... | +--------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +===============================================================================================+==================================================================================================================+ | :py:meth:`_repr_html_ ` | HTML representation of estimator. This is redundant with the logic of `_repr_mimebundle_`. The latter should ... | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :meth:`n_estimators_ ` | Returns the number of estimators = the number of buckets the data was split in. | +-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | method | truncated documentation | +=================================================================================================+===============================================================================+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :meth:`fit ` | Trains the binner and an estimator on every bucket. | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :meth:`predict ` | Computes the average predictions. | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :meth:`predict_all ` | Computes the predictions for all estimators. | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | :meth:`predict_sorted ` | Computes the predictions for all estimators. Sorts them for all observations. | +-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlinsights.mlmodel.interval_regressor :members: :special-members: __init__ :show-inheritance: