class_docstr: Mixin class for all bicluster estimators in scikit-learn
class_docstr_tok: ["Mixin","class","for","all","bicluster","estimators","in","scikit-learn"]
docstr: Returns the submatrix corresponding to bicluster `i`.
  
  Works with sparse matrices. Only works if ``rows_`` and
  ``columns_`` attributes exist.
docstr_tok: ["Returns","the","submatrix","corresponding","to","bicluster","`","i","`",".","Works","with","sparse","matrices",".","Only","works","if","``","rows_","``","and","``","columns_","``","attributes","exist","."]
code: def get_submatrix(self, i, data):
      """Returns the submatrix corresponding to bicluster `i`.
  
      Works with sparse matrices. Only works if ``rows_`` and
      ``columns_`` attributes exist.
  
      """
      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]
  
imports: import copy
  import warnings
  import numpy
  from scipy import sparse
  from .externals import six
  from .utils.fixes import signature
  from .utils.deprecation import deprecated
  from .exceptions import ChangedBehaviorWarning
  from .None import __version__
label_desc: Use image node_id 4 for calling the BiclusterMixin obj's underlying member method code with example usage: obj.get_submatrix(i, data) and returns: data