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.