sklearn.isotonic.check_increasing?
sklearn.isotonic.check_increasing(x, y)
[源碼]
確定y是否與x單調相關。
在Spearman相關檢驗的基礎上,發現y隨x的增加或減少。
參數 | 說明 |
---|---|
x | array-like of shape (n_samples,) 培訓數據。 |
y | array-like of shape (n_samples,) 訓練目標。 |
返回值 | 說明 |
---|---|
increasing_bool | boolean 關系是增加或者減少。 |
注
從這些數據中估計出Spearman相關系數,并以估計結果的符號作為結果。
在基于Fisher變換的95%置信區間為零的情況下,提出警告。
參考文獻
1 Fisher transformation. Wikipedia. https://en.wikipedia.org/wiki/Fisher_transformation