def get_submatrix(self, i, data):
        from .utils.validation import check_array
        data = check_array(data, accept_sparse='csr')
        row_ind, col_ind = self.get_indices(i)
        return data[row_ind[:, np.newaxis], col_ind]


###############################################################################
Returns the submatrix corresponding to bicluster `i`.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/base.py/BiclusterMixin.get_submatrix