sklearn.base.BiclusterMixin?
class sklearn.base.BiclusterMixin
Mixin類用于scikit-learn中的所有雙向聚類
屬性: | 說明 |
---|---|
biclusters_ |
將行和列指示符組合在一起的方便方法 |
方法
方法 | 說明 |
---|---|
get_indices (self, i) |
第i個雙向聚類的行和列索引 |
get_shape (self, i) |
第i個雙向聚類的形狀 |
get_submatrix (self, i, data) |
返回與雙向聚類i對應的子矩陣 |
__init__(self, /, *args, **kwargs)
初始化self。請參閱help(type(self))以獲得準確的說明。
property biclusters_
將行和列指示符組合在一起的方便方法
返回 rows_
and columns_
成員
get_indices(self, i)
第i個雙向聚類的行和列索引
只有當 rows_
和 columns_
屬性存在時才有效。
參數 | 說明 |
---|---|
i | int 聚類的索引 |
返回值 | 說明 |
---|---|
row_ind | ndarray, dtype=np.intp 數據集中屬于雙向聚類的行的索引。 |
col_ind | ndarray, dtype=np.intp 數據集中屬于雙向聚類的列的索引。 |
get_shape(self, i)
第i個雙向聚類的形狀
參數 | 說明 |
---|---|
i | int 聚類的索引 |
返回值 | 說明 |
---|---|
shape | tuple (int, int) 雙向聚類的行數和列數。 |
get_submatrix(self, i, data)
返回與雙向聚類i
對應的子矩陣
參數 | 說明 |
---|---|
i | int 聚類的索引 |
data | array-like 數據 |
返回值 | 說明 |
---|---|
submatrix | ndarray 與雙向聚類 i 對應的子矩陣 |
注:
用稀疏矩陣工作, 只有當 rows_
和 columns_
屬性存在時才有效。