sklearn.isotonic.isotonic_regression

sklearn.isotonic.isotonic_regression(y,* , sample_weight=None, y_min=None, y_max=None, increasing=True)

[源码]

求解等渗回归模型。

阅读更多内容用户指南.

参数 说明
y array-like of shape (n_samples,)
数据。
sample_weight array-like of shape (n_samples,), default=None
回归的每一个点的权重。如果没有,则将权重设置为1(相同的权重)。
y_min float, default=None
最低预测值的下限(最小值可能更高)。如果没有设置,默认为-inf。
y_max float, default=None
最高预测值的上限(最大值可能仍然较低)。如果没有设置,默认为+inf。
increasing boolean, optional, default: True
计算y_是增加(设置为True)还是减少(设置为False)
返回值 说明
y_ list of floats
y的等渗拟合。

参考文献

1 “Active set algorithms for isotonic regression; A unifying framework” by Michael J. Best and Nilotpal Chakravarti, section 3.