Generate an array with block checkerboard structure for biclustering.
Read more in the User Guide.
The shape of the result.
The number of row and column clusters.
The standard deviation of the gaussian noise.
Minimum value of a bicluster.
Maximum value of a bicluster.
Shuffle the samples.
Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls. See Glossary.
shape
The generated array.
The indicators for cluster membership of each row.
The indicators for cluster membership of each column.
See also
make_biclustersGenerate an array with constant block diagonal structure for biclustering.
Kluger, Y., Basri, R., Chang, J. T., & Gerstein, M. (2003). Spectral biclustering of microarray data: coclustering genes and conditions. Genome research, 13(4), 703-716.
>>> from sklearn.datasets import make_checkerboard >>> data, rows, columns = make_checkerboard(shape=(300, 300), n_clusters=10, ... random_state=42) >>> data.shape (300, 300) >>> rows.shape (100, 300) >>> columns.shape (100, 300) >>> print(rows[0][:5], columns[0][:5]) [False False False True False] [False False False False False]
© 2007–2025 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/1.6/modules/generated/sklearn.datasets.make_checkerboard.html